• J
    conf: Introduce new XML tag "mode" for disk source · c00b2f0d
    John Ferlan 提交于
    There are two ways to use a iSCSI LUN as disk source for qemu.
    
     * The LUN's path as it shows up on host, e.g.
       /dev/disk/by-path/ip-$ip:3260-iscsi-$iqn-fc18:iscsi.iscsi0-lun-1
    
     * The libiscsi URI from the storage pool source element host attribute, e.g.
       iscsi://demo.org:6000/iqn.1992-01.com.example/1
    
    For a "volume" type disk, if the specified "pool" is of iscsi
    type, we should support to use the LUN in either of above 2 ways.
    That's why to introduce a new XML tag "mode" for the disk source
    (libvirt should support iscsi pool with libiscsi, but it's another
    new feature, which should be done later).
    
    The "mode" can be either of "host" or "direct". Use "host" to indicate
    use of the LUN with the path as it shows up on host. Use "direct" to
    indicate to use it with the source pool host URI (future patches may support
    to use network type libvirt storage too, e.g. Ceph)
    c00b2f0d
qemuxml2argv-disk-source-pool-mode.xml 1.7 KB