Description
Description
You can use libvirt for talking to the local libvirtd, but it can also open a remote connection:
https://libvirt.org/remote.html
This makes it interesting for starting the QEMU machine on a local server, instead of localhost.
There is also the qemu://session
, but it doesn't really add anything over running qemu-system?
Thinking of adding a new "virt" driver, for using libvirt. The goal is to run qemu remotely.
-
qemu:///system
connects to a system mode daemon. (like rootful) -
qemu:///session
connects to a session mode daemon. (like rootless)
The libvirt libraries bring a lot of dependencies though, so hide them in an optional .so plugin...
Alternatives
The alternative (to qemu+ssh://
) is to ssh
to the remote host, and run limactl
from there...
The libvirt driver would be more interesting when coupled with oVirt, to allocate a VM ?
But that would probably be better as a separate "cloud" driver, using the go-ovirt-client