[lxc-users] Fwd: How to get details of Host System
Tamas Papp
tompos at martos.bme.hu
Tue Mar 18 11:40:55 UTC 2014
On 03/18/2014 11:46 AM, Devendrasing Patil wrote:
> Hi,
>
> I am a kind of noob with lxc.
>
>
> I wanted to know how do i get details of the server on which my lxc
> container has been hosted. What i meant is : On my Ubuntu Server
> (13.04), I have created a container X. Now from container X, how do i
> get name of my ubuntu server on which it has been created?
>
>
AFAIK you cannot.
You need to provide that information from the host, eg.:
cd $LXCROOT
for container in *;do
hostname -f > $container/rootfs/.location
done
Cheers,
tamas
More information about the lxc-users
mailing list