retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.63k stars 362 forks source link

Webvirtcloud cannot connection to new libvirt version #652

Open hungviet99 opened 3 days ago

hungviet99 commented 3 days ago

In RHEL 9, the libvirt library uses modular daemons that handle individual virtualization driver, so redhat changed from libvirt to virtqemud daemon handles QEMU drivers.

I configured file /etc/libvirt/virtqemud.conf following:

[root@dbp-mgmt-01 common]# cat /etc/libvirt/virtqemud.conf | egrep -v "^*#|^$"
listen_tls = 0
listen_tcp = 1
tcp_port = "16509"
listen_addr = "0.0.0.0"
auth_tcp = "none"

and then restart virtqemud.service but i still couldn't connect to libvirt server with port 16509.

[root@dbp-mgmt-01 common]# virsh -c qemu+tcp://localhost:16509/system list
error: failed to connect to the hypervisor
error: unable to connect to server at 'localhost:16509': Connection refused

How can I open port 16509 so webvirtcloud can connect to it?

catborise commented 23 hours ago

you must start libvirt service with virtproxyd-tcp.socket to connect remote host.