Bug 611291
Summary: | qemu: Cannot boot off host CDROM device /dev/sr0 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jon Masters <jcm> |
Component: | qemu-kvm | Assignee: | john cooper <john.cooper> |
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.0 | CC: | crobinso, eblake, kcao, lihuang, mkenneth, nobody, sneuner, tburke, virt-maint, xen-maint |
Target Milestone: | beta | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-11-19 19:40:53 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 580953 |
Description
Jon Masters
2010-07-04 18:28:25 UTC
This probably isn't a problem if you test using ISO image files, but the raw device does not seem to be working as intended. Please provide the output of virt-manager --debug when creating the guest, and /var/log/libvirt/qemu/<vmname>.log Tried this myself. Here's the libvirt generated command line: /usr/libexec/qemu-kvm -S -M rhel6.0.0 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name cdrom-test -uuid 028c1604-f683-bbef-ffb0-ec0c5df82c88 -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/cdrom-test.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=utc -no-reboot -boot d -drive file=/var/lib/libvirt/images/cdrom-test.img,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/dev/sr0,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,cache=none -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=20,id=hostnet0,vhost=on,vhostfd=21 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:92:21:41,bus=pci.0,addr=0x5 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -device AC97,id=sound0,bus=pci.0,addr=0x6 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 VM shows a boot error: Boot failed: Could not read from CDROM (code 0003) No bootable device. Reproduced with a smaller command line: /usr/libexec/qemu-kvm -M rhel6.0.0 -enable-kvm -m 512 -boot d -drive file=/dev/sr0,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,cache=none -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 Reassigning to qemu. What's the qemu-kvm and seabios versions? It did work for me. I can reproduce it on qemu-kvm-0.12.1.2-2.104.el6.x86_64 seabios-0.5.1-2.el6.x86_64 ( tested under virt-manager and command line ) install from host cdrom is ok if use CLI : -cdrom /dev/sr0 Closing per comment above. |