[#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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!