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

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



On 12/23/2009 10:34 AM, Michal Novotny wrote:
On 12/23/2009 10:16 AM, John Haxby wrote:
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.
But one more point, if you want to know whether XEN_PV is returned for dom0 PV guest or domU (since it's the same for both) you can try to look for /proc/xen/privcmd. This one is available only in dom0 because privileged commands are for privileged domain (domain-0) only...
Oh, sorry, I did mean for domU PV guest or dom0, of course...

Michal

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.