virt-what does not identify a xen vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx

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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux