At Hetzner(Germany) you can rent quite hot machines for a very good price. But what happens when you want to set-up multiple Xen virtual machines? You might get into trouble unless you follow these instructions. They are probably not the only solution for a well working xen machines farm but this one worked well for me.
Category: XEN
List of XEN Virtualization tips and tricks
Create a (bridged) VLAN for Xen Virtual Machines
To create a virtual private LAN which allows to communicate between Xen virtual machines (DOMx) via eth1 including the DOM0(dummy0), follow these instructions. This will create a bridge in xen DOM0 and a new interface(eth1) in the DOMx (in our case ‘vsystem1’). NOTE: This method implies that the eth0 is also bridged. In case you …
Troubleshooting no root login possible from Xen console
If you can’t login as root from the Xen console on a DomU then do the following: – stop the DomU – Mounted it on a directory through loop mount -o loop,rw /where/my/DomU/image.is /mnt/domu/ – chroot to it chroot /mnt/domu/ – Install the udev package. (it complains at the end..but no worry) apt-get install udev …
chroot inside xen VM VDSO problem
If inside a xen machine you try to do a chroot into a directory and get this error: Inconsistency detected by ld.so: rtld.c: 1192: dl_main: Assertion `(void *) ph->p_vaddr == _rtld_local._dl_sysinfo_dso’ failed! One of the possible solutions is to use the following command before issuing the chroot. echo 0 >/proc/sys/vm/vdso_enabled It is supposed to have …
Installing Webmin based Xen Virtual Machines Control Panel
I know it’s totally an overkill to install Webmin to be able to freely and remotely control some basic features of the xen virtual Machines. But so far I haven’t found a really simple and decent replacement for it. Let me know if you do: michel@linuxint.com It took me a little while to find the …
Troubleshooting PTY allocation request failed on channel 0
This is an extract from a tip from ‘Xen Virtualization community support and Howto’s.‘. Thanks guys. It saved my but. When installing new virtual machine on a Debian “Lenny” host, You might get the following error message once you try SSH the new domU: PTY allocation request failed on channel 0 stdin: is not a …
Installing Windows 2003/XP/7 32 Bit on Xen in Debian Squeeze 64 Bit.
The task here is to install, run and administrate Windows 2003/XP/7 on a remote server in Internet where Xen 4.x is already installed and HVM is supported in hardware. The steps to install and run Windows are slightly different than for Linux Guests OS. In these cases Q Emu virtualization drivers are needed to complete …
Change memory size while running XEN vMachine
While running you can change the live memory size of a VM or the Domani-0 (although may be dangerous for crashes) Use the command: xm mem-set ID NewMEMSize
Stop/Start a single XEN virtual machine
Assuming that the virtual machine is running, to stop the machine: – Make a list of the running virtual machines and note the ID of the one concerned. xl list Lets suppose the ID of the virtual machine concerned is 15 – Shutdown the machine. xl shutdown 15 – Make a few xm list commands …
Resizing XEN virtual image
Question: I am using Xen to create Virtual Machines, but how can I re-size the virtual disk image? Solution: Add an extra empty space to your virtual disk size and re-size the filesystem in it: or if reducing is needed, minimize the files system, add empty space to it as desired and re-size it. Example …