An Alternative to VBoxVmService [system tray]
Posted: 20. Sep 2009, 14:53
After not being able to get it working on the latest Virtual, ( I'm on Windows 7 64 bit btw )
I've decided to this an alternative way to get VirtualBox to run in the background, it's requires no new users, and doesn't mess with services, and I think it's easier.
The Ups
What you need
Tips:
In the options on Tray it! you can set it to start Tray it! on startup, and other options I didn't include this in the guide because it's common sense.
If your not getting what you want like for example you tell Tray it! to hide the icons in your system tray, restart your computer
Be sure to check Match patterns below with the window title when creating a Tray Icon to the title you desire or all your command prompt windows will minimize to system tray.
startup.bat
Me for creating the guide
VirtualBox creators
Tray It! creators
I hope this all helps you out.
I've decided to this an alternative way to get VirtualBox to run in the background, it's requires no new users, and doesn't mess with services, and I think it's easier.
The Ups
- There's no need to mess with windows services, and creating new users, and messing with window commands.
- You cant stop your virtualbox without logging into RDC or Putty (linux), or it will shutdown wrongly! (example; If you end the process or restart your computer, your VM will turn off, BUT it will turn off just like if you pull the plug on your computer, make sure to shut it down before restarting!)
What you need
- An Windows operating system (32 or 64bit works, I've tested this myself)
- Virtualbox (works with any version)
- 1-3 minutes of spare time
- http://www.teamcti.com/trayit/trayit.htm
- a .bat file ( look below this post )
- Install Tray It! from the download link above.
- create a .bat file anywhere you want, (I just made it on the desktop, and then moved it to my start up folder )
- open up Tray it! and then minimize it for now.
- open up a command prompt (run -> cmd.exe)
- startup a example vm (just do what the bat does, which is located below ) ex; cd C:\Program Files\Sun\VirtualBox\, etc. Keep the window open!
- switch to Tray It! and then you will see something like this:

- and just right click your command prompt window in Tray It! and hit minimize to system tray
- Okay now go to Edit --> Profiles in Tray It! click your active profile and edit it the way you want. heres what mine looks like:


- now go back to that .bat you are using, save it, and move it to your Startup folder, and then restart your computer
Now your Vm will run in the background, If you want system tray support you can mess with Tray It! option to show icons in the system tray ( my configurations hide the trayit icon and command prompt window completely, you are done!
Tips:
In the options on Tray it! you can set it to start Tray it! on startup, and other options I didn't include this in the guide because it's common sense.
If your not getting what you want like for example you tell Tray it! to hide the icons in your system tray, restart your computer
Be sure to check Match patterns below with the window title when creating a Tray Icon to the title you desire or all your command prompt windows will minimize to system tray.
startup.bat
CreditsTutorial:
title Ubuntu Change this to what you want read the tips for further explanations.
cd C:\Program Files\Sun\VirtualBox\ Change this to the path to where your VirtualBox is installed
VBoxHeadless.exe -startvm Ubuntu Change Ubuntu to the name of your virtual machine, (eg; If you have Windows XP and you titled it WindowsXP, it would be that
Example (without tips)
title Ubuntu
cd C:\Program Files\Sun\VirtualBox\
VBoxHeadless.exe -startvm Ubuntu
Me for creating the guide
VirtualBox creators
Tray It! creators
I hope this all helps you out.