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" <l...@fajar.net> wrote:
>On Fri, Sep 21, 2012 at 9:16 PM, Binknight <zheng_hua...@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
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to