我正在尝试使用 在 Ubuntu 12.04 上创建 Windows 7 KVM 客户机virt-manager
。
填写完各种配置选项后,当开始安装时,出现一个错误框,提示:
无法完成安装:“无法从监视器读取:对端重置连接”
进一步挖掘发现日志文件表明了/var/log/libvirt/qemu/
几点抱怨:
Could not open option rom '/usr/share/qemu/vapic.bin': Permission denied
pci_add_option_rom: failed to find romfile "pxe-virtio.rom"
Could not read keymap file: 'en-us'
我不明白问题是什么vapic.bin
- 它位于指定的位置并且可读:
ls -la /usr/share/qemu/vapic.bin
-rwxr-xr-x 1 root root 9216 Feb 28 11:01 /usr/share/qemu/vapic.bin*
pxe-virtio.rom
还有:
ls -al /usr/share/qemu-linaro/pxe-virtio.rom
-rw-r--r-- 1 root root 63488 Feb 10 2012 /usr/share/qemu-linaro/pxe-virtio.rom
ls -al /usr/share/qemu/pxe-virtio.rom
-rw-r--r-- 1 root root 63488 Feb 10 2012 /usr/share/qemu/pxe-virtio.rom
我可以使用一些帮助来修复"permission denied"
,vapic.bin
以及一些帮助来了解pxe-virtio.rom
预计在哪里找到 (假设它必须在/usr/share/qemu
? 以外的某个地方期待),或者如何明确配置它?
完整日志:
2013-05-07 06:27:36.780+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
QEMU_AUDIO_DRV=none
/usr/bin/kvm -S -M pc-1.0 -enable-kvm -m 8024 -smp 2,sockets=2,cores=1,threads=1 -name Win7 -uuid 88384f67-0c25-62be-d564-5fb6ad182caf -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Win7.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-reboot -no-shutdown -drive file=/var/lib/libvirt/images/Windows7.img,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=2 -drive file=/Archive/iso/Win7-x64-sp1.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1 -netdev tap,fd=18,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:e6:4a:49,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -vga std -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
char device redirected to /dev/pts/1
Could not open option rom '/usr/share/qemu/vapic.bin': Permission denied
kvm: -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:e6:4a:49,bus=pci.0,addr=0x3: pci_add_option_rom: failed to find romfile "pxe-virtio.rom"
Could not read keymap file: 'en-us'
2013-05-07 06:27:37.413+0000: shutting down
答案1
使用以下命令检查 SELinux 的状态:
命令getenforce
如果强制执行,则尝试:
sudo setenforce 0
只是一个想法。