digitalocean/go-qemu

qemu domain not listed

fooock opened this issue · 1 comments

Hi I'm testing the go-qemu package using the provided examples. I have a running qemu vm, and I expect to be it listed when execute the hypervisor_domain_list, but a get an empty list:

$ go run examples/hypervisor_domain_list/main.go 

Connecting to unix:///var/run/libvirt/libvirt-sock

**********Domains**********

***************************

As said, qemu VM is running:

$ ps xau | grep qemu
javi     17255 12.5  6.8 1841944 1118188 pts/1 Sl   16:41   0:58 qemu-system-x86_64 -m 1024 -hda ubuntu-18_04.img -enable-kvm

I'm using the master branch of go-qemu, commit dd7bb9c771b832426e2d51ef0aef82b359579854. My qemu version is:

$ qemu --version
QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-2ubuntu3.4)
Copyright (c) 2003-2018 Fabrice Bellard and the QEMU Project developers

Closing this because VM created with qemu is not 'visible' to libvirt based tools