mkvm/libvirtx/connect.go

15 lines
298 B
Go
Raw Normal View History

2024-12-03 04:22:30 +00:00
// Copyright Entanglement Garden Developers
// SPDX-License-Identifier: AGPL-3.0-only
package libvirtx
import (
"github.com/sirupsen/logrus"
"libvirt.org/go/libvirt"
)
func New() (*libvirt.Connect, error) {
logrus.Debug("connecting to libvirt")
return libvirt.NewConnect("qemu:///system")
}