Difference between revisions of "Redhat:Virsh"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== 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....")
 
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
== virsh ==
 
== virsh ==
 +
 +
{| class="wikitable"
 +
| 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-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.
 +
 +
<syntaxhighlight>
 +
virt-install --prompt
 +
</syntaxhighlight>
  
 
==virt-clone==
 
==virt-clone==
 +
 +
 +
In order to clone a VM, the VM must be shutdown first, beofre running the command:
 +
 +
<syntaxhighlight>
 +
virt-clone --prompt
 +
</syntaxhighlight>

Latest revision as of 15:36, 3 September 2013

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