virDomainCreateLinux fails because of unknown parameter -drive when pxe network booting

Bug #240905 reported by Michael Monreal
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I was trying to build a VM using virt-manager. After the wizard dialog I get this error:

qemu: unknown parameter -drive in -drive (see screenshot for more).

I was planning to use KVM btw, I don't even have the "normal" qemu package installed.

Revision history for this message
Michael Monreal (mimox) wrote :
Revision history for this message
Michael Monreal (mimox) wrote :

kvm's qemu seems to have this flag:

$ kvm | grep drive
-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][index=i]
                use 'file' as a drive image

also I tried to link /usr/bin/kvm to /usr/bin/qemu, no luck either.

Revision history for this message
Michael Monreal (mimox) wrote :

I just noticed that this only seems to be happening when PXE boot is selected. Installing from CD-ROM for example seems to work.

Revision history for this message
James Lamb (admin-oranged) wrote :

Hello,

I have this exact same issue when I attempt to build virtual machines with the --pxe option selected. I have included a copy of the xml file that I have been using for the purposes of investigation.

Regards,

James

---Error---

virsh # create /root/fanta.xml
libvir: QEMU error : QEMU quit during console startup
qemu: unknowm parameter '-drive' in '-drive'
error: Failed to create domain from /root/fanta.xml

Revision history for this message
john (claude-struebin) wrote :

Hello,

I confirm that this error only happens when --pxe option is selected.

On /var/log/libvirt/qemu/xxx.log the follwowing kvm command will be found :

/usr/bin/kvm -M pc -m 512 -smp 1 -monitor pty -no-acpi -drive -drive file=/home/xxx/xxx.qcow2,if=ide -net nic,macaddr=52:54:00:15:cd:8f,vlan=0 -net tap,fd=16,script=,vlan=0 -usb -vnc 127.0.0.1:1

As you see there were 2 -drive options. The first -drive option should be removed.

Revision history for this message
Brent Nelson (brent-phys-deactivatedaccount) wrote :

Just another "me too", although I get the issue with virt-install, rather than virt-manager, using the --pxe option.

Revision history for this message
freakalad (freakalad) wrote :

Confirmed for virt-manager @ KVM on Hardy 64

Revision history for this message
James Andrewartha (trs80) wrote :

I get this in hardy, both using the hardy KVM and the KVM (84) from http://ppa.launchpad.net/ubuntu-virt/ppa/ubuntu

summary: - virDomainCreateLinux fails because of unknown parameter -drive
+ virDomainCreateLinux fails because of unknown parameter -drive when pxe
+ network booting
Revision history for this message
Torsten Spindler (tspindler) wrote :

This problems has been fixed in Lucid. Selecting PXE boot in virt-manager runs a virtual machine that tries a PXE boot.

Changed in virt-manager (Ubuntu):
status: New → Fix Released
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Marking fix-released per Torsten's feedback.

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.