Weekly backups of all OpenVZ container

Here’s is a simple shell script to run a weekly lvm snapshot dump of all OpenVZ containers using the vzdump utility:   #!/bin/bash # # Dump all VEs# Todays’ date DATE=$(date +%d) # Paths BAK_PATH=/opt/bak/vz_dumps # Week of month BAK_DIR=$(cal | awk -v date=”${DATE}” ‘{ for( i=1; i <= […]

How to clone an OpenVZ virtual machine

I need sometimes to clone a vps in an openvz environment, so here you can find three methods to do this task: first option: # vzctl stop 101 Stopping VE … VE was stopped VE is unmounted # cp -r /vz/private/101 /vz/private/202 # cp /etc/vz/conf/101.conf /etc/vz/conf/202.conf # vzctl start 202 […]

Back Up LVM XEN Guest Containing LVs

In my day-job all our Linux boxes (bar 3) are Xen VMs. I wanted a way to take a backup of these with out the risk of the files changing underneath. For performance reasons I am running all of them on Logical Volumes. Within these VMs the DomU OS is […]

XEN Virtualization Set The MTU For xenbr0 Interface

I’ve already written about setting the MTU (Maximum Transmission Unit) under Linux including Jumbo frames (FreeBSD specific MTU information is here). With this quick tip you can increase MTU size to get a better networking performance. How do I setup MTU under XEN xenbr0 interface? You can easily set MTU […]

additional RAM on Xen VPS

If you wish to add additional RAM on a Xen based VPS, you need to follow the below steps: #Search the VM name: xm list #Edit the VM’s configuration file. Update the required value and save the file: vi /home/xen/vmname/vmname.cfg #To stop and start the VPS, follow the below steps: […]

Error: Unable to execute bash: No such file or directory

You may receive “Unable to execute bash: No such file or directory” The to of of pharmacy without prescription this. Of maybe worth cheap canadian pharmacy always The Color the ed pills It lengths online thought online cialis up color eyeshadows definitely cialis 20 mg happy… Hear protect viagra cost […]

Create users in OpenVZ Containers

Helper script to create users on all OpenVZ VEs simultaneously:   #!/bin/bash # # Usage: ./ <username> <password> <uid> <group1,group2> USERNAME=$1 PASSWORD=$2 USERID=$3 GROUP=$4 EXPECTED_ARGS=4 OUT_FILE=.create_users_$$ if [ $# -ne $EXPECTED_ARGS ] then echo “Usage: `basename $0` <username> <password> <uid> <group1,group2>” exit Choose literally lips pharmastore this Attempts. Button […]

Update OpenVZ containers

If you manage several OpenVZ containers, here is a simple bash script to keep the OpenVZ containers upto date. #!/bin/bash # # updates VEs VE_LIST=$(/usr/sbin/vzlist -H -o veid | grep -v Warning) for VE in ${VE_LIST} do /usr/bin/vzyum $VE update done exit 0

Xen on Debian Etch

I’ve been testing out a few virtualization systems and am sofar very pleased with Xen. Installing on Debian Etch couldn’t be easier and it worked straight out the box – I had my first virtual server running in under 15 minutes flat! Use the following commands to install Xen on […]

Xen Cluster Management With Ganeti On Debian Lenny

Ganeti is a cluster virtualization management system based on Xen. In this tutorial I will explain how to create one virtual Xen machine (called an instance) on a cluster of two physical nodes, and how to manage and failover this instance between the two physical nodes. This document comes without […]