| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: [Xen-users] Am I running under Xen?
 
To: "Matthew Haas" <haas@xxxxxxxxxxxxxx>From: "Todd Deshane" <deshantm@xxxxxxxxx>Date: Sun, 2 Mar 2008 22:21:44 -0500Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>Delivery-date: Sun, 02 Mar 2008 19:22:19 -0800Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;	h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references;	b=mcWp8V2Guj22er7wt1HdjXO1c/EeneoO9b4YbopW+mDabyU7xnnA79bytcxyGqHrotcDNZ+qgb9V5Plp9UYERJoya1uV4iUIiCnW3pf8n9CW1SGxhML6V2HApSH0ApSEEWTZfijvsW0sAVgO67OKZx23Mtb+zpOiApO+4y0PJp0=List-id: Xen user discussion <xen-users.lists.xensource.com> 
 
 
 On Sun, Mar 2, 2008 at 10:01 PM, Matthew Haas <haas@xxxxxxxxxxxxxx > wrote: 
Tom Horsley wrote:> Is there a standard idiom most folks use to ask the
 > question: Am I a linux that was just booted under Xen?
 >
 > I'm thinking about fooling with some of my alternate
 > boot partitions so they can be booted as paravirt
 > VMs, but they'd need to do a bit of reconfiguring
 > of themselves when running under Xen early in the boot
 > process (like not trying to mount other partitions
 > that are gonna be used by other virtual machines
 > and use a different host name, and don't start so many
 > system services, etc).
 >
 > I suppose I could just check and see if the kernel
 > name has "xen" in it, but I just wondered if there
 > was one true way to ask this question.
 >
 
 
This is actually a question I've also found myself asking... I've got
 a couple custom-built Debian packages that unroll various configurations
 onto VMs, dom0s, and regular machines... I find myself writing in all
 sorts of weird checks to try and determine what it is (and always am
 finding new loopholes that I need to close).
 
 If there is a nice guaranteed way of detecting a Paravirtualized domU
 (or if the machine is acting as a dom0), I would also be interested in
 knowing (basing it off strings in the kernel name isn't necessarily 100%
 guaranteed).
 
 -Matthew
 --
 Matthew Haas
 Visiting Instructor
 Corning Community College
 Computer & Information Science
 http://lab46.corning-cc.edu/haas/home/
 
 "Writing should be like breathing;
 It is one of those important things we do." -- me
 
 _______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users 
 |