Redhat:Virsh

From Define Wiki
Revision as of 15:34, 3 September 2013 by Michael (talk | contribs) (→‎virt-clone)
Jump to navigation Jump to search

VM Command Line Tools

VMs can be created, cloned, converted and installed using the command line. Three commands are used to do this: virt-install, virsh, virt-clone.


virsh

Autostart <VM> Start the VM when the physical system starts up
capabilities List the Abilities of the local hyper-visor
edit <VM> Edit the VM
list --all List all VMs
start <VM> Start a VM
shutdown <VM> Gracefully shutdown a VM
destory <VM> Equivalent of pulling the plug on a VM

virt-install

virt-clone

In order to clone a VM, the VM must be shutdown first, beofre running the command:

virt-clone --prompt