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

Jump to navigation Jump to search
Line 111: Line 111:
apt-get install virtualbox-4.1
apt-get install virtualbox-4.1
apt-get install linux-headers
apt-get install linux-headers
/etc/init.d/vboxdrv setup</pre></code>
/etc/init.d/vboxdrv setup
wget -c http://download.virtualbox.org/virtualbox/4.1.14/Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack
VBoxManage extpack install /home/buildbot/vms/Oracle_VM_VirtualBox_Extension_Pack-4.1.14-77440.vbox-extpack</pre></code>


* VMs will be stored in /home/buildbot/vms
* VMs will be stored in /home/buildbot/vms
Line 125: Line 127:
* Create VM
* Create VM
<code><pre>VBoxManage createvm --register --name ubuntu32 --ostype Ubuntu --basefolder ~/vms/
<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 --vrde on --boot1 dvd --boot2 disk
VBoxManage modifyvm ubuntu32 --memory 512 --audio none --clipboard disabled --usb off --usbehci off --nic1 nat --nictype1 82543GC --nic2 hostonly --nictype2 82543GC --hostonlyadapter2 vboxnet0 --vrde on --boot1 dvd --boot2 disk
VBoxManage storagectl ubuntu32 --name hdd --add sata --controller IntelAhci --bootable on
VBoxManage storagectl ubuntu32 --name hdd --add sata --controller IntelAhci --bootable on
VBoxManage storagectl ubuntu32 --name cd --add ide --controller PIIX4 --bootable on
VBoxManage storagectl ubuntu32 --name cd --add ide --controller PIIX4 --bootable on
Line 137: Line 139:
On your computer, connect with:
On your computer, connect with:
<code><pre>rdesktop download.kiwix.org:3389</pre></code>
<code><pre>rdesktop download.kiwix.org:3389</pre></code>
* Configure Network (eth1) with a static IP according to mapping above in ''/etc/network/interfaces''
<code><pre>iface eth1 inet static
    address    192.168.5.13
    netmask    255.255.255.0
    gateway    192.168.5.1
</pre></code>
* Once installed, tweak the VM
<code><pre>VBoxManage storageattach ubuntu32 --storagectl cd --type dvddrive --port 1 --device 1 --medium none
VBoxManager modifyvm ubuntu32  --vrde off</pre></code>
From now, connection to the VM will be SSH only.


== 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,799

edits

Navigation menu