Handling virtual machines

From Klaus' wiki
Jump to: navigation, search


Use the virt-clone to make a copy of a already installed virtual machine

$ virt-clone -o <original-name> -n <new-name> -f /path/virt-machine-file

Start a virtual machine

To start and get the console use the following

$ xm create /etc/xen/<virt-machine-name>
$ xm console <virt-machine-name>

Hint: Use Crtl+] (ctrl+AltGr+]) to get out of a console.

Resize a LVM based Disk

Follow the instructions given here and there to resize a virtual machines disk if it uses LVM, which most in the Red Hat family does.