Add ftp protocol support for cdrom disk

The ftp protocol is already recognized by qemu/KVM so add this support to
libvirt as well.
The xml should be as following:

     <disk type='network' device='cdrom'>
       <source protocol='ftp' name='/url/path'>
         <host name='host.name' port='21'/>
       </source>
     </disk>

Signed-off-by: Aline Manera <alinefm@br.ibm.com>
This commit is contained in:
Aline Manera authored and Peter Krempa committed 2013-08-27 14:50:24 +02:00
1 parent 3485ce4e9d
commit 796513d7cc
8 files changed
+63 -1

No files matched your search

+8
View File
@@ -1509,6 +1509,14 @@
&lt;target dev='hdc' bus='ide' tray='open'/&gt;
&lt;readonly/&gt;
&lt;/disk&gt;
&lt;disk type='network' device='cdrom'&gt;
&lt;driver name='qemu' type='raw'/&gt;
&lt;source protocol="ftp" name="url_path"&gt;
&lt;host name="hostname" port="21"/&gt;
&lt;/source&gt;
&lt;target dev='hdc' bus='ide' tray='open'/&gt;
&lt;readonly/&gt;
&lt;/disk&gt;
&lt;disk type='block' device='lun'&gt;
&lt;driver name='qemu' type='raw'/&gt;
&lt;source dev='/dev/sda'/&gt;
+1
View File
@@ -1212,6 +1212,7 @@
<value>gluster</value>
<value>iscsi</value>
<value>http</value>
<value>ftp</value>
</choice>
</attribute>
<optional>