Does Xen dom0 count as a VM?

Sergio Gelato sergio.gelato at astro.su.se
Fri Jul 21 14:02:14 UTC 2023


* Richard W.M. Jones [2023-07-21 15:01:03 +0200]:
> On Wed, Jul 19, 2023 at 10:12:07AM +0000, Sergio Gelato wrote:
> > Does this project share the view expressed in https://github.com/systemd/systemd/issues/28113#issuecomment-1621986461 that "when it comes to systemd's PoV xen dom0 is not a VM. i.e. the VM that owns the hardware is not a VM in our eyes"?
> > 
> > If so, virt-what has a similar bug to the above-mentioned systemd issue.
> 
> virt-what should be able to distinguish dom0/domU.  If there's a case
> when it doesn't then it's best to file a bug.

Thank you. In my dom0's virt-what (Debian package version 1.25-1) prints:

xen
xen-hvm

Indeed the man page leads one to expect xen-dom0 on the second line.
In a PVH domU (I don't have an HVM one handy right now) it does print

xen
xen-domU

I can confirm that dmidecode works in the dom0, and prints the "No SMBIOS"...
message in my PVH domU. And yes, the dom0 does have control_d in
/proc/xen/capabilities (although virt-what doesn't reach that test at
the moment).

Should the tests be reordered somehow?

> 
> Rich.
> 
> -- 
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-top is 'top' for virtual machines.  Tiny program with many
> powerful monitoring features, net stats, disk stats, logging, etc.
> http://people.redhat.com/~rjones/virt-top
> 



More information about the virt-tools-list mailing list