1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
qemu option -snapshot not work for blockdev disk
Description of problem:
If disk image configured with a -blockdev option, option -snapshot not work: all changes write to disk image instead of temporary files.
Steps to reproduce:
1. Run qemu guest with -blockdev disk image file and -snapshot options
2. Create file test.txt on guest disk
3. Power off guest
4. Run qemu guest again
5. File test.txt present on guest disk
Additional information:
When i replace -blockdev options to legacy -drive option
```
-snapshot
-drive if=none,id=ssd1-format,media=disk,cache=none,aio=native,discard=unmap,detect-zeroes=unmap,format=qcow2,file=images/windows21h2.qcow2
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,device_id=drive-scsi0-0-0-0,drive=ssd1-format,id=scsi0-0-0-0,write-cache=on,bootindex=1
```
-snapshot option work fine
|