xm create -c /path/to/config - Start a virtual machine xm shutdown - Stop a virtual machine xm destroy - Stop a virtual machine immediately without shutting it down It's as if you switch off the power button xm list - List all running systems xm console - Log in on a virtual machine xm help - List of all commands =============== xen-create-image xen-create-image --hostname=xen1.example.com --size=2Gb --swap=256Mb --ide \ --ip=192.168.0.101 --netmask=255.255.255.0 --gateway=192.168.0.1 --force \ --dir=/home/xen --memory=64Mb --arch=i386 --kernel=/boot/vmlinuz-2.6.19-4-server \ --initrd=/boot/initrd.img-2.6.19-4-server --debootstrap --dist=dapper \ --mirror=http://de.archive.ubuntu.com/ubuntu/ --passwd --------------- /etc/xen/xen1.example.com.cfg # Kernel + memory size # kernel = '/boot/vmlinuz-2.6.19-4-server' ramdisk = '/boot/initrd.img-2.6.19-4-server' memory = '64' # Disk device(s). root = '/dev/hda1 ro' disk = [ 'file:/home/xen/domains/xen1.example.com/disk.img,hda1,w', 'file:/home/xen/domains/xen1.example.com/swap.img,hda2,w' ] # Hostname name = 'xen1.example.com' # # Networking # vif = [ 'ip=192.168.0.101' ] # # Behaviour # on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' =============== start the virtual machine xm create /etc/xen/xen1.example.com.cfg --------------- shut down xm shutdown xen1.example.com --------------- login xm console xen1.example.com --------------- CTRL+] log in on that VM if you are at the console --------------- =============== list VMs xm list --------------- list of all VMs that were created with the xen-create-image xen-list-images --------------- =============== vm01 to start automatically at the next boot of the system ln -s /etc/xen/xen1.example.com.cfg /etc/xen/auto =============== ===============