我有两个磁盘作为 .vmdk
文件,四个磁盘作为 .vdi
文件。我可以使用 Sun xMV VirtualBox 在其上启动虚拟机,并且它们工作得很好。但是,我想将它们安装在本地计算机上,这样我就可以在不启动虚拟机的情况下读取其中的一些文件。我下载了 vmware-mount
实用程序,但收到此错误:
Unable to mount the virtual disk. The disk may be in use by a virtual
machine, may not have enough volumes or mounted under another drive
letter. If not, verify that the file is a valid virtual disk file.
我认为这是该实用程序的问题,因此下载了 SDK 并用 C 语言编写了自己的简单程序来尝试挂载磁盘。它只是初始化 API、连接到它,然后尝试打开磁盘。我收到此错误,再次声称它不是虚拟磁盘:
**LOG: DISKLIB-DSCPTR: descriptor above max size: I64u
**LOG: DISKLIB-LINK : "f:\programming\VMs\windowstrash.vdi" : failed to open (The file specified is not a virtual disk).
**LOG: DISKLIB-CHAIN : "f:\programming\VMs\windowstrash.vdi" : failed to open (The file specified is not a virtual disk).
**LOG: DISKLIB-LIB : Failed to open 'f:\programming\VMs\windowstrash.vdi' with flags 0x1e (The file specified is not a virtual disk).
** FAILURE ** : The file specified is not a virtual disk
不过,这些文件显然是虚拟磁盘,因为我实际上可以在虚拟机上安装和使用它们。我尝试将它们与任何虚拟机分离并重试,但得到了相同的结果。
有什么想法吗?也许“描述符高于最大大小”是一个提示?
最佳答案
.vdi
是 VirtualBox 支持的格式,但 VMWare 不支持。
.vmdk
文件是 VMWare 镜像 - 您应该能够使用 vmware 工具很好地加载它们(VirtualBox 也支持这些文件,但反之则不然)。
关于c - VMWare-Mount 无法识别虚拟磁盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2343798/