Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install VirtualBox on a fresh debian box without having to install an X-Server.

How can that be done ?

share|improve this question

VirtualBox (both OSE as well as the free binary version) can be installed without X.

when running VMs you can run the VirtualBox X client over X11 although its not much fun unless you have a really fast network, but you can start your VMs headless using VBoxHeadless and then connect to them over the network via VRDP to get a console (useful for installations) or just using SSH.

VirtualBox is very good about that - everything you want to do can be managed using command line tools, even feeding keyboard input.

share|improve this answer

I don't have access to a Debian box right this moment, but I just checked on an Ubuntu box, and the dependencies for the virtualbox-ose package do not seem to include X. They do include several libraries for X.

So my first stab at an answer for you is to simply try: apt-get install virtualbox-ose

Here is a guide with lots of help for managing a headless VirtualBox:

If you have trouble doing what you want with VirtualBox you might also look into other virtualization systems such as Xen.

Good luck.

share|improve this answer

yes, also phpvirtualbox is what you can use for managing them.

with it, installing client will become much easier and you can do in-browser remote desktop.

  1. for debian box, you will firstly install some packages via apt-get

    apt-get install libaudio2 libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libllvm2.9 libmng1 libqt4-dbus libqt4-declarative libqt4-network libqt4-opengl libqt4-script libqt4-sql libqt4-sql-mysql libqt4-xml libqt4-xmlpatterns libqtcore4 libqtgui4 libxmu6 libxxf86vm1 qdbus

  2. install lamp server

  3. install phpvirtualbox by download and extraction
  4. add a vbox user and create /etc/default/virtualbox
  5. edit vbox config.php file, (username and pass)

You will proabably also install virtualbox extension pack by example:

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.1.8-75467.vbox-extpack

After that, start all the service or do a reboot! Any questions, commet below

share|improve this answer

Your Answer


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