难怪最近发现硬盘快满了
我仍是想直接 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 的硬盘上!