Page 1 of 1

run virtualbox and virtualmachine when user is logged out

Posted: 28. Aug 2009, 10:48
by simone
Goodmorning,
I am a student of computer engineering.
Right now I'm working on a project but I am running into difficulties.
In short, my idea is to run virtualBox and start my virtual machine in automatic manner.
Now I describe the problem better…
I have a computer with “Windows Xp Home edition” as operating system, and I had installed VirtualBox. Then, I had created my virtual machine called “simulation” with “Ubuntu server 8.04”.
I would seek to launch VirtualBox and consequently run my virtual machine at time and date fixed.
So, I created a batch file with following lines :

@echo start virtualbox and start virtualmachine
"C:\Programmi\Sun\xVM VirtualBox\VBoxManage.exe" startvm "simulation"

To perform this task automatically, I tried to use different kind of utility, such as :
--> windows task scheduler
--> nnCron LITE
--> AT commands
and I set date, time and command to execute (in my case the batch file mentioned earlier).
…and here is the unexpected !!!
If the user is logged in, at the time previously set, virtualbox and virtualmachine started ; and here everything ok.
So, I tried to disconnect (start -> disconnect) my user and waited some minute. According to time and date, the virtualmachine should already be running.
Then, I logged in my user, the batch file should already be gone running (virtualmachine started) but virtualbox and virtualmachine had not taken start.
In every test I have done, the result was always the same !!!
I wonder why virtualbox not run in automatic manner when my user is disconnect !!!
I think the problem is in virtualbox…
I hope I was clear,
I am grateful for any help
Many thanks !!!!

Simo

Re: run virtualbox and virtualmachine when user is logged out

Posted: 28. Aug 2009, 11:44
by vbox4me2