2f477626fa
...turns out you can't just have a single template file, because lorax just picks a single directory and expects all the data it needs to be there. Sigh. So this adds all the rest of the files, plus some Makefile machinery for generating a tarball and updating the specfile after you've checked in changes. See README for details.
36 lines
751 B
XML
36 lines
751 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<image>
|
|
<name>${name}</name>
|
|
<domain>
|
|
<boot type='hvm'>
|
|
<guest>
|
|
<arch>${arch}</arch>
|
|
</guest>
|
|
<os>
|
|
<loader dev='hd'/>
|
|
</os>
|
|
%for disk, letter in zip(disks, xrange(97, 123)):
|
|
<drive disk='${disk.name}' target='hd${chr(letter)}'/>
|
|
%endfor
|
|
</boot>
|
|
<devices>
|
|
<vcpu>${vcpus}</vcpu>
|
|
<memory>${memory}</memory>
|
|
%for net in networks:
|
|
<interface/>
|
|
%endfor
|
|
<graphics/>
|
|
</devices>
|
|
</domain>
|
|
<storage>
|
|
%for disk in disks:
|
|
<disk file='${disk.name}' use='system' format='${disk.format}'>
|
|
%if disk.checksum:
|
|
<checksum type='${disk.checksum_type}'>${disk.checksum}</checksum>
|
|
%endif
|
|
</disk>
|
|
%endfor
|
|
</storage>
|
|
</image>
|
|
|