Redhat:Virsh

From Define Wiki
Revision as of 15:36, 3 September 2013 by Michael (talk | contribs) (→‎virt-install)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

The virt-install cmmand will set up a VM in the same way as the Virtual Manager. It will prompt the user for the specification of the VM before creating it.

virt-install --prompt

virt-clone

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

virt-clone --prompt