Although X410 can be directly connected via VSOCK from Hyper-V Linux virtual machines, X-Window apps and tools are not built for VSOCK; we need an intermediate data relay server that can be seen as an X-Window server for those programs.
In this example, we're using a popular utility program called 'socat'. socat is used in order to simply demonstrate the possibility of using VSOCK; it's definitely not used for its performance.
sudo apt update && sudo apt install socat
You can then execute the following command to create a virtual X-Window server that forwards data to and from X410.
socat -b65536 UNIX-LISTEN:/tmp/.X11-unix/X5,fork,mode=777 SOCKET-CONNECT:40:0:x0000x70170000x02000000x00000000 &
Please note that the above command creates a server at display number '5'. So you should set the DISPLAY environment variable as the following in order to have X-Window apps use this server:
Please also note that we're using a display number '5' instead of '0'. It can be any number, but '0' is already used by the Linux GUI desktop running on Hyper-V console. Before assigning a display number, check '
/tmp/.X11-unix/' folder and just make sure your display number is not already in use (X<display-number>; X0, X10 and etc.).