This is the way I build VirtualBox OSE from SVN and install. Notice that this is the hardened version and must be installed before it will work.
If you want to build using the "./configure --disable-hardening" you will need to add additional symlinks indicated in the VirtualBox master build instructions above.
If you install this on an Debian Squeeze host, you will have a fully functional Bleeding edge VirtualBox-OSE. If you install it on a Debian Squeeze guest you will still have a copy of VirtualBox but will not be able to actually install a guest due to not being able to run a virtualizer in another virtualizer.
Packages needed to compile VirtualBox
Code: Select all
apt-get install dkms build-essential linux-headers-$(uname -r) gcc g++ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev libsdl1.2-dev libxcursor-dev libasound2-dev libpulse-dev libxml2-dev libxslt1-dev libqt4-dev qt4-dev-tools libcap-dev libxmu-dev mesa-common-dev libglu1-mesa-dev libcurl4-openssl-dev libpam0g-dev libqt4-opengl-dev libc6-dev-i386 lib32gcc1 gcc-multilib lib32stdc++6 g++-multilib libstdc++6 libxinerama-dev libxrandr-dev makeself default-jdk texlive-full curl gsoap yasm subversion python-dev java-common doxygen libgtk2.0-dev libdevmapper-dev libvpx-dev libssl-dev libvncserver0 libvncserver-dev
You will also need to install openwatcom separately. Located here
Run the code
Code: Select all
svn co http://www.virtualbox.org/svn/vbox/trunk vbox
sudo make install
cp ~/virtualbox/vbox/out/linux.amd64/release/bin/VirtualBox-4.*.*_OSE-r*.run ~/
sudo ./VirtualBox-4.*.*_OSE-r*.run install
Note: This compiles a complete for distribution build that is installable including the guest additions for your build and can use all of the VirtualBox benefits. If you do not want to install features you need to modify it to your environment as that is not the purpose of this tutorial.