難怪最近發現硬盤快滿了
我仍是想直接 copy 虛擬磁盤!保留 vdi 文件!
1)、找到虛擬磁盤文件
2)、打開 finder 前往文件夾 :/用戶/dhbm/VirtualBox VMs,找到這個 vdi 文件 3)、複製到活動硬盤 (個人活動硬盤叫 Elemnent) 4)、能夠只複製vdi文件,例如: ubuntu1804-193.vdi 5)、複製以後也能夠重命名
出現瞭如下錯誤: 打開虛擬盤文件/Volumes/Elements/vbox2018/ubuntu1804 Server-193/ubuntu1804 Server Clone20181211.vdi 失敗. 以下圖:
http://www.javashuo.com/article/p-sinbxgjj-bv.htmlubuntu
1)、打開 Terminal ,找到活動硬盤所在文件夾 cd /Volumes ls Elements Macintosh HD ***Elements 就是個人活動硬盤 2)、進入到要找的 vdi 文件所在文件夾 cd Elements cd /Volumes/Elements/vbox2018/ubuntu1804 Server-193 ls Logs ubuntu1804 Server-193.vbox ubuntu1804 Server Clone20181211.vdi ubuntu1804 Server-193.vbox-prev ** 以上若是隻複製vdi文件,就簡單一些! 3)、重設 UUID *** ubuntu1804 Server Clone20181211.vdi 這個就是咱們要重製 uuid 的 vdi 執行命令 VBoxManage internalcommands sethduuid "ubuntu1804 Server Clone20181211.vdi" 返回結果以下: UUID changed to: e0ea2e15-610d-477a-985c-ed3a1be3ebb4
ok 網卡設置方式還原到了 NAT ,仍是老辦法 devices--Network--Network setting 選擇:Bridged Adapter 從新 ping , ssh ,均可以了! 如今能夠安全的刪除 以前存在於mac 硬盤上虛擬機了!選擇:刪除全部文件!
ssh 192.168.1.184 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:wMdgbE+DmuyY8yxQeTflDpJAgV2wIOq+4TCNw9erQlM. Please contact your system administrator. Add correct host key in /Users/dhbm/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/dhbm/.ssh/known_hosts:52 ECDSA host key for 192.168.1.184 has changed and you have requested strict checking. Host key verification failed. vim /Users/dhbm/.ssh/known_hosts 找到其中 192.168.1.184 zh這一行,刪除!保存!退出!再來 ssh! ok
1)、刪除現有虛擬硬盤
2)、增長現有硬盤
3)、該方式缺點:存在於 mac 硬盤上的 vdi 文件,本身手工去刪除!沒法經過刪除虛擬機刪除了!
ok! 他們都是我以前從 VMware 虛擬機導入過來的!沒有注意,也放到了 mac 的硬盤上!