2018-06-18 18:56:22 +00:00
|
|
|
<?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>
|
2023-06-09 13:21:30 +00:00
|
|
|
%for disk, letter in zip(disks, range(97, 123)):
|
2018-06-18 18:56:22 +00:00
|
|
|
<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>
|
|
|
|
|