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-users

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

To: Sachin Goel <sachin.goel@xxxxxxxxxx>
Subject: Re: [Xen-users] How to detect if a machine is a Virtual machine ??
From: Tom Clark <xen-users@xxxxxxxxxx>
Date: Mon, 21 Dec 2009 23:07:53 +0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 21 Dec 2009 15:08:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B2FA23C.6030006@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4B2FA23C.6030006@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On 2009/Dec/21 21:58, Sachin Goel wrote:
> Hi,
> 
> Just curious to know, if there is any way that given a terminal to a 
> box, we can determine is it a physical machine or a virtual machine ?
> 
Hello Sachin,

You should be able to get some useful information from the DMI, e.g:

% for i in system-manufacturer system-product-name system-version\
system-serial-number; do echo -n "$i: "; sudo dmidecode -s $i; done

system-manufacturer: Xen
system-product-name: HVM domU
system-version: 3.3.1
system-serial-number: 89e5915f-dead-beef-cefd-46904ea94c4a

Tom

-- 
Regards,
Tom Clark
xen-users@xxxxxxxxxx

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