Unable to boot from CD when the VM has 2 IDE cdrom attached

Bug #776620 reported by Simon Déziel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Steps to reproduce

1) Create a VM
2) Attach 2 IDE CDROM devices
3) Connect a bootable iso to the first CDROM
4) Make sure the VM will attempt to boot from CD first

$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04

$ apt-cache policy libvirt-bin
libvirt-bin:
  Installed: 0.8.8-1ubuntu6
  Candidate: 0.8.8-1ubuntu6
  Version table:
 *** 0.8.8-1ubuntu6 0
        500 http://ca.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libvirt-bin 0.8.8-1ubuntu6
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic x86_64
Architecture: amd64
Date: Tue May 3 11:25:41 2011
ProcEnviron:
 LANGUAGE=en_CA:en
 LANG=en_US.UTF-8
 LC_MESSAGES=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Déziel (sdeziel) wrote :
Changed in libvirt (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better.

Note that as a workaround, you can connect the iso to the second cdrom instead of the first. The qemu command being executed (when cdrom 1 is connected and cdrom 2 is not, and 'boot=cdrom' is specified) is:

/usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name test -uuid a555c9eb-7b81-0a0e-53ef-1f8b16e33f8d -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot order=d,menu=off -drive file=/var/lib/libvirt/images/test.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 -drive file=/home/serge/natty-desktop-amd64.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 -drive if=none,media=cdrom,id=drive-ide0-0-1,readonly=on,format=raw -device ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -netdev tap,fd=18,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:f0:9e:74,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device AC97,id=sound0,bus=pci.0,addr=0x4 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

I've tried enabling the boot menu, but 'F12' was not working for me.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

(marking low priority because there is a trivial workaround)

Revision history for this message
Simon Déziel (sdeziel) wrote :

@Serge

Thank you very much for the workaround, it works great. Even when 2 bootable CDROM are connected it's the second one that is used to boot. I agree that it's a low priority item.

Thanks,
Simon

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.