Tag Archives: cannot connect to X server

VirtualBox error: cannot connect to X server on OpenSUSE 11.1

I am a big fan of VirtualBox, it’s an easy to use Virtualization tool. I had used it on Ubuntu before and wanted to install it on OpenSUSE 11.1, the installation was easy using zypper ($ sudo zypper in VirtualBox ). After installing I tried to run VirtualBox and nothing appeared on the screen. I notice my HD ligh flick a couple of times but noting happened, so I tried to start it from the Command Line.

$ VirtualBox  (and the follwing error appeared)
QT warning : cannot connect to X server

That was all, no instructions.  After some searching I found out that this is due to permission problems, so I tried to run the programme as root but still no success. The answer to this problem in my case was to add my user to the vboxusers group.

$ sudo usermod -a -G vboxusers username

Note that your have to replace "username" with your username. ;) That's it, it now works.


Technorati Tags: , , , ,