我正在使用托管在 Windows 7 上的 VirtualBox,而我的 VM 的 VDI 文件之一所在的物理硬盘驱动器完全损坏并且不再存在。
问题是现在我既不能删除虚拟硬盘驱动器也不能删除虚拟机,因为尝试删除 VDI 文件给我一个错误,指出 VirtualBox 找不到该文件,当然,我不能在没有先释放的情况下删除虚拟机(或删除)该机器正在使用的 VDI 文件。
更新:请注意,我还删除了所有存储附件,并且出于同样的原因无法删除快照——它找不到文件(因为硬盘驱动器不存在)。
有谁知道解决方案?
我已经下载了源代码并尝试通过 README 说明进行安装:
sudo make install
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
python setup.py build
running build
running build_mo
warning: hgbuildmo: could not find msgfmt executable, no translations will be built
running build_py
running build_ext
building 'mercurial.base85' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c mercurial/base85.c -o build/temp.linux-x86_64-2.6/mercurial/base85.o
mercurial/base85.c:12:20: error: Python.h: No such file or directory
mercurial/base85.c: In function ‘b85prep’:
mercurial/base85.c:23: warning: implicit declaration of function ‘memset’
mercurial/base85.c:23: warning: incompatible implicit declaration of built-in function ‘memset’
mercurial/base85.c: At top level: …Run Code Online (Sandbox Code Playgroud)