Difference between revisions of "Black&White Project/Compilation Farm/Setup"

Jump to navigation Jump to search
Line 105: Line 105:
== VirtualBox Setup ==
== VirtualBox Setup ==


Install the non-free version of Virtual Box:
* Install the non-free version of Virtual Box:
<code><pre>wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
<code><pre>wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
echo "deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free" >> /etc/apt/sources.list
echo "deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free" >> /etc/apt/sources.list
apt-get update
apt-get update
apt-get install virtualbox-4.1</pre></code>
apt-get install virtualbox-4.1
apt-get install linux-headers
/etc/init.d/vboxdrv setup</pre></code>
 
* VMs will be stored in /home/buildbot/vms
 
* Configure Network
<code><pre>VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.5.1 --netmask 255.255.255.0
VBoxManage dhcpserver add --ifname vboxnet0 --ip 192.168.5.1 --netmask 255.255.255.0 --lowerip 192.168.5.10 --upperip 192.168.5.50 --enable</pre></code>
 
* Create a HDD Image
<code><pre>VBoxManage createhd --filename ~/vms/ubuntu32/ubuntu32.vdi --size 20480 --variant Standard</pre></code>
 
* Create VM
<code><pre>VBoxManage createvm --register --name ubuntu32 --ostype Ubuntu --basefolder ~/vms/
VBoxManage modifyvm ubuntu32 --memory 512 --audio none --clipboard disabled --usb off --usbehci off --nic1 nat --nictype1 82543GC --nic2 hostonly --nictype2 82543GC --vrde on --boot1 dvd --boot2 disk
VBoxManage storagectl ubuntu32 --name hdd --add sata --controller IntelAhci --bootable on
VBoxManage storagectl ubuntu32 --name cd --add ide --controller PIIX4 --bootable on
VBoxManage storageattach ubuntu32 --storagectl hdd --type hdd --port 1 --medium ~/vms/ubuntu32/ubuntu32.vdi
VBoxManage storageattach ubuntu32 --storagectl cd --type dvddrive --port 1 --medium ~/vms/ubuntu-10.04.4-server-i386.iso
</pre></code>


== Post B&W todo ==
== Post B&W todo ==
* Start VM automaticaly/transparently if a compilation is required - otherwise VM is offline.
* Start VM automaticaly/transparently if a compilation is required - otherwise VM is offline.
* Start chained compilations : only the first one is planned, and all other ones occur one by one afterwards.
* Start chained compilations : only the first one is planned, and all other ones occur one by one afterwards.
7,816

edits

Navigation menu