diff --git a/tests/qemu-iotests/234 b/tests/qemu-iotests/234 index 1f695d337a..b119b4cc4d 100755 --- a/tests/qemu-iotests/234 +++ b/tests/qemu-iotests/234 @@ -27,11 +27,13 @@ iotests.verify_image_format(supported_fmts=['raw', 'qcow2']) iotests.verify_platform(['linux']) with iotests.FilePath('img') as img_path, \ + iotests.FilePath('backing') as backing_path, \ iotests.FilePath('mig_fifo_a') as fifo_a, \ iotests.FilePath('mig_fifo_b') as fifo_b, \ iotests.VM(path_suffix='a') as vm_a, \ iotests.VM(path_suffix='b') as vm_b: + iotests.qemu_img_pipe('create', '-f', iotests.imgfmt, backing_path, '64M') iotests.qemu_img_pipe('create', '-f', iotests.imgfmt, img_path, '64M') os.mkfifo(fifo_a) @@ -40,14 +42,20 @@ with iotests.FilePath('img') as img_path, \ iotests.log('Launching source VM...') (vm_a.add_blockdev('file,filename=%s,node-name=drive0-file' % (img_path)) .add_blockdev('%s,file=drive0-file,node-name=drive0' % (iotests.imgfmt)) + .add_blockdev('file,filename=%s,node-name=drive0-backing-file' % (backing_path)) + .add_blockdev('%s,file=drive0-backing-file,node-name=drive0-backing' % (iotests.imgfmt)) .launch()) iotests.log('Launching destination VM...') (vm_b.add_blockdev('file,filename=%s,node-name=drive0-file' % (img_path)) .add_blockdev('%s,file=drive0-file,node-name=drive0' % (iotests.imgfmt)) + .add_blockdev('file,filename=%s,node-name=drive0-backing-file' % (backing_path)) + .add_blockdev('%s,file=drive0-backing-file,node-name=drive0-backing' % (iotests.imgfmt)) .add_incoming("exec: cat '%s'" % (fifo_a)) .launch()) + vm_a.qmp('blockdev-snapshot', node='drive0-backing', overlay='drive0') + iotests.log('Enabling migration QMP events on A...') iotests.log(vm_a.qmp('migrate-set-capabilities', capabilities=[ {