2013-01-07

How to use virsh (KVM)

First, find out the names of the virtual machines you're running (including those that are shut off):
# virsh list --all

Then, connect to the text console of the VM you're interested in:
# virsh console VMNAME
Important: To exit the console, use CTRL-] (To connect to the graphics console, use VNC.)

Other useful commands:
# # Hard power off:
# virsh destroy VMNAME 
#
# # Power on:
# virsh create VMNAME
#
# # Remove a VM that you can't destroy
# virsh undefine VMNAME

Read more here:




No comments:

Post a Comment