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] Is there a way for a domu to find out its name

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Is there a way for a domu to find out its name
From: "Gino LV. Ledesma" <gledesma@xxxxxxxxx>
Date: Fri, 26 Aug 2005 08:02:28 -0700
Delivery-date: Fri, 26 Aug 2005 15:00:35 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=koMetZ1Qasmq66FKVEaLPhvjMMmsNuTdCognwvFaYQW7hH++Hnk/d8ZYrsx3QC0TbFMWWdDDPq3vC7VZpqnOqrLrsnn4G0mhXpZUJ1CDx4U9klEQT/BBMrSW8tzbn7YlEbslga1A2tWy59g3WlFVGxkRSF9EYO3rUvSok7y7CjA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2b6116b30508251609299ddd51@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <3DCB327B-564D-4EEC-B809-7493A03A80D2@xxxxxxx> <2b6116b30508251609299ddd51@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Something like:

extra="domU_name=myname"

in the config would work. Then, on the domU itself, you could cat
/proc/cmdline to get the list of kernel boot options.

HTH,

- gino ledesma

On 8/25/05, Nicholas Lee <emptysands@xxxxxxxxx> wrote:
> On 8/26/05, Eric Brown <yogieric@xxxxxxx> wrote:
> > I'd like to be able to start with the same disk-image for every domu
> > but have it pick up its hostname by knowing the name it was assigned
> > in its xen config file in dom0.
> 
> You could pass the system name via the boot kernel options and pick
> this up in the in the init scripts.
> 
> I don't have a receipe of the top of my head, but probably something
> easy to google.
> 
> --
> Nicholas Lee
> http://stateless.geek.nz
> gpg 8072 4F86 EDCD 4FC1 18EF  5BDD 07B0 9597 6D58 D70C
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

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

<Prev in Thread] Current Thread [Next in Thread>