[ hide ]
This guide explains how you can run virtual machines with Sun VirtualBox 3.1.x (NOT OSE version!) on a headless blackPanther Server install.
Normally you use the VirtualBox GUI to manage your virtual machines, but a server does not have a desktop environment. Fortunately,
VirtualBox comes with a tool called VBoxHeadless that allows you to connect to the virtual machines over a remote desktop connection,
so there’s no need for the VirtualBox GUI.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
I have tested this on a blackPanther Server (host system) with the IP address 192.168.0.100 where I’m logged in as a normal user
(user name administrator in this example) instead of as root.
If you only have a root account, but no normal user account, create one as follows (user administrator, group administrator)…
# groupadd administrator
- useradd -d /home/administrator -m -g administrator -s /bin/bash administrator
… create a password for the new user…
# passwd administrator
… and log in as that user.
2 Installing VirtualBox
To install VirtualBox 3.1.x on our blackPanther Server, we need root privileges, therefore we run
Then we install the dependencies for VirtualBox 3.1.x as follows (if not installed):
# installing wget flex gcc gcc-c++ kernel-devel kernel-headers dkms
Next we pick the right VirtualBox package from http://www.virtualbox.org/wiki/Linux_Downloads; pick the i386 or AMD64 package (depending on your architecture) for blackPanther OS . (you can find out your architecture by running , good choice the Mandriva or Redhat RPM packages)
… and download it as follows:
# wget http://download.virtualbox.org/virtualbox/3.2.8/VirtualBox-3.2-3.2.8_64453_mdv2009.1-1.i586.rpm -o /tmp/VirtualBox-3.2-3.2.8_64453_mdv2009.1-1.i586.rpm
To check package
# ls -l VirtualBox*.rpm
tmp# ls -l VirtualBox*.rpm