I'm actually testing RHEL 5.3 with Xen between two servers in order to have a disaster recovery solution. So I'm playing with moving my domU from one dom0 server to the other server.
Unfortunatly when somebody else move the domU I don't have any clue where my domain is hosted.
I'm wondering where I can't find my dom0 name with inside domU. I'm looking for something like the gzonename command on a solaris sparse zone.
I check inside /proc/xen but I don't see anything special except the dom0 kernel release.
Does anybody know a wait to find this ?
Best Answer
We use
xenstore-write /tool/hostname $(uname -n); xenstore-chmod /tool/hostname r
onDom0
and thenxenstore-read /tool/hostname
within the VMs. Easy and lightweight ...