Extended support for block devices for KVM and VMWare. currently we do support block devices that exported as file in libvirt: <disk type='file' device='disk'> <source file='...'/> ... Added support for type block is needed: <disk type='block' device='disk'> <source dev='/dev/mapper/...'/> ...
The fix presented a bug when importing from KVM and not supplying username. As a workaround user can set any arbitrary username and password if the uri doesn't require authentication. bz #1414256 fix this issue
Verification builds: ovirt-engine-4.1.0.3-0.1.el7 libvirt-client-2.0.0-10.el7_3.4.x86_64 vdsm-4.19.4-1.el7ev.x86_64 qemu-kvm-rhev-2.6.0-28.el7_3.3.x86_64 sanlock-3.4.0-1.el7.x86_64
Verification scenario: 1. Edit KVM VM disk using virsh command and change it to block device: <disk type='block' device='disk'> <driver name='qemu' type='qcow2'/> <source dev='/var/lib/libvirt/images/nsimsolo_kvm_new /centos_minimal.qcow2'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> 2. From RHV host -> virsh dumpxml this VM and verify disk type='block': virsh # dumpxml centos_minimal <domain type='kvm'> <name>centos_minimal</name> . . . <disk type='block' device='disk'> <driver name='qemu' type='qcow2'/> <source dev='/var/lib/libvirt/images/nsimsolo_kvm_new/centos_minimal.qcow2'/> <target dev='sdb' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> 3. Browse webadmin -> VMs tab -> import, select above mentioned VM and download it. 4. After download succeeded, run VM and verify VM is running properly.