Getting the port of a KVM guest

Get the tcp port to vnc into to get to a kvm host (named examplehost in this example) running under libvirtd

sudo -- lsof +p $(pgrep -f examplehost) -i4 -a