search for: domservice

Displaying 2 results from an estimated 2 matches for "domservice".

Did you mean: disservice
2019 Feb 15
2
HELP!
...[root@localhost test]# ./test virError(Code=6, Domain=20, Message='invalid connection pointer in virConnectListAllDomains') 0 running domains: when running this program :- (below) package main import ( "fmt" libvirt "github.com/libvirt/libvirt-go" ) type DomService struct { Conn *libvirt.Connect } func (d *DomService) Connect() error { var err error d.Conn, err = libvirt.NewConnect("qemu:///system") if err != nil { fmt.Println(err) } defer d.Conn.Close() return nil } func (d *DomServi...
2019 Feb 15
0
Re: HELP!
Please consider writing more descriptive subjects. No need to shout, too. On Fri, Feb 15, 2019 at 08:43:36PM +0530, Shashwat shagun wrote: [...] >func (d *DomService) Connect() error { > var err error > d.Conn, err = libvirt.NewConnect("qemu:///system") > if err != nil { > fmt.Println(err) > } >defer d.Conn.Close() I have no idea how the golang bindings are structured, but I'm quite sur...