[CentOS-virt] get xen name from guest

Mr. X tlviewer at yahoo.com
Wed Mar 10 06:53:16 UTC 2010


--- On Tue, 3/9/10, Ryan Pugatch <rpug at linux.com> wrote:

> From: Ryan Pugatch <rpug at linux.com>
> Subject: [CentOS-virt] get xen name from guest
> To: "Discussion about the virtualization on CentOS" <centos-virt at centos.org>
> Date: Tuesday, March 9, 2010, 8:18 PM
> Hello,
> Is it possible to get the name that was set in a VM's xen
> config file 
> from the guest machine?  I'm interested in having my
> kickstart launch a 
> script that can configure hostname, but to do that it would
> need to get 
> the name set in the config.
the Xen xm .PY config has an 
extra = 'console=ttyS0  xxyyzz=HOSTNAME'

it seems that this is intended for the kernel cmdline, but the parser is very tolerant and picks and chooses what it wants.

It might work to add some exotic param which you grab from dmesg in script.



More information about the CentOS-virt mailing list