You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use a different URI (e.g. qemu:///session). I think a driver parameter would be appropriate here. Alternatively, passing an empty string to libvirt.NewConnect would have libvirt select the default connection and let the user configure it themselves.
func NewConnect(uri string) (*Connect, error) {
var cUri *C.char
if uri != "" {
cUri = C.CString(uri)
defer C.free(unsafe.Pointer(cUri))
}
ptr := C.virConnectOpen(cUri)
I totally agree with this. That's now easy to have user QEMU thanks to qemu-bridge-helper. We need only two params : the connection string (use the session) and the bridge to use (instead of a libvirt network).
This will avoid a password prompt and make it more secure. Also, this will help isolate dév env in dév home.
Sifting through the code I gather the connection URI is not configurable.
I need to use a different URI (e.g.
qemu:///session
). I think a driver parameter would be appropriate here. Alternatively, passing an empty string tolibvirt.NewConnect
would have libvirt select the default connection and let the user configure it themselves.virConnectOpen
: https://libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenThe text was updated successfully, but these errors were encountered: