Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i am running windows 7 x64 (host). i want to setup a ubuntu/apache/mysql/php stack as a test/development web server in virtual box.

is there a way i can start virtual box in the background? (with guest as ubuntu - used as a development web server)

if i start on virtual box on startup i guess it might slow down my system considerably? maybe not advisable?

the reason why i am thinking of starting up vbox+guest linux this way is so that i dont have to manually start it up if i use it often. and if it runs in the background, it will seem transparent to me. no need for the extra icon clutter in my taskbar. plus if its in the bg, and windows is setup to give priority to "Programs" over "Background tasks" maybe it will provide better performance? for "foreground" programs?

share|improve this question
1  
This question seems to answer some of this: superuser.com/questions/91777/virtualbox-machine-as-a-service –  SysAdmin1138 Jul 22 '10 at 5:26
    
If you did not have to have linux for your virtual box then XP Mode would be a good solution. You could just install XAMPP on the virtual XP box. Works good. –  ubiquibacon Jul 22 '10 at 7:52
add comment

1 Answer

up vote 2 down vote accepted

You can start a virtual machine in headless mode to prevent it from creating the full display window, but it still creates a command window.

There seems no be no way to get virtualbox to run completely silently on windows. However, it should be possible to minimize the command window to the system tray to get it out of the way. In any event, it seems to take fewer resources than a full-on vm.

The command is:
vboxheadless -startvm "$VMNAME$"
To save the vm state:
vboxmanage controlvm "$VMNAME$" savestate
(Quotes are only required if the vm name has spaces)

All vm modifying commands have to be done through vboxmanage, unfortunately. While the GUI doe update to show the machine state, it cannot modify it at all.

I use vboxheadless to run multiple vm's on a second computer, and connect to them using RDP. If you want to get to the desktop on the headless vm, (rather than something like X) you need to enable RDP in the vm's settings. You can do it through vboxmanage, but using the GUI while the vm is stopped is far easier.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.