13 October 2011

XEN: Error: Device (vbd) could not be connected. Failed to find an unused loop device.

I was getting the following error
Error: Device 51714 (vbd) could not be connected. Failed to find an unused loop device
In order to fix it, check how many loop devices are in use:
# losetup -a
Then check how many loop devices are defined:
# ls -la /dev/loop* | wc -l
If you need to increase this number edit or create the /etc/modprobe.d/local-loop.conf with the following line:
options loop max_loop=128
This will create 128 loop devices. Now you should reboot the machine or reload the loop module (with all guests off):
# rmmod loop
# modprobe loop

No comments:

Post a Comment