[Focal] 'virsh domcapabilities' fails unless 'virsh capabilites' is run first
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Undecided
|
Christian Ehrhardt |
Bug Description
This is affecting my MAAS installation to be able to create VMs through the pods interface.
cnewcome@
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
cnewcome@
error: failed to get emulator capabilities
error: invalid argument: unable to find any emulator to serve 'x86_64' architecture
cnewcome@
<capabilities>
...
</capabilities>
cnewcome@
<domainCapabili
...
</domainCapabil
cnewcome@
ii gir1.2-
ii libvirt-clients 6.0.0-0ubuntu5 amd64 Programs for the libvirt library
ii libvirt-daemon 6.0.0-0ubuntu5 amd64 Virtualization daemon
ii libvirt-
ii libvirt-
ii libvirt-
ii libvirt-
ii libvirt-
ii libvirt0:amd64 6.0.0-0ubuntu5 amd64 library for interfacing with different virtualization systems
ii python3-libvirt 6.0.0-0ubuntu3 amd64 libvirt Python 3 bindings
cnewcome@
Related branches
- Rafael David Tinoco (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
-
Diff: 5704 lines (+5514/-0)31 files modifieddebian/changelog (+13/-0)
debian/patches/series (+29/-0)
debian/patches/stable/lp-1868539-bhyve-command-remove-unused-includes.patch (+41/-0)
debian/patches/stable/lp-1868539-daemon-set-default-memlock-limit-for-systemd-service.patch (+94/-0)
debian/patches/stable/lp-1868539-m4-libxl-properly-fail-when-libxl-is-required.patch (+47/-0)
debian/patches/stable/lp-1868539-qemu-Don-t-compare-local-and-remote-hostnames-on-mig.patch (+62/-0)
debian/patches/stable/lp-1868539-qemu-Stop-domain-on-failed-restore.patch (+104/-0)
debian/patches/stable/lp-1868539-qemu-Use-g_autoptr-for-qemuDomainSaveCookie.patch (+140/-0)
debian/patches/stable/lp-1868539-qemu-do-not-revert-to-NULL-bandwidth.patch (+45/-0)
debian/patches/stable/lp-1868539-qemu-preserve-error-on-bandwidth-rollback.patch (+59/-0)
debian/patches/stable/lp-1868539-qemu-save-restore-original-error-when-recovering-fro.patch (+60/-0)
debian/patches/stable/lp-1868539-qemu-use-correct-backendType-when-checking-memfd-cap.patch (+46/-0)
debian/patches/stable/lp-1868539-qemuDomainGetStatsIOThread-Don-t-leak-array-with-0-i.patch (+49/-0)
debian/patches/stable/lp-1868539-qemuDomainSaveImageStartVM-Use-VIR_AUTOCLOSE-for-int.patch (+50/-0)
debian/patches/stable/lp-1868539-qemuDomainSaveImageStartVM-Use-g_autoptr-for-virComm.patch (+40/-0)
debian/patches/stable/lp-1868539-qemuTestParseCapabilitiesArch-Free-binary.patch (+52/-0)
debian/patches/stable/lp-1868539-security-Try-harder-to-run-transactions.patch (+97/-0)
debian/patches/stable/lp-1868539-tests-fix-double-unlock-of-monitor-in-hotplug-test.patch (+64/-0)
debian/patches/stable/lp-1868539-testutils-check-return-value-of-g_setenv.patch (+39/-0)
debian/patches/stable/lp-1868539-testutilsxen-error-out-on-initialization-failure.patch (+42/-0)
debian/patches/stable/lp-1868539-virDomainFSDefFree-Unref-private-data.patch (+52/-0)
debian/patches/stable/lp-1868539-virsystemdtest-do-not-leak-socket-path.patch (+55/-0)
debian/patches/stable/lp-1868539-vz-Fix-return-value-in-error-path.patch (+49/-0)
debian/patches/ubuntu/lp-1853200-cpu_map-Add-decode-element-to-x86-CPU-model-definiti.patch (+741/-0)
debian/patches/ubuntu/lp-1853200-cpu_map-Add-more-noTSX-x86-CPU-models.patch (+695/-0)
debian/patches/ubuntu/lp-1853200-cpu_map-Don-t-use-new-noTSX-models-for-host-model-CP.patch (+129/-0)
debian/patches/ubuntu/lp-1853200-cpu_x86-Honor-CPU-models-decode-element.patch (+59/-0)
debian/patches/ubuntu/lp-1853200-cputest-Add-data-for-Intel-R-Core-TM-i7-8550U-CPU-wi.patch (+2022/-0)
debian/patches/ubuntu/lp-1867460-qemu-fixing-auto-detecting-binary-in-domain-capabili.patch (+115/-0)
debian/patches/ubuntu/lp-1867460-qemu_capabilities-Rework-domain-caps-cache.patch (+325/-0)
debian/patches/ubuntu/lp-1868528-util-virhostcpu-Fail-when-fetching-CPU-Stats-for-inv.patch (+99/-0)
I was able to reproduce this in lxc:
$ sudo apt-get install libvirt-clients gir1.2- libvirt- glib-1. 0 libvirt- daemon- driver- qemu libvirt- daemon- driver- storage- rbd libvirt- daemon- system libvirt- daemon- system- systemd libvirt-glib-1.0-0 libvirt0 python3-libvirt
triage- focal+20. 04:~$ virsh domcapabilities
error: failed to get emulator capabilities
error: invalid argument: unable to find any emulator to serve 'x86_64' architecture
And after running `virsh capabilities` and then again `virsh domcapabilities` it shows valid looking output.