virtualbox-install-2-2-2-on-ubuntu-server-8-04
wget "download link here" -O virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb
OR
apt-get install elinks //elinks to text browse to virtualbox.org and download the right .deb
OR
modify /etc/apt/sources.list to include the following line
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
sudo wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
apt-get update
apt-cache search virtualbox //scroll to ensure you can see the nice entry... apt-get install -f virtualbox-2.2 //still doesn't work, unmet dependencies...
apt-get update //(ensure your apt sources are good... ) apt-get -u upgrade //upgrade packages with -u verbose option
sudo dpkg -i virtualbox_2.2.2 ... Ubuntu_hardy_i386.deb
To fix the "required dependencies" errors (you can't even apt-get install -f libqt...)
virtualbox-2.2: Depends: libqt4-core (>= 4.3.4)
Depends: libqt4-gui (>= 4.3.4)
Depends: libsdl1.2debian (>= 1.2.10-1)
Depends: libxmu6
Depends: libxt6
sudo apt-get -f upgrade
apt-get install -f //this installs all needed dependencies?
Now you get "old vboxdrv kernel modules found... purge..." /etc/init.d/vboxdrv setup
Should the kernel module be compiled now (yes!)
FAILS because I didn't do...
//the following gets the necessary files to compile the vbox kernel module //it can only be run after the above unmet depencies are fixed...
sudo apt-get install linux-headers-$(uname -r) build-essential virtualbox-2.2
In order to have write permissions to /dev/vboxdrv
sudo adduser [your username] vboxusers
OR
usermod -a -G vboxusers [username]
If you install ubuntu server as a guest (hmmm Virtual UBU on Real UBU?)
"Enabling PAE/NX on virtualbox solved my ubuntu server boot error."
In my adventure I had to get access to my boot iso image and copy it to my home dir
sudo mount -t smbfs -o username=winntuser,password=mypassword //windowsserver/sharename /mnt/win
cp /mnt/win/acronis-uni-restore-bartpe-mustang.iso ~/.Virtualbox
ctrl-z //to suspend current job bg //to make current job background job jobs //to see background jobs
cd ~ ls -ahl //to see how much of the file is transferred
A regurgitatione of vbox commandline for headless control (ie server w/o GUI) NOTE: Linux is case sensitive! you can see these commands: /usr/lib/virtualbox
VBoxManage createhd -filename "winxp.vdi" -size 10000 -register
//created in /home/USER_NAME/.VirtualBox/HardDisks/
VBoxManage createvm -name winxp -register
//created in /home/USER_NAME/.VirtualBox/Machines/
VBoxManage modifyvm "winxp" -hda "winxp-hd"
VBoxManage registerimage dvd /~/.Virtualbox/acronis-uni-restore-bartpe.iso
VBoxManage modifyvm "winxp" -dvd /full/path/to/iso.iso
VBoxManage modifyvm "winxp" -memory "1024MB" -acpi on -boot1 dvd -nic1 nat
VBoxManage modifyvm "winxp" -vrdp on
vBoxManage showvminfo winxp
VBoxHeadless -startvm winxp
ctrl-z //to suspend current job bg //to make current job background job jobs //to see background jobs
Remote Desktop (port 3389) into the BARTPE cd loading...
Since we're using NAT we can ping around...
BartPe Networking -> cmd
net use \192.168.1.35\external /user:domain\username
It will then prompt for the password
Now we can use the Mustang Plugin for universal restore to access our backup image file on z:\
VBoxManage controlvm
VBoxManage unregistervm [vmname] -delete