[Lxc-users] problem in start lxc container
Binknight
zheng_huabin at 163.com
Mon Oct 8 04:04:11 UTC 2012
I want to setup nginx service on the container, so the container should be visible to other hosts as well as the HOST it lives. The HOST machine's ip is 10.2.132.110.
so is it possible to setup an ip for container that's visible to other hosts by configuring libvirt?
At 2012-09-22 05:30:27,"Fajar A. Nugraha" <list at fajar.net> wrote:
>On Fri, Sep 21, 2012 at 9:16 PM, Binknight <zheng_huabin at 163.com> wrote:
>>
>> many thanks,
>>
>> I edit the container's /etc/rc.d/rc.sysinit and add :
>> route add default gw 192.168.122.1 # address of virbr0
>> echo >> /etc/resolv.conf nameserver 10.2.0.41 #name server the same as
>> that in HOST's /etc/resolv.conf
>> then i can ping google successfully .
>
>libvirt SHOULD create the bridge as well as start dnsmasq, which
>functions as DHCP and dns. So if you had to do that manually you
>either:
>- don't use dhcp on the guest, or
>- your libvirt installation is broken
>
>--
>Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20121008/52caf55c/attachment.html>
More information about the lxc-users
mailing list