We need more loop devices on Linux than the default number (most commonly 8) some time, such as we are building 12 or more virtual machines on top of xen using loop device backed VBD. In this post, we want to use 32 loops.
1. If loop device is compiled directly in the kernel
2. If loop device is compiled as a module
Pass “max_loop=32” as argument to the modprobe command.
# modprobe loop max_loop=32