For learning purposes, I have installed a RockyLinux VM within Hyper-V. For networking purposes, I’ve created a new NAT switch and provided that interface as the gateway for the VM. Like so: image of the vEthernet device.
I am trying to install a X-server so that I can forward my display whenever I require.(I do not need full use of the GUI and only require some applications to be displayed.)
I did try installing vcxsrv, but I do not know how to configure it to listen to the ip address of the NAT switch . I did install mobaXterm and found out that it worked quite well. Also, mobaXterm listens on all network devices like so: list of listening displays
I am trying to get that functionality but with vcxsrv instead.
How do I try to configure vcxsrv to listen on the NAT switch and enable x-11 forwarding?
I am learning still and exploring. For now, I am connecting to the VM using Putty. I’d like to have the apps pop up when I require without entering the VM from my side.
I tried everything required to set up x-11 forwarding. It is successful on mobaXterm, but nothing seems to work with vcxsrv unfortunately. ssh connections are successful and is the primary way that I connect to the VM. X-11 forwarding through mobaXterm is successful as well, that would rule out any problems related to the xorg stuff within the Linux VM.