Re: [vserver] Find out hostname of hostsystem

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 16 Nov 2010 - 15:11:24 GMT
Message-ID: <20101116151124.GH26106@MAIL.13thfloor.at>

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
Received on Tue Nov 16 15:21:56 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 16 Nov 2010 - 15:21:56 GMT by hypermail 2.1.8