No loopback device in OpenVZ/Virtuozzo servers
Posted by chengfu on 4 Nov 2007 4:17 pm. Filed under Misc Stuff.
Last week I tried to use two virtual servers (based on Virtuozzo) to learn something about DRBD. As DRBD syncs a block debice I wanted to set up a loopback device and sync that across both servers.
Unfortunately all my tries to get the loopback device to work resulted in an error “no permission to look at /dev/loop#”.
Today I found the solution in the OpenVZ forum: there is no support for loopback devices in machines running on OpenVZ/Virtuozzo.







On May 5th, 2009 at 11:29 am
hi!
I’m looking for doing exactly the same thing. (DRBD on Virtuozzo containers).
Did you find another solution to solved the problem ?
Do you know if there is a solution to add another virtual hard drive (vzfs) to a virtuozzo container ?
Thanks
Daffy
On May 26th, 2009 at 9:32 am
vi /etc/vz/dists/scripts/debian-add_ip.sh
LOOPBACK=lo #add if missing
remove #
auto ${LOOPBACK} #add
auto ${VENET_DEV}
iface ${LOOPBACK} inet loopback #add
iface ${VENET_DEV} inet static
address 127.0.0.1
netmask 255.255.255.255
broadcast 0.0.0.0
done