Difference between revisions of "Handling virtual machines"

From Klaus' wiki
Jump to: navigation, search
(Created page with '==Cloning== Use the virt-clone to make a copy of a already installed virtual machine <source lang="bash"> $ virt-clone -o <original-name> -n <new-name> -f /path/virt-machine-fi…')
 
Line 17: Line 17:
  
 
Hint: Use Crtl+] (ctrl+AltGr+]) to get out of a console.
 
Hint: Use Crtl+] (ctrl+AltGr+]) to get out of a console.
 +
 +
==Resize a LVM based Disk==
 +
 +
Follow the instructions given [http://unix-heaven.org/node/84 here] to resize a virtual machines disk if it uses LVM, which most in the Red Hat family does.

Revision as of 13:30, 14 September 2014

Cloning

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 to resize a virtual machines disk if it uses LVM, which most in the Red Hat family does.