Virtuozzo Tips and Tricks July 13th, 2007| Edit | email this | share this | digg thisPowered by Gregarious (42) | del.icio.us | furl Leave your comment Posted by admin Published in Tech http://netfreak.ca Here are some easy tips and tricks for accomplishing more with SWsoft’s Virtuozzo virtualization software. Much of the included information should also apply to the open source OpenVZ software. Enabling TUN Access for a VE # vzctl set –devices c:10:200:rw –save # vzctl exec mkdir -p /dev/net # vzctl exec mknod /dev/net/tun c 10 200 # vzctl exec chmod 600 /dev/net/tun Shell Script: Execute command on all VEs for i in $(vzlist -H |awk {’print $1'}); do if [ “$i” != “1? ]; then vzctl exec2 $i “command; next command” fi done ; Setting higher iptables rules limit (for CSF, etc) # vzctl set –numiptent 400 –save VZ external mount points # mount –bind /dev/ /vz/root// Setting VE Quotas # vzctl set –quotaguid 2000 # vzquota on -p /vz/private -r 0 -s 1 -u 2000 -b -B -i -I Separating RAM and SWAP in VE This particular issue is seen within an environment. Instead of showing separate dedicated RAM and SWAP, both numbers are added together as RAM and SWAP shows as zero. SWsoft techs report that this will not cause a performance problem, but can be fixed using this command on the hardware node: # sysctl -w slm.task_group_priv=1000