Bug 671126

Summary: virt-what does not detect EC2 Xen instances
Product: Red Hat Enterprise Linux 6 Reporter: Richard W.M. Jones <rjones>
Component: virt-whatAssignee: Richard W.M. Jones <rjones>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: bfan, jzheng, leiwang, lkong, mgoldman, mshao, poelstra, wshi
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-what-1.3-4.2.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 681464 (view as bug list) Environment:
Last Closed: 2011-05-19 13:34:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 681464    

Description Richard W.M. Jones 2011-01-20 13:22:48 UTC
Description of problem:

(Thanks to Marek Goldmann for additional testing)

virt-what doesn't detect EC2 Xen instances.  Fedora running on
these does not have any /proc/xen directory.

Instead /sys/hypervisor/type contains the string "xen" (sans quotes).

Version-Release number of selected component (if applicable):

1.6

Additional info:

This is the official way to detect variations of Xen:
http://lxr.xensource.com/lxr/source/tools/misc/xen-detect.c

Comment 1 Richard W.M. Jones 2011-01-20 13:24:10 UTC
(In reply to comment #0)
> virt-what doesn't detect EC2 Xen instances.  Fedora running on
> these does not have any /proc/xen directory.

Sorry, there is a /proc/xen directory but it is empty.

Comment 5 Jinxin Zheng 2011-02-18 10:41:08 UTC
Richard, how can we have access to an instance of the EC2? We don't have such resource to do the verification test.

Comment 10 Richard W.M. Jones 2011-03-02 09:38:52 UTC
(In reply to comment #9)
> I'm happy anyway that for 6.1 it at least detects the
> EC2 is virtualized and is a variant of Xen.  And we
> can look at fixing the rest for the next version.

Cloned this as bug 681464, so we can fix this properly
for 6.2 or later.

Comment 12 errata-xmlrpc 2011-05-19 13:34:58 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0604.html