LinuxCommandLibrary

virsh-connect

Connect to a virtual machine hypervisor.

TLDR

Connect to the default hypervisor

$ virsh connect
copy


Connect as root to the local QEMU/KVM hypervisor
$ virsh connect qemu:///system
copy


Launch a new instance of the hypervisor and connect to it as the local user
$ virsh connect qemu:///session
copy


Connect as root to a remote hypervisor using ssh
$ virsh connect qemu+ssh://[user_name@host_name]/system
copy

Copied to clipboard