* [Qemu-devel] about -drive argument
@ 2008-05-28 8:49 nicolas prochazka
2008-05-29 8:26 ` Laurent Vivier
0 siblings, 1 reply; 3+ messages in thread
From: nicolas prochazka @ 2008-05-28 8:49 UTC (permalink / raw)
To: qemu-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] about -drive argument
2008-05-28 8:49 [Qemu-devel] about -drive argument nicolas prochazka
@ 2008-05-29 8:26 ` Laurent Vivier
2008-05-30 8:50 ` Kevin Wolf
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Vivier @ 2008-05-29 8:26 UTC (permalink / raw)
To: qemu-devel; +Cc: nicolas prochazka
Le mercredi 28 mai 2008 à 10:49 +0200, nicolas prochazka a écrit :
> 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.
>
> 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
--
------------- Laurent.Vivier@bull.net ---------------
"The best way to predict the future is to invent it."
- Alan Kay
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] about -drive argument
2008-05-29 8:26 ` Laurent Vivier
@ 2008-05-30 8:50 ` Kevin Wolf
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Wolf @ 2008-05-30 8:50 UTC (permalink / raw)
To: qemu-devel; +Cc: nicolas prochazka
Laurent Vivier schrieb:
>> 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.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-30 8:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 8:49 [Qemu-devel] about -drive argument nicolas prochazka
2008-05-29 8:26 ` Laurent Vivier
2008-05-30 8:50 ` Kevin Wolf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).