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:12] – 193.190.76.58 | kopiluwak [2009/09/14 09:04] – 193.190.76.58 | ||
---|---|---|---|
Line 10: | Line 10: | ||
===== Idea ====== | ===== Idea ====== | ||
The machine hosts virtual machines. Other than that no functionality runs on the machine. | The machine hosts virtual machines. Other than that no functionality runs on the machine. | ||
- | ===== KVM ===== | ||
- | ==== KVM ==== | + | ===== Host ===== |
- | === Host === | + | ==== Software |
- | == Software | + | |
^ 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 ==== | ||
+ | === Storage === | ||
+ | * root and boot | ||
+ | | /dev/md1 | / | ext3 | | ||
+ | | /dev/md0 | /boot | ext3 | | ||
+ | * var, home, luns for vm's | ||
+ | VolumeGroup: | ||
+ | | / | ||
+ | | / | ||
- | == Configuration | + | === 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 49: | Line 57: | ||
/ | / | ||
/ | / | ||
- | brctl delbr br0 | + | /usr/sbin/brctl delbr br0 |
- | tunctl -d tap0 | + | /usr/sbin/tunctl -d tap0 |
/ | / | ||
/ | / | ||
Line 58: | 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 67: | Line 78: | ||
</ | </ | ||
- | === Guest 1: buildbot.xfce.org === | + | ===== Hosted Virtual Machines ===== |
- | == Configuration == | + | ==== Guest 1: buildbot.xfce.org |
- | | + | === Configuration |
+ | == 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 == |
- | == Guest 2: buildslave == | + | |
+ | * 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 | ||
+ | lunar | ||
+ | ip 10.0.0.3 | ||
+ | vdeq qemu-system-x86_64 -vnc :2 -hda / | ||
- | === buildbot === |