use virtualbox on a remote machine

Discussions related to using VirtualBox on Linux hosts.
kunaljain
Posts: 11
Joined: 10. Jul 2008, 13:25

Post by kunaljain »

Hey TerryE,

I try at command to save the state of Guest OS here are the results

* console startvm, console initiated at savestate :- works
* console startvm, ssh initiated at savestate : - fails

I still not able to figure out why it fails remotely while it runs perfectly fine on the console. :(
kunaljain
Posts: 11
Joined: 10. Jul 2008, 13:25

Post by kunaljain »

Hey TerryE

One more thing

ssh startvm, console savestate :- Fails

Sorry i forgot to mention it earlier.
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:

Post by TerryE »

So for the avoidance of doubt if your script is called suspendVM and your VM is called fred them if you create the test script ~/sleepFred:

Code: Select all

#! /bin/sh
whoami
at now <<END
suspendVM fred >/tmp/suspend$1.log 2>&1
END
then if you start fred from the console, and later type ~/sleepFred Cons from the console then the suspend works. If you restart fred from the console, and type ~/sleepFred SSH from an interactive ssh then the suspend dies. Just the two files post up suspendCons.log and suspendSSH.log here in [code] blocks will you.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
bundabrg
Posts: 47
Joined: 22. Feb 2008, 04:01

Post by bundabrg »

Sorry, just a quick post. Probably not a solution.

Another option, under linux, is to use the "disown" command.

IE:

Code: Select all

  ./do_some_command &
  disown %1
Similar to nohup, it means it will allow you to log out and the session to keep running.

- Brendan
kunaljain
Posts: 11
Joined: 10. Jul 2008, 13:25

Post by kunaljain »

Hey TerryE

Only solution i find for handling VirtualBox Remotely is i installed RealVNC on the server and its viewer on my laptop so that i can handle it remotely.
Post Reply