virt-manager/virtinst-xen-drive-type.patch
Charles Arnold 946c30ddbd - bsc#963692 - libvirtError: unsupported configuration: unknown
driver format value 'block'
  virtinst-xen-drive-type.patch
- bsc#963173 - virt-manager - dependencies for VNC client are not
  met on PPC
  virt-manager.spec

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=293
2016-01-27 18:36:28 +00:00

20 lines
818 B
Diff

Reference: bnc#813082
Virt-manager on Xen doesn't fill in any type thereby defaulting to
'raw'. This patch will generate the correct XML on Xen.
Index: virt-manager-1.3.2/virtinst/devicedisk.py
===================================================================
--- virt-manager-1.3.2.orig/virtinst/devicedisk.py
+++ virt-manager-1.3.2/virtinst/devicedisk.py
@@ -557,6 +557,10 @@ class VirtualDisk(VirtualDevice):
http://lists.gnu.org/archive/html/qemu-devel/2008-04/msg00675.html
"""
if self.driver_name != self.DRIVER_NAME_QEMU:
+ if self.driver_name and \
+ self.driver_name != self.DRIVER_NAME_PHY and \
+ self.type != 'file':
+ return self.type
return None
drvtype = self._storage_backend.get_driver_type()