[Lxc-users] SSHD container and DHCP
Martin Konečný
martin.konecny at sourcefabric.org
Fri Dec 23 22:57:15 UTC 2011
OK I found my problem was due this file:
/etc/udev/rules.d/70-persistent-net.rules
Once removed, everything was fine....dhcp is working by default on
container start.
Martin
2011/12/22 Martin Konečný <martin.konecny at sourcefabric.org>
> 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.konecny at 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
>
>
--
Open source radio in the cloud. Get yours now! ---> http://airtime.pro
Martin Konecny
Software Developer, Sourcefabric
martin.konecny at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20111223/7760274a/attachment.html>
More information about the lxc-users
mailing list