Using virt-install fails on ppc64el with "ERROR XML error: No PCI buses available"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Currently, if you don't specify the parameter "--arch=ppc64" to virt-install, the virt-install will fail as follows:
$ virt-install --name breno --memory 4096 --disk size=500,bus=virtio --cdrom mini.iso
WARNING CDROM media does not print to the text console by default, so you likely will not see text install output. You might
want to use --location.
Starting install...
Allocating 'breno.qcow2' | 500 GB 00:04
ERROR XML error: No PCI buses available
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start breno
otherwise, please restart your installation.
On the other side, if the option --arch=ppc64 is passed, it works fine. I generated a diff of both XML generated in both cases, and the result is the following (with some unimportant parts removed):
+ <type arch="ppc64" machine=
<boot dev="cdrom"/>
<boot dev="hd"/>
</os>
@@ -19,33 +19,33 @@
<on_
<on_
<devices>
- <emulator>
+ <emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<driver name="qemu" type="raw"/>
<source file="/
- <target dev="hda" bus="ide"/>
+ <target dev="sda" bus="scsi"/>
<readonly/>
</disk>
<vcpu>1</vcpu>
<os>
- <type arch="ppc64le"
+ <type arch="ppc64" machine=
<boot dev="hd"/>
</os>
<features>
@@ -58,19 +58,19 @@
<on_
<on_
<devices>
- <emulator>
+ <emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
</disk>
<disk type="block" device="cdrom">
- <target dev="hda" bus="ide"/>
+ <target dev="sda" bus="scsi"/>
<readonly/>
</disk>
I understand that libvirt should consider ppc64le a ppc64 guests for all purposes.
I tested it on a Ubuntu 14.10 fully upgraded using libvirt version 1.2.8-0ubuntu11.1, which already contains fixes for #1379346