KVM | Administration & Management of Guest VMs

Опубликовано: 12 Октябрь 2024
на канале: Yogesh Mehta
8,329
95

Below are the most commonly used KVM commands by the System Admins.

List all running VMs
virsh list

List all running VMs irrespective of state.
virsh list --all

Start/Shutdown/Reboot the VM
virsh start guest_vm
virsh shutdown guest_vm
virsh reboot guest_vm

Suspend/Resume VM.
virsh suspend guest_vm
virsh resume guest_vm

Destroy VM instance
virsh shutdown guest_vm
virsh undefine guest_vm
virsh destroy guest_vm

Enter Guest's Console
virsh console guest_vm

Exit Guest's Console
Ctrl+]

To enable or disable Autostart of the Guest VMs with the Host .
virsh autostart guest_vm
virsh autostart --disable guest_vm

To get the UUID of the domain/vm
virsh domuuid guest_vm

Watch the video for more details :