背景信息:
两个文件:
xxx.vbox用于在Virtualbox中注册虚拟机主机
xxx.vdi是一个用于注册为虚拟磁盘的磁盘。
我想注册以上两者,但它们相互排斥。
命令行:
> VBoxManage.exe storageattach "Ubuntu-Lite" --storagectl
VBoxManage.exe: error: Could not find a registered machine named 'Ubuntu-Lite'(Need a vm name.)
> VBoxManage registervm "..Ubuntu-LiteUbuntu-Lite.vbox"
VBoxManage.exe: error: Could not find an open hard disk with UUID {9a69f2a6-6199-49f6-825e-58eb29a82db4}
(Need a disk.)
如何解决?
已解决。
在vm文件存储目录中丢失了一个名为xxx.vbox-prev.的文件
找到它,然后使用registervm命令直接注册VM。