OLD | NEW |
| (Empty) |
1 # this is a sample job to build xen and kernel with xen patches. | |
2 # The xen unstable tarball comes with scripts that will automatically | |
3 # patch a linux kernel, however, in some cases, PPC for example, the | |
4 # kernel is built from a seperate source. The xen class supports | |
5 # defining your own kernel job, and handing that to the xen job. If | |
6 # no kernel job is specified, it will create one using the kernel source | |
7 # that the xen tarball uses. | |
8 xensrc = 'http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-unstable-
src.tgz' | |
9 | |
10 # | |
11 # uncomment the section below if you want to specify your own kernel job | |
12 # for the xen build | |
13 # | |
14 # ------ start uncomment ------ | |
15 #print "TEST: initing kernel" | |
16 #testkernel = job.kernel('/usr/local/src/linux-2.6.18.tar.bz2') # 2.4.18 | |
17 #testkernel.config('http://mbligh.org/config/opteron2') | |
18 #print "TEST: initing xen" | |
19 #testxen = job.xen(xensrc, kjob = testkernel) | |
20 # ------ end uncomment ------ | |
21 | |
22 # build xen using default xen kernel | |
23 # comment the next two lines out if you are using the above custom | |
24 # kernel job | |
25 | |
26 print "TEST: initing xen" | |
27 testxen = job.xen(xensrc) | |
28 | |
29 print "TEST: building xen" | |
30 testxen.build() | |
31 | |
32 print "TEST: installing xen" | |
33 # using a dir in tmp as xen install needs root perms | |
34 # | |
35 testxen.install(tag='autotest', prefix='/tmp/xen') | |
36 | |
37 # uncomment if you run as root and want to install the xen build | |
38 # testxen.boot() | |
OLD | NEW |