2021-05-09 19:07:56 +01:00
|
|
|
# virsh-connect
|
|
|
|
|
|
|
|
> Connect to a virtual machine hypervisor.
|
|
|
|
> See also: `virsh`.
|
|
|
|
> More information: <https://manned.org/virsh>.
|
|
|
|
|
|
|
|
- Connect to the default hypervisor:
|
|
|
|
|
|
|
|
`virsh connect`
|
|
|
|
|
|
|
|
- Connect as root to the local QEMU/KVM hypervisor:
|
|
|
|
|
|
|
|
`virsh connect qemu:///system`
|
|
|
|
|
|
|
|
- Launch a new instance of the hypervisor and connect to it as the local user:
|
|
|
|
|
|
|
|
`virsh connect qemu:///session`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Connect as root to a remote hypervisor using SSH:
|
2021-05-09 19:07:56 +01:00
|
|
|
|
|
|
|
`virsh connect qemu+ssh://{{user_name@host_name}}/system`
|