mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 04:46:55 +00:00
disable drive-mirror when iothread is enabled
drive-mirror is not working with qemu 2.6 when iothread is enabled. with virtio-blk : mirror is working, but block-job-completed crash the vm with virtio-scsi : mirror hang at start. This should be fixed in qemu 2.7 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
aaff69ad50
commit
2af848a2da
@ -5761,6 +5761,9 @@ sub clone_disk {
|
||||
if (!$running || $snapname) {
|
||||
qemu_img_convert($drive->{file}, $newvolid, $size, $snapname, $sparseinit);
|
||||
} else {
|
||||
#qemu 2.6
|
||||
die "drive-mirror is not working currently when iothread is enabled" if $drive->{iothread};
|
||||
|
||||
qemu_drive_mirror($vmid, $drivename, $newvolid, $newvmid, $sparseinit);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user