OK I done a similar setup some weeks ago. In my case I used Ubuntu server 10.10LTS 32bit but it should work also with 64bit.
I used a second PC to do all the setup remotely. when installing the server I also installed OpenSSH on it so i can access the server from my second computer with an SSH client (i used putty). However you can do all the setup at the tty1-6 of the server locally.
First you need to install some dependencies
dkms
build-essential
linux-headers-"yourversion here" (to know your version type "uname -r")
in my case it is 2.6.35-22-generic
To install dependencies
Code: Select all
sudo apt-get install dkms build-essential linux-headers-2.6.35-22-generic
Now from my second computer I open my web browser, went to virtualbox.org, click on downloads, linux, and right click on the one corresponding to my linux (in my case is Ubuntu 10.10 maverik i386) and copy the link. Now open putty, ssh to the server, authenticate. Now type wget space and paste the link previously copied, hit enter.
Code: Select all
wget http://download.virtualbox.org/virtualbox/4.0.0/virtualbox-4.0_4.0.0-69151~Ubuntu~maverick_i386.deb
Now install virtualbox 4.0.0
Code: Select all
sudo dpkg -i virtualbox-4.0_4.0.0-69151~Ubuntu~maverick_i386.deb
if it ask for some dependencies do the following: (perryg was helping me to complete my setup and he recommend me to use the "--nox11" when installing virtualbox but I didn't have that right so I installed all the dependencies and it works)
If you know how to put --nox11 good luck if not the do the following, this will install some X packages but they will be ignored.
edited :: When you run "sudo apt-get -f install" it should install the dependencies and then virtualbox setup, If the VBox setup does not Start.
Then run the installation again.
Code: Select all
sudo dpkg -i virtualbox-4.0_4.0.0-69151~Ubuntu~maverick_i386.deb
After that you have Virtualbox headless installed but you need to add the Extension Pack in order to have vrde and usb support.
First download the Extension Pack
Code: Select all
wget http://download.virtualbox.org/virtualbox/4.0.2/Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack
(note that this link is for the 4.0.2 and I installed the 4.0.0, this is only informational you should change all of the command according with your linux version and VirtualBox version that you want to install. So if you install Vbox 4.0.0 you should install ExtcPack 4.0.0 or if you install VBox 4.0.2 you should install ExtcPack 4.0.2).
to install it type:
VBoxManage extpack install "the name of the extension Pack file"
for example
Code: Select all
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.2-69518.vbox-extpack
Now yo can create configure and add vrde capabilities to your VMs.
Hope this helps.
If you aren't in the path to become who you want to be, Then you are in the path to become who you don't want to be!!!