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
  [email protected]

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

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to