I am running a kubernetes cluster on vagrant virtual machines. In one pod, there is a matplotlib window to be opened. I have successfully set up the x11 interface between my host machine and the guest so that I can visualize matplotlib figures from the master node virtual machine. What I tried so far was to mount the /tmp/.X11-unix volume into my container and installed xauth. But the trouble is with the Display variable because I get the error message:
qt.qpa.screen: QXcbConnection: Could not connect to display :0 Could not connect to any X display.
Display variables I tried:
- :0
- :1
- :localhost:10 (this is the value of the DISPLAY variable on the guest VM )
- :Guest_VM_IP:10
Does anyone have an idea what could be missing ?