virtualbox is requiring an X-connection to run

Discussions related to using VirtualBox on Linux hosts.

virtualbox is requiring an X-connection to run

Postby JonD » 8. Apr 2015, 18:52

I've been trying to get virtualbox 4.3.26r98988 to run on an Ubuntu host, from boot time. I've discovered vbox won't start up unless there is an X connection set up. However, it lies and claims it is starting.

For example if I connect to the Ubuntu machine via ssh (w/o a -Y or -X) option and run:

bash# vboxmanage startvm --type headless atlas-vm
Waiting for VM "atlas-vm" to power on...
VM "atlas-vm" has been successfully started.

then run
bash# vboxmanage list runningvms

and the vm hasn't started.

However, if I do the same thing but ssh in with a -Y:

bash# vboxmanage startvm --type headless atlas-vm
Waiting for VM "atlas-vm" to power on...
VM "atlas-vm" has been successfully started.

then run
bash# vboxmanage list runningvms
"atlas-vm" {751aaaee-cf26-43e6-a9c7-248fe0bc9b6a}


If I exit from the ssh session (killing the X connection) the virtual box also dies.

My guest OS is windows 7. however, I don't think that is relevant to the problem.

any pointers to what might be going on would be appreciated.
JonD
 
Posts: 3
Joined: 8. Apr 2015, 18:29

Re: virtualbox is requiring an X-connection to run

Postby Perryg » 8. Apr 2015, 18:58

Try using nohup
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: virtualbox is requiring an X-connection to run

Postby JonD » 9. Apr 2015, 14:34

nohup doesn't work. I tried that before I realized the issue was that vbox wanted an X-connection.

I've gone through all the instructions for setting up the VMs to start at boot time, but none of them worked.
JonD
 
Posts: 3
Joined: 8. Apr 2015, 18:29

Re: virtualbox is requiring an X-connection to run

Postby JonD » 10. Apr 2015, 14:54

Turns out the problem was that the 3D Acceleration was turned on. This feature is what required an X-session. Turning it off allowed the VM to start w/o needing an x-connection and it is now starting from system boot up as desired.
JonD
 
Posts: 3
Joined: 8. Apr 2015, 18:29


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: fantomframe and 22 guests