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:13] – 193.190.76.58 | kopiluwak [2010/10/02 17:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 ===== | + | |
- | === Guest 1: buildbot.xfce.org === | + | ===== Host ===== |
- | == Configuration == | + | ==== Software ==== |
- | | + | ^ software |
+ | | Lunar Linux | 1.6.4 x86_64 | [[http:// | ||
+ | | Linux | 2.6.30.5 | ||
+ | | kvm | 88 | [[http:// | ||
+ | | vde | 2.2.2 | [[http:// | ||
+ | | lvm2 | 2.02.45 | ||
+ | | tunctl | ||
+ | ==== 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 | ||
+ | * br0: run script in screen | ||
+ | <code bash> | ||
+ | # | ||
+ | if [ $TERM == screen ]; then | ||
+ | / | ||
+ | /bin/rm -fr / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | echo "Sleep for 5 minutes, Ctrl ^ C to stop, will revert changes if you don' | ||
+ | sleep 5m | ||
+ | |||
+ | echo " | ||
+ | / | ||
+ | / | ||
+ | /bin/rm -fr / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | echo "Sleep for 5 minutes, Ctrl ^ C to stop, will revert changes if you don' | ||
+ | sleep 5m | ||
+ | echo " | ||
+ | / | ||
+ | else | ||
+ | echo "USE SCREEN"; | ||
+ | fi | ||
+ | </ | ||
+ | * vde_switch: Switch that the virtual machines (buildslaves) will use to communicate with the buildmaster. | ||
+ | <code bash> | ||
+ | vde_switch -tap tap1 -daemon; | ||
+ | ifconfig tap1 10.0.0.1; | ||
+ | echo " | ||
+ | iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE | ||
+ | </ | ||
+ | |||
+ | ===== Hosted Virtual Machines ===== | ||
+ | ==== 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 |
- | * lunar-linux 1.6.4 x86_64 | + | * buildbot 0.7.10p1 |
- | | + | == config buildbot |
- | == Guest 2: buildslave | + | * create the user buildmaster |
+ | * 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 | ||
+ | </ | ||
+ | * reread the config in the current instance: | ||
+ | <code bash> | ||
+ | buildbot reconfig / | ||
+ | </ | ||
+ | * master.cfg: | ||
+ | <code python> | ||
+ | </ | ||
+ | ==== Guest 2: buildslave ==== | ||
- | === buildbot === | + | lunar |
+ | ip 10.0.0.3 | ||
+ | vdeq qemu-system-x86_64 -vnc :2 -hda / |