Skip to content

Commit

Permalink
Fix: specify backing file format when creating QEMU overlay
Browse files Browse the repository at this point in the history
Not sure how this worked earlier, maybe earlier versions of QEMU
assumed raw by default?
  • Loading branch information
yfyf committed Sep 24, 2024
1 parent 025505a commit dcb073c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/run-in-vm/run-in-vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def disk_overlay(disk):
# Create a disk overlay
subprocess.run(
[
QEMU_IMG, 'create', '-f', 'qcow2', '-o'
'backing_file={}'.format(disk), temp + "/disk-overlay.qcow2"
QEMU_IMG, 'create', '-f', 'qcow2', '-b', disk, '-F', 'raw',
temp + "/disk-overlay.qcow2"
],
check=True)

Expand Down

0 comments on commit dcb073c

Please sign in to comment.