Skip to contentSkip to conversation

about -drive argument

Qemu-devel nicolas prochazka 3 participants 3 messages May 28, 2008 – May 30, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I'm doing some tests with -drive option, and it seems there's some issue :

-drive xxx ,snapshot=off|on does not ok
=> if i create two drive -drive file=/mnt/vdisk/test1.qcow2 if=scsi,bus=0,unit=6,boot=on,cache=off,snapshot=on -drive file=/mnt/vdisk/test2.qcow2 if=scsi,bus=0,unit=2,cache=off,snapshot=off
it does not run, test1.qcow2 and test2.qcow2 seems to be in the same
mode ( no snapshot)
Only -snapshot in qemu command seems to be ok.

an other issue:
-drive file=/mnt/vdisk/test1.qcow2 if=scsi,bus=0,unit=6,boot=on,cache=off : ok -drive file=/mnt/vdisk/test1.qcow2,if=scsi,bus=0,unit=6,boot=on,cache=off
: not ok image not found ( there's a , after file image file, as
mentionned in doc

Regards,
Nicolas Prochazka.

#1 lore raw
Quoted 11 lines · nicolas prochazka

Hi,
I'm doing some tests with -drive option, and it seems there's some issue :

-drive xxx ,snapshot=off|on does not ok
=> if i create two drive -drive file=/mnt/vdisk/test1.qcow2 if=scsi,bus=0,unit=6,boot=on,cache=off,snapshot=on -drive file=/mnt/vdisk/test2.qcow2 if=scsi,bus=0,unit=2,cache=off,snapshot=off
it does not run, test1.qcow2 and test2.qcow2 seems to be in the same
mode ( no snapshot)
Only -snapshot in qemu command seems to be ok.

The valid syntax is with a comma:

-drive file=/mnt/vdisk/test1.qcow2,if=scsi,bus=0,unit=6,boot=on,cache=off,snapshot=on

but cache=off and snapshot=on are only compatible since the commit 4599.

Quoted 6 lines

an other issue:
-drive file=/mnt/vdisk/test1.qcow2 if=scsi,bus=0,unit=6,boot=on,cache=off : ok -drive file=/mnt/vdisk/test1.qcow2,if=scsi,bus=0,unit=6,boot=on,cache=off
: not ok image not found ( there's a , after file image file, as
mentionned in doc

And what is the result of "ls -l /mnt/vdisk/test1.qcow2" ?

Laurent

Signature · 3 lines
------------- [email protected] ---------------
"The best way to predict the future is to invent it."
- Alan Kay
#2 lore raw
Quoted 5 lines · Laurent Vivier
Quoted 5 lines

an other issue:
-drive file=/mnt/vdisk/test1.qcow2 if=scsi,bus=0,unit=6,boot=on,cache=off : ok -drive file=/mnt/vdisk/test1.qcow2,if=scsi,bus=0,unit=6,boot=on,cache=off
: not ok image not found ( there's a , after file image file, as
mentionned in doc

The first list only seems to work ok because qemu silently ignores everything after the space, especially the cache=off which won't work with qow2 before Rev 4599. That's probably not what you wanted. You really need the comma.

The wrong syntax also explains why you always get the default for the snapshot option.

Quoted 1 line

And what is the result of "ls -l /mnt/vdisk/test1.qcow2" ?

Actually, "qemu: could not open disk image xyz" is the expected behaviour before Rev 4599.

Kevin