TLDR:当 /var 的内容存储在普通目录中时,virt-install 可以正常工作。当 /var 是指向其他地方的符号链接时,virt-install 会中断。
全新安装 Ubuntu 14.04。2 个逻辑硬盘、双四核处理器、32G 内存
我通过符号链接将 /var、/home 和 /tmp 移动到了第二个硬盘驱动器(如上所述这里- [/]#ln -s /mnt/cciss/c0d1/var var
)。因为我不想为每个目录定义单独的可安装分区;我希望它们都共享该存储空间。
当我运行 virt-install 时,主机抛出错误:
ERROR internal error: process exited while connecting to monitor:
Domain installation does not appear to have been successful.
使用 -d 选项,
[Mon, 19 Oct 2015 16:21:16 virt-install 2921] ERROR (cli:445) internal error: process exited while connecting to monitor:
[Mon, 19 Oct 2015 16:21:16 virt-install 2921] DEBUG (cli:448)
Traceback (most recent call last):
File "/usr/bin/virt-install", line 636, in start_install
noboot=options.noreboot)
File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1246, in start_install
noboot)
File "/usr/lib/python2.7/dist-packages/virtinst/Guest.py", line 1314, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3202, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error: process exited while connecting to monitor:
[Mon, 19 Oct 2015 16:21:16 virt-install 2921] DEBUG (cli:457) Domain installation does not appear to have been successful.
因为我过去曾成功使用过此工具,而且我知道我对 /var 做了一些乱七八糟的事情,所以我将内容移回了正常的 /var 目录。然后,一切又恢复正常了。所以,不知何故,我将 /var 内容移动到另一个驱动器并对其进行符号链接这一事实破坏了一切。也许我应该尝试使用绑定挂载?(我还没有尝试过)