I need to be able to start a bevy of VMs remotely, and the method I thought would work is crashing VMs.
I am cloning a test network with 5 separate machines on one virtual host.
The host is in the office, and often I am working from home, so I would like to be able to start up headless and control the VMs remotely.
Rather than do this from a script at boot-time, I'm firing them up manually with a script run from an ssh session (typically from within a screen session.) Typical syntax:
VBoxHeadless -s myvm -p 3890&
The catch is that if I'm logged in from the vpn, the VMs eventually appear to crash. On my screen session I get an error message about an IO error trying to talk to the X server that includes the string 'virtualbox "fatal IO error 113 (No route to host)"' and the address of my home system assigned by DHCP the last time I logged into the VPN.
In the most recent case, it complained that it could not reach 192.168.2.113 when the current address is 192.168.2.116.
Now the questions:
1 - Why should VBoxHeadless be trying to talk to the X Server?
2 - Any recommendations for a safe way to start up headless sessions to bypass this issue? How does everybody else do this?
TIA,
- Tim.
VBoxHeadless talks to the X Server?! / fatal IO error 113
-
TerryE
- Volunteer
- Posts: 3572
- Joined: 28. May 2008, 08:40
- Primary OS: Ubuntu other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
- Contact:
I notice that you are not redirecting stdout and stderr. I would have expected something more like:
- nohup VBoxHeadless -s $VM -p $PORT >> $LOG_DIR/$VM.$PORT.log 2>&1 &
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Google your Q site:VirtualBox.org or search for the answer before posting.