Bug 1047726

Summary: Guest could not start when enable boot menu and 4 boot devices
Product: Red Hat Enterprise Linux 6 Reporter: Cui Lei <lcui>
Component: virt-managerAssignee: virt-mgr-maint
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: acathrow, bili, codong, dyuan, gscrivan, mzhan, tzheng, zsong
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1047724 Environment:
Last Closed: 2014-01-22 10:07:43 UTC Type: Bug
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: 1047724    
Bug Blocks:    

Description Cui Lei 2014-01-02 02:31:00 UTC
This issue could be reproduced in RHEL6.5, so clone to RHEL6.
Version-Release number of selected component:
virt-manager-0.9.0-19.el6
libvirt-0.10.2-29.el6

+++ This bug was initially created as a clone of Bug #1047724 +++

Description of problem:
Guest could not start when enable boot menu and 4 boot devices, here is the error message:
"Error starting domain: internal error: process exited while connecting to monitor: qemu-kvm: Too many boot devices for PC"
Guest xml please refer to attachment

If make <bootmenu enable='no'/>, guest could start

Detail:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 100, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 122, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1220, in startup
    self._backend.create()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 698, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: process exited while connecting to monitor: qemu-kvm: Too many boot devices for PC

Here is the key part from libvirtd.log

2014-01-02 01:59:08.950+0000: 25918: debug : virCommandRunAsync:2229 : About to run LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -name citrix-lcui -S -M rhel6.5.0 -cpu qemu32 -enable-kvm -m 937 -realtime mlock=off -smp 1,maxcpus=3,sockets=3,cores=1,threads=1 -uuid 3694f287-9230-824b-3feb-fe1ba25c103d -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/citrix-lcui.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=cdan,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/citrix-lcui-xvda,if=none,id=drive-virtio-disk0,format=raw,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -netdev tap,fd=25,id=hostnet0,vhost=on,vhostfd=26 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=ae:82:88:e6:59:56,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc 0.0.0.0:2 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5

Please pay attention to "-boot order=cdan,menu=on"



Version-Release number of selected component (if applicable):
libvirt-1.1.1-16.el7.x86_64
qemu-kvm-1.5.3-30.el7.x86_64
kernel-3.10.0-64.el7.x86_64
virt-manager-0.10.0-8.el7.noarch


How reproducible:
always

Steps to Reproduce:
1. Prepare a guest and open it with virt-manger

2. In VM details page-->Boot Options, tick "Enable boot menu" and tick all the 4 boot devices. (you could also edit xml directly)

3. start the guest

Actual results:
Error message popup, "Error starting domain: internal error: process exited while connecting to monitor: qemu-kvm: Too many boot devices for PC"

Expected results:
No error message popup

Additional info:
Un-check "Enable boot menu" check boor change <bootmenu enable='no'/>), the guest could start with enable 4 boot devices.

--- Additional comment from Cui Lei on 2014-01-01 21:24:44 EST ---

Comment 1 Giuseppe Scrivano 2014-01-22 10:07:43 UTC
it looks like a minor issue that can be solved by specifying a minor number of boot devices, closing as WONTFIX.