[Lxc-users] retrieve guest container's ip address

Alan McDuff alan.mcduff at yahoo.com
Sat Jan 5 12:29:27 UTC 2013


>If you paste the .lxc part from http://www.stgraber.org/2012/07/17/easily-ssh-to-your-containers-and-vms-on-ubuntu-12-04-lts/ into your ~/.ssh/config >and start the container, then you should be able to ssh with "ssh ubuntu at guest1.lxc".
>

>Marko 
Thanks, but this doesn't look like a clean setup to me. If there is no better solution, I will write a post-lxc-create script that appends "$(host $guestname 10.0.3.1) $guestname" to /etc/hosts.

Thanks
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130105/fe30b3e2/attachment.html>


More information about the lxc-users mailing list