qemu: virtio fails with version 2.5 on ppc64el (slof update needed)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Medium
|
Unassigned | ||
Mitaka |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Virtio interfaces are not detected correctly when booting a cloud image with mitaka qemu-2.5 on ppc64el.
Reproduction
============
First, I installed mitaka's ppc qemu.
# apt-get install software-
# add-apt-repository cloud-archive:
# apt-get update
# apt-get install qemu-system qemu qemu-slof qemu-system-ppc
I disabled hyperthreading on the ppc64 cores to be able to boot vms (as stated here: https:/
# ppc64_cpu --smt=off
I then tried to boot the ppc64el ubuntu cloud image.
Qemu tells that "64-bit PCI space not supported yet!". Virtio interfaces fail to be detected.
# /usr/bin/
SLOF *******
QEMU Starting
Build Date = Jan 28 2015 21:06:32
FW Version = buildd@ release 20140630
Press "s" to enter Open Firmware.
Populating /vdevice methods
Populating /vdevice/
Populating /vdevice/
Populating /vdevice/
SCSI: Looking for devices
8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
Populating /pci@8000000200
Warning: 64-bit PCI space not supported yet! 100000000 10120000000
Adapters on 0800000020000000
00 0000 (D) : 1234 1111 qemu vga
00 0800 (D) : 106b 003f serial bus [ usb-ohci ]
00 1800 (D) : 1af4 1000 virtio [ net ]
No NVRAM common partition, re-initializing...
Installing QEMU fb
(...)
[ 0.294288] virtio-pci: probe of 0000:00:03.0 failed with error -12
(...)
Cloud-init v. 0.7.5 running 'init' at Fri, 08 Apr 2016 09:21:00 +0000. Up 132.57 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +------
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: +------
Workaround
==========
Installing the qemu-slof version generated for Xenial fixes the problem.
# wget http://
# dpkg -i qemu-slof_
# /usr/bin/
SLOF *******
QEMU Starting
Build Date = Jan 29 2016 18:58:37
FW Version = buildd@ release 20151103
Press "s" to enter Open Firmware.
Populating /vdevice methods
Populating /vdevice/
Populating /vdevice/
Populating /vdevice/
SCSI: Looking for devices
8000000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 2.5+"
Populating /pci@8000000200
00 1800 (D) : 1af4 1000 virtio [ net ]
00 0800 (D) : 106b 003f serial bus [ usb-ohci ]
00 0000 (D) : 1234 1111 qemu vga
No NVRAM common partition, re-initializing...
Installing QEMU fb
(...)
Cloud-init v. 0.7.5 running 'init' at Fri, 08 Apr 2016 09:33:48 +0000. Up 3.35 seconds.
ci-info: +++++++
ci-info: +------
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +------
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | True | 10.0.2.15 | 255.255.255.0 | de:ad:de:01:02:03 |
ci-info: +------
I think that an update of qemu-slof in the mitaka's cloud-archive is needed, as it was done in Xenial here:
https:/
description: | updated |
description: | updated |
Backporting this package to the UCA Is somewhat tricky as it required a powerpc architecture builder, which we don't enable for the cloud archive....
I'll chat with the foundations team and see what we can do.