Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-12-SP1:Update
virt-manager.12547
virtinst-xen-drive-type.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File virtinst-xen-drive-type.patch of Package virt-manager.12547
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.2.1/virtinst/devicedisk.py =================================================================== --- virt-manager-1.2.1.orig/virtinst/devicedisk.py +++ virt-manager-1.2.1/virtinst/devicedisk.py @@ -572,6 +572,12 @@ class VirtualDisk(VirtualDevice): return None if self.conn.is_qemu(): return self.DRIVER_QEMU + else: + drvtypes = ['qcow2', 'vmdk'] + if self.type in drvtypes: + return 'tap' + else: + return self.DRIVER_QEMU return None def _get_default_driver_type(self): @@ -585,6 +591,8 @@ class VirtualDisk(VirtualDevice): http://lists.gnu.org/archive/html/qemu-devel/2008-04/msg00675.html """ if self.driver_name != self.DRIVER_QEMU: + if self.driver_name and self.type != 'file': + return self.type return None drvtype = self._storage_backend.get_driver_type()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor