[#651] Proxmox 4.0 - Maximum Number of LXC Containers is restricted to 9 (LOOP bug)

haxxa

Renowned Member
Jun 26, 2015
37
6
73
Hi,

When I try to launch more than 9 LXC containers after reboot, it seems to fail. When attempting from CLI I get this from the output of 'lxc-start" -

lxc-start 20150427012246.584 ERROR bdev - bdev.c:find_free_loopdev:1907 - No loop device found
lxc-start 20150427012246.584 ERROR lxc_conf - conf.c:mount_rootfs:883 - No such file or directory

This is due to the number of LOOP devices being restricted to 9.

"ls -ls /dev | grep loop | wc -l" outputs "9".


Attempts to increase the loop devices to something more reasonable fails -
(by adding a new file to /etc/modprobe.d/local-loop.conf with this content: "options loop max_loop=64")
However I can't reload loop via modprobe as it's inbuilt into the kernel any attempts to increase the loop devices has so far not succeeded.

To replicate this bug simply setup more than 9 lxc containers with them all set to start on boot and reboot and you will see that only 9 will start.

Any ideas?
Regards - Harrison
 
Re: Proxmox 4.0 - Maximum Number of LXC Containers is restricted to 9 (LOOP bug)

Known bug. The loop device number is limited. I will try to fix that asap.
 
Re: Proxmox 4.0 - Maximum Number of LXC Containers is restricted to 9 (LOOP bug)

Will a patch be available before release through apt?
 
Re: Proxmox 4.0 - Maximum Number of LXC Containers is restricted to 9 (LOOP bug)

Will a patch be available before release through apt?

yes.