Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| kopiluwak [2009/06/23 13:18] – 193.190.76.58 | kopiluwak [2010/10/02 17:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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 | ||
| Line 30: | Line 30: | ||
| | / | | / | ||
| - | == Network === | + | === 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 56: | Line 57: | ||
| / | / | ||
| / | / | ||
| - | brctl delbr br0 | + | /usr/sbin/brctl delbr br0 |
| - | tunctl -d tap0 | + | /usr/sbin/tunctl -d tap0 |
| / | / | ||
| / | / | ||
| Line 65: | 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 75: | Line 79: | ||
| ===== 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 ==== | ||
| + | |||
| + | lunar | ||
| + | ip 10.0.0.3 | ||
| + | vdeq qemu-system-x86_64 -vnc :2 -hda / | ||