Home » Virtualization

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 once again using LVM for [...]

PPP in container

Our goal is to start the pppd daemon in a virtual machine. Then it is possible, for example, to connect to your DSL provider in a VM. Caveat This feature is experimental. It currently requires a version of vzctl patched with this patch. It is also necessary to run one of these 2 kernels : 2.6.27 [...]

Create users in OpenVZ Containers

Helper script to create users on all OpenVZ VEs simultaneously:   #!/bin/bash # create_ve_users.sh # Usage: ./create_ve_users.sh <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 65 fi VE_LIST=$(/usr/sbin/vzlist -H -o veid) for VE in ${VE_LIST} do vzctl [...]

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 under XEN (xenbr0) using ifconfig [...]

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: xm destroy vmname xm create [...]

XenServer create local ISO Repository (LVM)

Local ISO Repository To create a local ISO Repository for XenServer you can use any directory on the filesystem. The Problem is that the Operating System has normally about 2GB free space left which is too less. To use the “Local Storage” LVM space you can do it in the following way: Check the free [...]

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 a Debian Etch machine: apt-get [...]

Adding an ISO repository on XenServer 5.5

In order to do advanced installs or installations where there are no templates under XenCenter and you wish to use your own custom ISO images, you can add an ISO repository. The following steps outlines what needs to be done; mkdir -p /var/opt/xen/iso_import Copy your ISO image to this directly, but be careful as the [...]

VPS login problem: enter into Container VEID failed

You may receive the following message on accessing a VPS from the host server: # vzctl enter 101 enter into VE 101 failed Unable to open pty: No such file or directory The reason behind is the missing tty/pty files OR the udev devices. There are two ways of creating them, using the ‘MAKEDEV’ program [...]

vzquota : (error) Quota is running, stop it first

If you receive the error message “vzquota : (error) Quota is running, stop it first” while restarting a VPS, you will first have to turn off it’s quota and then drop it vzquota off  VEID vzquota drop VEID Once done, restart the VPS and it will re-initialize the quota for the VPS and will start [...]