How do I run more instances than 256 when the number of loop devices is limited?

asked 2011-08-29 21:09:03 -0500

bas-t gravatar image

I am running:

  • Diablo 4
  • LXC hypervisor
  • No qcow images, just plain

Nova creates a loopback device for each instance. How do I run more than 256 instances when this is limited to 256? Is there a way to avoid having loop devices for the filesystem?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-08-29 21:38:59 -0500

blamar gravatar image

If you switch to using qcow images you'll automatically switch to using NBD instead of loopback devices for mounting images. That flags is use_cow_images=True. If you can't use that then another option is increasing the maximum number of loopback devices which can be made.

Normally this can be done, if you're using loopback support via a kernel module, by doing:

$ rmmod loop $ modprobe loop max_loop=1024

Hope this helps!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-08-29 21:09:03 -0500

Seen: 53 times

Last updated: Aug 29 '11