当我尝试创建新的 KVM 机器时,出现以下错误,
Unable to complete install: 'Domain has not existed. You should be able to find more information in the logs'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1910, in do_install
guest.start_install(False, meter=meter)
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1223, in start_install
noboot)
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1303, in _create_guest
self._consolechild) = self._wait_and_connect_console(consolecb)
File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1328, in _wait_and_connect_console
raise RuntimeError(_("Domain has not existed. You should be "
RuntimeError: Domain has not existed. You should be able to find more information in the logs
笔记: 当我尝试使用/dev/sdaXX/
安装在/vmstore
安装点和图像文件路径上的自定义存储池时,我收到此错误/vmstore/disk.img
错误日志
2014-03-24 21:06:48.178+0000: 7166: error : virNetSocketReadWire:1194 : End of file while reading data: Input/output error
2014-03-24 21:07:56.242+0000: 7170: warning : qemuSetupCgroupForVcpu:566 : Unable to get vcpus' pids.
2014-03-24 21:07:56.329+0000: 7166: error : qemuMonitorIO:614 : internal error End of file from monitor
2014-03-24 21:16:04.269+0000: 7167: warning : qemuSetupCgroupForVcpu:566 : Unable to get vcpus' pids.
2014-03-24 21:16:04.344+0000: 7166: error : qemuMonitorIO:614 : internal error End of file from monitor
2014-03-24 21:16:24.361+0000: 7167: warning : qemuSetupCgroupForVcpu:566 : Unable to get vcpus' pids.
2014-03-24 21:16:24.436+0000: 7166: error : qemuMonitorIO:614 : internal error End of file from monitor
答案1
我遇到了同样的问题 - 相同的错误消息。我发现如果我给它的 RAM 少于 4GB,VM 将继续创建,
例如 3GB RAM VM 开始安装
安装过程非常慢
我
/var/log/libvirt/libvirtd.log
看到了如下错误:qemuSetupCgroupForVcpu:566 : Unable to get vcpus' pids
我没有加载所有 kvm 内核模块:
kvm_intel 54285 0 kvm 333172 1 kvm_intel
我在上面看到的列表中缺少“kvm_intel”模块(上面已经是正确的输出),并且在尝试“modprobe kvm_intel”时我收到错误
我重新启动机器,进入 BIOS,最后通过将“允许英特尔虚拟化”切换到“打开”(关闭)来修复所有问题
我做梦也没想到,BIOS 禁用了虚拟化支持,但是……这是 5 年前的 HP xw8400 工作站
*.img
顺便说一句,在创建过程中,我在尝试将虚拟机安装到(原始)时也遇到了“权限被拒绝”的问题。该消息类似于:
"warning kvm is not available"
这是一个SELinux问题,因为我将默认VM存储池切换到自定义路径(不同的FS)
$ ls -alZ /var/lib/libvirt/
drwxr-xr-x. root root system_u:object_r:virt_image_t:s0 images
$ semanage fcontext -a -t virt_image_t "/data/VM_KVM/(/.*)?"
$ restorecon -R -v /data/VM_KVM/
修复了 SElinux 问题。