[Lxc-users] libvirt-lxc and fedora

Serge Hallyn serge.hallyn at canonical.com
Mon Jan 14 18:56:50 UTC 2013


Quoting Cristian Falcas (cristi.falcas at gmail.com):
> Hello,
> 
> Does anybody have any experience with running lxc using libvrt with a
> fedora host?
> 
> In the guest (fedora or ubuntu) I try to create a tun node, but I'm
> getting "Operation not permitted":
> 
> [root at wikitiki vpn_itne]# mkdir /dev/net
> [root at wikitiki vpn_itne]# mknod /dev/net/tun c 10 200
> mknod: `/dev/net/tun': Operation not permitted
> 
> This is only inside the virtual machine, because in the host I can
> create the device anywhere. SElinux is in permissive mode.

After the container is started, you need to add permission to use
that device to the container's devices cgroup.

> Also, can someone explain me from where are the dev nodes created under libvirt?
> 
> Thank you,
> Cristian Falcas
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122412
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users




More information about the lxc-users mailing list