Changes

Qemu native GlusterFS integration

7 bytes removed, 11:19, 4 September 2013
/* Libvirt */
= Libvirt =
The XML has to be changed only slightly. Following is an example:.
'''current'''
<syntaxhighlight lang='xml'>
<disk type='networkfile' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source protocol='gluster' namefile='/var/virtualization/vm-templates/5b77d2f6-061f-410c-8ee7-9e61da6f1927/f3d87cf9-f7d8-4224-b908-cc9fc6c8fcd4.qcow2'> <host name='10.1.120.11'/> </source>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
</syntaxhighlight>
while that configuration part currently looks like this:'''direct-gluster-access'''
<syntaxhighlight lang='xml'>
<disk type='filenetwork' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source fileprotocol='gluster' name='/var/virtualization/vm-templates/5b77d2f6-061f-410c-8ee7-9e61da6f1927/f3d87cf9-f7d8-4224-b908-cc9fc6c8fcd4.qcow2'> <host name='10.1.120.11'/> </source>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
</syntaxhighlight>
To summarize itThe changed elements are:
;<code>disk type</code>:has to be <code>network</code> instead of <code>file</code>
;<code>source</code>:has now a <code>protocol</code> and a <code>name</code> instead of a <code>file</code> attribute as well as a new subelement <code>host</code>, where the <code>name</code> is the filename without <code>/var/</code>
Bureaucrat, administrator
425
edits