이 콘텐츠는 선택한 언어로 제공되지 않습니다.
B.6. Guest virtual machine booting stalls with error: No boot device
- Symptom
- After building a guest virtual machine from an existing disk image, the guest booting stalls with the error message
No boot device. However, the guest virtual machine can start successfully using theQEMUcommand directly. - Investigation
- The disk's bus type is not specified in the command for importing the existing disk image:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow However, the command line used to boot up the guest virtual machine using QEMU directly shows that it usesvirtiofor its bus type:ps -ef | grep qemu /usr/libexec/qemu-kvm -monitor stdio -drive file=/root/RHEL-Server-5.8-32-virtio.qcow2,index=0,if=virtio,media=disk,cache=none,format=qcow2 -net nic,vlan=0,model=rtl8139,macaddr=00:30:91:aa:04:74 -net tap,vlan=0,script=/etc/qemu-ifup,downscript=no -m 2048 -smp 2,cores=1,threads=1,sockets=2 -cpu qemu64,+sse2 -soundhw ac97 -rtc-td-hack -M rhel5.6.0 -usbdevice tablet -vnc :10 -boot c -no-kvm-pit-reinjection
# ps -ef | grep qemu /usr/libexec/qemu-kvm -monitor stdio -drive file=/root/RHEL-Server-5.8-32-virtio.qcow2,index=0,if=virtio,media=disk,cache=none,format=qcow2 -net nic,vlan=0,model=rtl8139,macaddr=00:30:91:aa:04:74 -net tap,vlan=0,script=/etc/qemu-ifup,downscript=no -m 2048 -smp 2,cores=1,threads=1,sockets=2 -cpu qemu64,+sse2 -soundhw ac97 -rtc-td-hack -M rhel5.6.0 -usbdevice tablet -vnc :10 -boot c -no-kvm-pit-reinjectionCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note thebus=in the guest's XML generated by libvirt for the imported guest:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The bus type for the disk is set aside, which is the default value set by libvirt. This is the incorrect bus type, and has caused the unsuccessful boot for the imported guest. - Solution
Procedure B.2. Correcting the disk bus type
- Undefine the imported guest, then re-import it with
bus=virtioand the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Edit the imported guest's XML using
virsh editand correct the disk bus type.