Error creating a VM: internal error: No PCI buses available

Bug #1379346 reported by Felix Geyer
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Fix Released
Critical
Chris J Arges

Bug Description

In utopic creating a libvirt VM (through virt-manager or virt-install) fails with: internal error: No PCI buses available.

This is caused by an Ubuntu patch in the qemu package that changes the default machine type to pc-i440fx-utopic.
It also adds an alias "ubuntu" for pc-i440fx-utopic. This seems to be the one actually used.

libvirt has some rules hard-coded how to set up the PCI bus depending on the machine type.
Obviously it doesn't check for "ubuntu".

Attached is a patch that extend the libvirt checks for the ubuntu machine type.

Tags: patch
Revision history for this message
Felix Geyer (debfx) wrote :
summary: - Erro create a VM: internal error: No PCI buses available
+ Error creating a VM: internal error: No PCI buses available
Chris J Arges (arges)
Changed in libvirt (Ubuntu):
importance: Undecided → Critical
status: New → In Progress
assignee: nobody → Chris J Arges (arges)
Revision history for this message
Chris J Arges (arges) wrote :

Thanks, I've sponsored this patch and uploaded it to Utopic.

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 1.2.8-0ubuntu11

---------------
libvirt (1.2.8-0ubuntu11) utopic; urgency=medium

  [ Felix Geyer ]
  * d/p/ubuntu_machine_type.patch: Fix No PCI buses available. (LP: #1379346).
 -- Chris J Arges <email address hidden> Thu, 09 Oct 2014 08:57:27 -0500

Changed in libvirt (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
ocean (ocean-ieee) wrote :

It's not fixed! experiencing the same problem when converting a MIPS target on 14.10....

Revision history for this message
Jeffery Wilkins (djcanadianjeff) wrote :

still not fixed.... +1

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

Please open a new bug showing the exact command you are using (and which release/version) which fails.

Revision history for this message
Will Nilges (wilnil) wrote :

Having this issue when trying to create an armhf vm. Works fine on command line, but not on libvirtmanager.

Unable to complete install: 'XML error: No PCI buses available'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2553, in _do_async_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 498, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 434, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3603, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: XML error: No PCI buses available

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thank you for the report, Will.

The original bug was not happening on ARM, and does not involve virt-manager. Could you please file a new bug against the virt-manager package and provide more details on how to reproduce it, like the guest definition?

Thanks!

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks Sergio, I agree to all you said.

In addition with arm often it comes down to the machine and chip type you specified. Some of them have other defaults, therefore the exact steps to reproduce and/or guest definition will be very helpful on this new bug.

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.