Hi,
I've been looking into this for a few days without any success. When I
create an LXC container using lxc-ubuntu shell script, then my containers
can successfully obtain an IP address via DHCP.
However when I create a container using lxc-sshd, then I need to specify
the IP address manually for it to acquire an IP. I think I know why this is
happening (SSHD container has its own init script which probably forgoes
all network service initialization). I'd really like my SSHD container to
acquire an IP dynamically.
Things I've tried so far:
1) Running "dhclient"
2) Running ifup eth0
I'm running Ubuntu 11.10 operating system, and here is the contents of
/etc/network/interfaces (container's point of view)
auto lo
> iface lo inet loopback
> auto eth0
> iface eth0 inet dhcp
What can I do to start the network initialization? I'm learning all I can
about Linux network configuration right now, but a nudge in the right
direction would be appreciated.
Martin
Martin Konecny
Software Developer, Sourcefabric
martin.kone...@sourcefabric.org
720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15
http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users