Dom0 wrong
xl list
Name ID Mem VCPUs State Time(s)
(null) 0 31898 8 r----- 27.7
starting of domains end with error
xl create xen/xxx.cfg
Parsing config from xen/xxx.cfg
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:1167:device_hotplug: Domain 4:Failed to get domid
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:1167:device_hotplug: Domain 4:Failed to get domid
libxl: error: libxl_create.c:1299:domcreate_launch_dm: Domain 4:unable to add disk devices
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:968:libxl__initiate_device_generic_remove: Domain 4:unable to get my domid
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_device.c:968:libxl__initiate_device_generic_remove: Domain 4:unable to get my domid
libxl: error: libxl_domain.c:1214:libxl__get_domid: failed to get own domid (domid)
libxl: error: libxl_domain.c:1107:devices_destroy_cb: Domain 4:libxl__devices_destroy failed
libxl: error: libxl_domain.c:1034:libxl__destroy_domid: Domain 4:Non-existant domain
libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 4:Unable to destroy guest
libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 4:Destruction of domain failed
This wasn't enough for me, my XEN service wasn't starting correctly and it was a conflict with QEMU. I haven't managed to work neither on Ubuntu 20.04 nor 20.04.1. I had to upgrade to Ubuntu 20.10.
Back up all the XEN configuration under
/etc/xen/
Uninstall XEN and QEMU:
Edit
/etc/update-manager/release-upgrades
and setPrompt=normal
in order to upgrade to latest version (non LTS).Restore the XEN configuration
Reboot
The problem was solved by saving the guest configurations (/etc/xen/*cfg) and uninstalling all xen components
and then reinstalling
and then restore the cfg files.
for me uninstalling and the reinstalling the xen-hypervisor package was enough to fix the problem. Also note that some .cfg files may contain a path to v4.9 of pygrub, which is now at version v4.11 in Ubuntu 20.04.
I found another source of the problem. There are save files in /var/lib/xen, comprising some json description files, and often a memory dump in the save subdirectory. Those may be in the Xen 4.9 format, and cause problems which show up as (null) for the dom0 name. I removed the json files and the saves; xl started working again.