On Fri, Jun 17, 2016 at 10:27:33AM +0300, Fatih ER wrote:
> Hi there friends,
> 
>  
> 
> Actually this is a direct question for Stéphane Graber because he is the 
> master of both worlds for me. But any other friendly helps would be 
> appreciated. I’m enjoying LXD recently by following guides of Stéphane to 
> learn how it works. ZFS and Bridged Networking works like a charm.  
> 
>  
> 
> Started to move my KVM virtual machines to LXD containers for development and 
> I hit a bump on my LTSP Servers. 
> 
>  
> 
> When I used: 
> 
>  
> 
>  #ltsp-build-client --fat-client --fat-client-desktop ubuntu-desktop --arch 
> amd64 --base /opt/ltsp --chroot amd64-nvidia --skipimage --purge 
> 
>  
> 
> I got : 
> 
>  
> 
> mknod: /opt/ltsp/amd64-nvidia/test-dev-null: Operation not permitted
> 
> E: Cannot install into target '/opt/ltsp/amd64-nvidia' mounted with noexec or 
> nodev
> 
> error: LTSP client installation ended abnormally
> 
>  
> 
> Searched the internet whole day and can’t find any tips to follow. 
> 
>  
> 
> Thanks in advance, and have a great day.

You cannot mknod inside unprivileged containers, the kernel just won't let you.

Either you need to work around the problem by moving around a compressed
tarball without the /dev entries and bind-mount the ones from the
container /dev onto them instead, or go the easy way about it and just
make the container privileged with 'lxc config set NAME security.privileged 
true'.

You'll then most likely hit another restriction which is about mounting
potentially dangerous filesystems in unusual locations which our
apparmor profile blocks. To turn that retriction off, running 'lxc
config set NAME raw.apparmor "mount,"' should do the trick.

Once you've done those two config updates, restart the container and
things will hopefully work fine.


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to