You are not logged in.
I'm trying to learn how to use linux containers, and I'm having a heck of a time. The wiki article is ... not the best of all Arch Linux Wiki articles. There seem to be many disconnects between the various sections.
Anyway, I was hoping to make things a bit easier by using virt-manager to create and manage my containers, but it keeps complaining that I don't have the memory cgroup controller. I've confirmed this by running:
lxc-checkconfigI've attempted to recompile the kernel a few different times with the proper settings adjusted (based on what's suggested here http://lxc.teegra.net/ and here http://0pointer.de/blog/projects/cgroup … oups.html). I've modified the config both manually and using nconfig. Each time I get to the "make bzImage modules" step, though, it appears that the configuration is wiped out (silentoldconfig?). I've checked the configuration on the stock 3.5.3, stock 3.6.2, stock 3.0.46-lts, 3.6.2-ck, linux-vanilla 3.6.2, and linux-mainline 3.7rc1 kernels. The only ones I've seen with the required controllers for LXC (via virt-manager, anyway) were 3.5.3 and 3.0.46-lts.
I'd rather tinker with this stuff using a kernel that's newer than those two, but it doesn't matter much because virt-manager still complains when I try to create a container on those kernels:
Unable to complete install: 'internal error guest failed to start: 2012-10-16 16:47:08.857+0000: 9830: info : libvirt version: 0.10.1
2012-10-16 16:47:08.857+0000: 9830: error : virExecWithHook:418 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-10-16 16:47:08.857+0000: 9830: warning : lxcCapsInit:77 : Failed to get host power management capabilities
PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=326ec615-c28e-9196-d300-581b32337497 LIBVIRT_LXC_UUID=326ec615-c28e-9196-d300-581b32337497 LIBVIRT_LXC_NAME=stc /sbin/init
2012-10-16 16:47:08.882+0000: 1: error : lxcContainerMountCGroups:1473 : Failed to mount cgroup on /sys/fs/cgroup: Invalid argument
2012-10-16 16:47:08.882+0000: 9831: error : virLXCControllerRun:1426 : error receiving signal from container: Input/output error
'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 96, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/create.py", line 1943, in do_install
guest.start_install(False, meter=meter)
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1249, in start_install
noboot)
File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 1317, in _create_guest
dom = self.conn.createLinux(start_xml or final_xml, 0)
File "/usr/lib/python2.7/site-packages/libvirt.py", line 2606, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error guest failed to start: 2012-10-16 16:47:08.857+0000: 9830: info : libvirt version: 0.10.1
2012-10-16 16:47:08.857+0000: 9830: error : virExecWithHook:418 : Cannot find 'pm-is-supported' in path: No such file or directory
2012-10-16 16:47:08.857+0000: 9830: warning : lxcCapsInit:77 : Failed to get host power management capabilities
PATH=/bin:/sbin TERM=linux container=lxc-libvirt container_uuid=326ec615-c28e-9196-d300-581b32337497 LIBVIRT_LXC_UUID=326ec615-c28e-9196-d300-581b32337497 LIBVIRT_LXC_NAME=stc /sbin/init
2012-10-16 16:47:08.882+0000: 1: error : lxcContainerMountCGroups:1473 : Failed to mount cgroup on /sys/fs/cgroup: Invalid argument
2012-10-16 16:47:08.882+0000: 9831: error : virLXCControllerRun:1426 : error receiving signal from container: Input/output errorDid something change in the 3.6.x+ kernels around the memory cgroup controller? Or have I simply not put enough effort into solving the problem?
I've also tried getting containers up and running without virt-manager. I was able to create a new Arch Linux container using:
lxc-create -t archlinux -n blablablaHowever, when I try to start it up with "lxc-start -n blablabla", I get messages like this
lxc-start: No such file or directory - failed to exec /sbin/init
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'blablabla'I've tried starting the container both from within /var/lib/lxc and elsewhere in the filesystem. What am I missing?
Current config, 64-bit:
linux 3.6.2-1-ARCH
lxc-git 20121015
libvirt 0.10.2-1
virt-manager 0.9.4-1
Offline