internal error: Cannot find suitable emulator for ppc64le
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Utopic |
Fix Released
|
High
|
Unassigned |
Bug Description
Impact; cannot start kvm vms through libvirt on ppc64le
Test case: start kvm vm through nova
Regression potential: this patch is cherrypicked from upstream and only affects how the emulator is chosen for ppc systems, so there should be no regressions.
on ppc64el (with 'uname -m' of ppc64le), libvirt will complain:
libvirt: QEMU Driver error : internal error: Cannot find suitable emulator for ppc64le
This is easily reproducible with the python-libvirt bindings:
$ sudo apt-get install python-libvirt libvirtd-bin qemu-system-ppc
$ python -c 'import libvirt; libvirt.
libvirt: QEMU Driver error : internal error: Cannot find suitable emulator for ppc64le
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
if ret == -1: raise libvirtError ('virConnectGet
libvirt.
The issue here is that it raises exception, which is not expected in nova-compute at least.
A workaround can be acheived via:
$ sudo ln -s /usr/bin/
$ sudo stop libvirt-bin; sudo start libvirt-bin
tags: | added: openstack uosci |
tags: | added: patch |
description: | updated |
this hack patch does make the provided test case pass.