[virt-tools-list] virt-what does not identify a xen vm

James Patterson jamespatterson at operamail.com
Fri Jun 14 08:09:00 UTC 2013


Hello,

When I run virt-what on a RHEL6.3 Xen VM I have, it returns "xen", but
nothing more. It does not recognise whether the machine is a hypervisor
or a VM.

# virt-what
xen
# virt-version
1.11

The problem is because there is no capabiltiies file under /proc/xen

# ls -R /proc/xen/
(nothing)

I'd like to suggest the following change to the logic:

1. If /proc/xen exists (not capabilities), it's a xen vm or hypervisor
2. If /proc/xen/capabilities exists and contains the string control_d,
it's a Xen Hypervisor
3. Otherwise it's a Xen VM

I have also reported this bug on bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=973663

-- 
  James Patterson
  jamespatterson at operamail.com

-- 
http://www.fastmail.fm - Does exactly what it says on the tin




More information about the virt-tools-list mailing list