mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
CloneManager: Make sure to sync driver_name
This commit is contained in:
parent
ed8d785eef
commit
9c5a1b60ee
@ -20,9 +20,9 @@
|
||||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<driver type="vmdk" name="qemu"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source dev="/disk-pool/diskvol1-clone"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
@ -37,6 +37,7 @@
|
||||
<address type="drive" controller="0" bus="0" target="0" unit="1"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver type="qcow2"/>
|
||||
<source dev="/default-pool/collidevol1.img"/>
|
||||
<target dev="sdc" bus="scsi"/>
|
||||
<readonly/>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<emulator>/usr/bin/qemu-kvm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<target dev="hda" bus="ide"/>
|
||||
<driver type="vmdk"/>
|
||||
<driver name="qemu" type="vmdk"/>
|
||||
<source file="/default-pool/new1.img"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
|
@ -403,6 +403,7 @@
|
||||
<disk type='block' device='floppy'>
|
||||
<source dev='/disk-pool/diskvol1'/>
|
||||
<target dev='fda' bus='fdc'/>
|
||||
<driver type="vmdk"/>
|
||||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<source dev='/disk-pool/diskvol2'/>
|
||||
@ -415,6 +416,7 @@
|
||||
<disk type='block' device='disk'>
|
||||
<source dev='/default-pool/collidevol1.img'/>
|
||||
<target dev='sdc' bus='scsi'/>
|
||||
<driver type="qcow2"/>
|
||||
<readonly/>
|
||||
<shareable/>
|
||||
</disk>
|
||||
|
@ -522,6 +522,7 @@ class Cloner(object):
|
||||
newd = VirtualDisk(self.conn)
|
||||
newd.path = disk.path
|
||||
newd.device = device
|
||||
newd.driver_name = disk.driver_name
|
||||
newd.driver_type = disk.driver_type
|
||||
newd.target = disk.target
|
||||
if validate:
|
||||
|
Loading…
x
Reference in New Issue
Block a user