WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How to detect if a machine is a Virtual machine ??

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] How to detect if a machine is a Virtual machine ??
From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Wed, 23 Dec 2009 09:16:21 +0000
Delivery-date: Wed, 23 Dec 2009 01:17:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B30A167.8070802@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <0a0cdd47-ffb6-4911-b704-c427360b2c62@default> <4B30A167.8070802@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0
On 22/12/09 10:37, Michal Novotny wrote:
Hi Sachin,
the tool is not in the virtual machine. This is the tool that's in dom0. Since there is a source code for this one you could scp it to the guest, compile and run inside the guest environment. There is no need to provide a guest with this tool by default and in fact this is really impossible so it's better to scp it to the guest and compile there.

It's also worth pointing out that the underlying test for xen in this program executes a particular instruction to find the information about its environment. What that means is that it's possible to write a version of ./tools/misc/xen-detect.c that will work in any guest machine OS.

jch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel