I set autoport=yes
in a domain's("virtual machine" in libvirt) config file so the VNC port is assigned automatically in the run time.
I need to get this port so I can connect to the vm from outside, but I can't find the proper API to do so. Better in python because I'm using the libvirt-python bindings.
5902
as you would expect even if the base configuration isport=5000 autoport=yes
. – Expellee