How to fix 'VirtualBox Client cannot connect to X server' when installing Xubuntu 24 as a guest host?
There are two bugs that can be seen when installing Xubuntu 24 in a VirtualBox VM:
- The first login always fails after a reboot
- After installing the VBox Guest Additions, you will see an error message saying “VirtualBox Client cannot connect to X server”
After a lot of research, it seems it’s just a bug in Xubuntu. This post (in French), shows a workaround towards the end:
This seems very ugly, but at least the two above bugs disappear.