Redhat:Virsh
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 --promptvirt-clone
In order to clone a VM, the VM must be shutdown first, beofre running the command:
virt-clone --prompt