I have a libvirt qemu vm (Win10) running on my nixos server. I want to access the vm from my lan via vnc.
How do I port forward on the nixos host so that I can connect from my lan onto the guest vm via vnc?
This is the network part of the vm:
<interface type='network'>
<mac address='52:54:00:e1:ae:54'/>
<source network='default'/>
<model type='e1000e'/>
<filterref filter='block_internet'/>
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
</interface>
This is the default network:
<network>
<name>default</name>
<uuid>10b4c645-16f6-4bbd-b59e-3b786a023546</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:27:57:81'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.100' end='192.168.122.254'/>
<host mac='52:54:00:e1:ae:54' name='vm1' ip='192.168.122.49'/>
</dhcp>
</ip>
</network>