[Users] finding out the HN name from inside the VC
Philipp Wehrheim
flipstar at gmx.net
Mon Mar 1 07:51:53 EST 2010
Hey,
Aleksandar Ivanisevic schrieb:
>
> Is there a more elegant way of finding the host name or anything about
> the host node from inside the container than scripting something in
> /etc/vz/conf/vps.mount ?
if you are only searching for the hostname you could use
cat /proc/sys/kernel/virt_osrelease | sed "s,openvz,$(uname -n),g" >/proc/sys/kernel/virt_osrelease
and
cat /proc/sys/kernel/virt_osrelease
at the CT side.
cheers
flip
More information about the Users
mailing list