[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] How to find dom0 name from domU
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |