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

[Xen-users] How to find dom0 name from domU


  • To: Xen-users@xxxxxxxxxxxxxxxxxxx
  • From: mailing lists <listas.correo@xxxxxxxx>
  • Date: Mon, 8 Nov 2010 11:58:43 +0000 (GMT)
  • Cc:
  • Delivery-date: Mon, 08 Nov 2010 04:01:10 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3uvfJ3d09q+QwvncxsC1FF2CTwIV+W+3SzsMNh+3IyWNj050a06L7Jyn/8jtEC+KOJ0ClsY36YN4u17Nac4FTjFx8teV+U8nCITCUY3T0UOJuPw28UijxDYpNcwyW0jhUBg46BBRxQOfbe8SKimzBq5AIhmXudsFpRioS0PEwS4=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello, 

I'm using a little trick, (contatenating the hostname of the dom0 
in the domU 'extra' directive) but I'd like to known if there is a
better form. Thank you.

bigbox03-dom0:~  # cat /etc/xen/vm/-vm1 
import os
name="vm1"
uuid="1245bac6-d09d-f9b0-a8eb-45aa443e9c44"
memory=384
maxmem=384
vcpus=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
localtime=0
keymap="us"
builder="linux"
bootloader="/usr/lib/xen/boot/domUloader.py"
bootargs="--entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen"
extra= "xencons=tty Dom0Hostname="+os.uname()[1]
disk=[ 'file:/var/lib/xen/images/vm1/disk0,xvda,w', ]
vif=[ 'bridge=br0', ]

DomU:~ # cat /proc/cmdline 
xencons=tty Dom0Hostname=bigbox03-dom0




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


 


Rackspace

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