[libvirt] Cannot get network to work with LXC

Serge E. Hallyn serue at us.ibm.com
Tue Jul 7 14:56:23 UTC 2009


Quoting James Yu (cyu021 at gmail.com):
> Hi all,
> 
> I tried to use the first xml config in http://libvirt.org/drvlxc.html to

Which version of libvirt were you using?  Was it the one which came with
your distro, and, if so, which distro?  You might try installing the
version from
	git clone git://libvirt.org/libvirt.git

> setup my first light weight container.
> However, I was unable to get the container's network to work.
> When I tried to give the interface an IP, I got the following error message:
> 
> sh-4.0# /sbin/ifconfig veth1 192.168.0.1/24
> SIOCSIFADDR: Permission denied
> SIOCSIFNETMASK: Permission denied
> SIOCGIFADDR: Cannot assign requested address
> SIOCSIFBROADCAST: Permission denied
> SIOCSIFFLAGS: Permission denied
> sh-4.0#
> Any advise ?
> 
> 
> This is a UTF-8 formatted mail
> -----------------------------------------------
> James C.-C.Yu

> --
> Libvir-list mailing list
> Libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list