Skip to content

Libvirt driver, for hypervisors on remote machines  #2031

Closed as not planned
Closed as not planned
@afbjorklund

Description

@afbjorklund

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...

https://libvirt.org/uri.html

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions