core-admin/templates/libvirt/devices/block.xml
Marek Marczykowski-Górecki 9bb5054e50
ext: BlockDevices extension
Handle block devices exposed by VMs
2017-06-05 23:33:58 +02:00

17 lines
500 B
XML

<disk type="block" device="{{ options.get('devtype', 'disk') }}">
<driver name="phy" />
<source dev="{{ device.device_node }}" />
{%- if 'frontend-dev' in options %}
<target dev="{{ options.get('frontend-dev') }}" />
{%- else %}
<target dev="xvd{{dd[i]}}" />
{% set i = i + 1 %}
{%- endif %}
{%- if options.get('read-only', 'no') == 'yes' %}
<readonly />
{%- endif %}
<backenddomain name="{{ device.backend_domain.name }}" />
</disk>