Subject: Re: [vserver] Find out hostname of hostsystem
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Tue, 16 Nov 2010 16:11:24 +0100

On Tue, Nov 16, 2010 at 02:55:47PM +0100, Michael Rennt wrote:
> Hi all,

> is there a way to find out the name of the hostsystem a 
> virtual server is running on from inside the vserver?

not unless the host administrator provides that
information via configuration or files

> I looked through a lot of /proc entries and just found 
> /proc/version, which includes the name of the hostsystem 
> the kernel was build on. 

which can be configured to anything for a Linux-VServer
guest

> But this is not distinct enough, as the kernel might 
> have been built on a different system.

correct

> Is there a capability that enables anything like that?

nope, but as I said, you could put that information
into the guest configuration (UTS) or if you prefer
directly into the guest via some file

best,
Herbert

> All the best,
> Michael