Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
kopiluwak [2009/06/23 13:14] – 193.190.76.58 | kopiluwak [2009/08/19 10:51] – el_angelo | ||
---|---|---|---|
Line 15: | Line 15: | ||
^ software | ^ software | ||
| Lunar Linux | 1.6.4 x86_64 | [[http:// | | Lunar Linux | 1.6.4 x86_64 | [[http:// | ||
- | | Linux | 2.6.29.2 | | | + | | Linux | 2.6.30.5 | | |
- | | kvm | + | | kvm |
| vde | 2.2.2 | [[http:// | | vde | 2.2.2 | [[http:// | ||
| lvm2 | 2.02.45 | | lvm2 | 2.02.45 | ||
| tunctl | | tunctl | ||
- | |||
==== Configuration ==== | ==== Configuration ==== | ||
+ | === Storage === | ||
+ | * root and boot | ||
+ | | /dev/md1 | / | ext3 | | ||
+ | | /dev/md0 | /boot | ext3 | | ||
+ | * var, home, luns for vm's | ||
+ | VolumeGroup: | ||
+ | | / | ||
+ | | / | ||
+ | |||
+ | === Network === | ||
* eth0 - bridged to br0, ip assigned with dhcp | * eth0 - bridged to br0, ip assigned with dhcp | ||
* br0: run script in screen | * br0: run script in screen | ||
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
+ | if [ $TERM == screen ]; then | ||
/ | / | ||
/bin/rm -fr / | /bin/rm -fr / | ||
Line 47: | Line 57: | ||
/ | / | ||
/ | / | ||
- | brctl delbr br0 | + | /usr/sbin/brctl delbr br0 |
- | tunctl -d tap0 | + | /usr/sbin/tunctl -d tap0 |
/ | / | ||
/ | / | ||
Line 56: | Line 66: | ||
echo " | echo " | ||
/ | / | ||
+ | else | ||
+ | echo "USE SCREEN"; | ||
+ | fi | ||
</ | </ | ||
* vde_switch: Switch that the virtual machines (buildslaves) will use to communicate with the buildmaster. | * vde_switch: Switch that the virtual machines (buildslaves) will use to communicate with the buildmaster. | ||
Line 64: | Line 77: | ||
iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE | iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE | ||
</ | </ | ||
- | ===== Hosted Virtual Machines ===== | ||
+ | ===== Hosted Virtual Machines ===== | ||
==== Guest 1: buildbot.xfce.org ==== | ==== Guest 1: buildbot.xfce.org ==== | ||
=== Configuration === | === Configuration === | ||
- | * Start the machine: | + | == Start the machine |
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
# This script starts the buildbot | # This script starts the buildbot | ||
vdeq qemu-system-x86_64 -vnc :1 -hda / | vdeq qemu-system-x86_64 -vnc :1 -hda / | ||
- | ze | ||
</ | </ | ||
- | * network | + | == network |
- | * eth0: fixed ip - external ip (dns: buildbot.xfce.org) | + | * eth0: fixed ip - external ip (dns: buildbot.xfce.org) |
- | * eth1: internal nic connected to the virtual switch (ip: 10.0.0.2) | + | * eth1: internal nic connected to the virtual switch (ip: 10.0.0.2) |
- | * software | + | == software == |
- | * lunar-linux 1.6.4 x86_64 | + | * buildbot 0.7.10p1 |
- | * buildbot | + | == config buildbot == |
+ | | ||
+ | * Create instance of buildbot: | ||
+ | <code bash> | ||
+ | buildbot create-master / | ||
+ | </ | ||
+ | * start the buildbot instance: | ||
+ | <code bash> | ||
+ | buildbot start / | ||
+ | </ | ||
+ | * configure the buildbot instance: edit master.cfg | ||
+ | * validate the edits: | ||
+ | <code bash> | ||
+ | buildbot checkconfig master.cfg | ||
+ | </ | ||
+ | | ||
+ | <code bash> | ||
+ | buildbot | ||
+ | </ | ||
+ | * master.cfg: | ||
+ | <code python> | ||
+ | </ | ||
+ | |||
==== Guest 2: buildslave ==== | ==== Guest 2: buildslave ==== |