10/21/2011

XEN: add loop device

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

when you see that while "xm create ...", then

run: (ex. 128)
echo 'options loop max_loop=128' > /etc/modprobe.d/loop-device.conf

add this to rc.local:

for i in $(seq 8 128) ;
do /usr/bin/mknod -m660 /dev/loop$i b 7 $i ;
done

THAT will solved the problem

No comments:

Post a Comment