[Lxc-users] problem in start lxc container
Fajar A. Nugraha
list at fajar.net
Fri Sep 21 21:30:27 UTC 2012
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
More information about the lxc-users
mailing list