Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 07-14-2014, 02:12 PM   #1
LQ Newbie
Registered: Jun 2014
Posts: 8

Rep: Reputation: Disabled
LXC unprivileged container - operation no permitted

After following Stephane Graber's instructions and several others who all point to his work, I cannot get unprivileged containers to work.

When trying to start the container after creation, which had no errors, I get this set of errors:
$ lxc-start -n test1
chown: changing ownership of `/dev/pts/11': Operation not permitted
lxc_container: Failed to chown /dev/pts/11
lxc_container: Failed to shift tty into container
lxc_container: failed to initialize the container
lxc_container: The container failed to start.

1. create new user
2. ensure new user has subuid/gid range in /etc/subuid /etc/subgid
3. add range to /etc/lxc/lxc-usernet
4. create ~/userid/.confg/lxc/default.conf
5. create lxc instance
$ lxc-create -t download -n test1 -- -d ubuntu -r trusty -a amd64
6. check instance with lxc-ls --fancy, all looks good
7. lxc-start -n test1
8. Get the errors as listed.

Ubuntu 14.04
LXC 1.0
Validated cgroups config

BTW - lxc works great when createing and running multiple lxc servers from root

Any help would be great.
Old 07-15-2014, 12:35 AM   #2
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 153

Rep: Reputation: Disabled
Unprivileged usage was affected by kernel upgrade somewhere between 3.14.5 (which worked for me) and 3.14.12 which I recently tried (doing all the same stuff) but failed with same ownership messages as you. Fixes to accommodate whatever happened in the kernel have been included in new lxc release 1.0.5 (just out today from I've tried it out and unprivileged container use is working again with no other changes needed.

1 members found this post helpful.
Old 07-15-2014, 04:34 PM   #3
LQ Newbie
Registered: Jun 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you Chris, upgrading to 1.0.5 worked.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXC Container: sound Not working charlie101 Linux - Virtualization and Cloud 10 06-14-2015 12:16 PM
lxc ... xf86OpenConsole: Cannot open virtual console 9 (Operation not permitted) masuch Linux - Desktop 1 06-07-2014 11:29 AM
How to use Local ISO for LXC Container? sunveer Linux - Software 0 10-04-2013 05:44 AM
[SOLVED] Outputting X display from inside an LXC Container charlie101 Linux - Virtualization and Cloud 1 02-04-2013 10:41 PM
How to end a Linux Container (LXC) from within? Skaperen Linux - Virtualization and Cloud 0 06-14-2011 10:37 AM

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration