This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
cluster:127 [2014/03/19 17:08] hmeij |
cluster:127 [2014/04/04 14:28] hmeij [Building Xen] |
||
---|---|---|---|
Line 9: | Line 9: | ||
I'll select Ganeti to start with as it appears the simplest to setup. | I'll select Ganeti to start with as it appears the simplest to setup. | ||
+ | |||
+ | On hold, these Xen tools are very nice, no need for Ganeti up front (virt-manager, | ||
+ | |||
+ | ==== Building Xen ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | yum install -y --nogpgcheck xen kernel-xen \ | ||
+ | virt-manager libvirt libvirt-python python-virtinst | ||
+ | |||
+ | chkconfig xend on | ||
+ | |||
+ | # disable selinux / | ||
+ | |||
+ | # add to xen kernel grub line soe stuff | ||
+ | title CentOS (2.6.18-371.6.1.el5xen) | ||
+ | root (hd0,0) | ||
+ | kernel / | ||
+ | module / | ||
+ | module / | ||
+ | |||
+ | # hostname fully qualified (in case we go to Ganeti later) | ||
+ | |||
+ | # edit some settings in / | ||
+ | |||
+ | # turn off some services with chkconfig | ||
+ | # cups, iptables, ip6tables, autofs, crond, sysstat, bluetooth | ||
+ | # firstboot, ipmi, iscsi, iscsid | ||
+ | |||
+ | reboot | ||
+ | |||
+ | </ | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | |||
+ | Then launch '' | ||
+ | |||
+ | Build a base clone and install what you need (like the Lava scheduler files). Then shut it down. | ||
+ | |||
+ | Now you build a script to clone and post prep new clones build of it. | ||
+ | |||
+ | < | ||
+ | |||
+ | #/bin/bash | ||
+ | |||
+ | # automate this | ||
+ | |||
+ | virt-clone --original vmdemo --name bvm7 --file / | ||
+ | # wait 3 mins | ||
+ | sleep 180 | ||
+ | |||
+ | virsh start bvm7 | ||
+ | # wait 2 mins | ||
+ | sleep 120 | ||
+ | |||
+ | # clobber vmdemo rc.local that sets up a static ip that you know rather than dhcp for automation | ||
+ | cd /root | ||
+ | scp rc.local vmdemo:/etc | ||
+ | |||
+ | ssh vmdemo "cat / | ||
+ | ssh vmdemo "scp / | ||
+ | |||
+ | ssh vmdemo "cat / | ||
+ | ssh vmdemo "scp / | ||
+ | |||
+ | ssh vmdemo reboot | ||
+ | # wait 2 mins | ||
+ | sleep 120 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Testing Xen ==== | ||
+ | |||
+ | ^3d Lennard-Jones melt: for 10,000 steps with 32,000 atoms^^^ | ||
+ | ^ Queue, node, HT ^ Jobs/Node, Loop Time ^ Comment | ||
+ | | hp12, n15, no-HT | 01 jobs, 481 | | | ||
+ | | hp12, n15, no-HT | 07 jobs, 482 | | | ||
+ | | hp12, n2, yes-HT | ||
+ | | hp12, n2, yes-HT | ||
+ | | bss24, no-HT | 01 jobs, 844 | | | ||
+ | | bss24, no HT | 02 jobs, 770 | | | ||
+ | | bss24vm, bvm1, no-HT | 01 jobs, 776 | 1 vcpu, 100 ram | | ||
+ | | bss24vm, bvm1, no-HT | 02 jobs, 850 | 2 vcpu, 100 ram | | ||
+ | | bss24vm, bvm1, no-HT | 03 jobs, 1273 | 3 vcpu, 256 ram | | ||
+ | | bss24vm, bvm1, no-HT | 04 jobs, 1735 | 4 vcpu, 512 ram | | ||
+ | | bss24vm, bvm1-4, no-HT | 4x01jobs, 1818 | 4x1vpcu, 128 ram | | ||
+ | | bss24vm, bvm2, no-HT | 08 jobs, 3582 | 8 vcpus, 1024 ram | | ||
+ | |||
+ | |||
+ | |||