qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: John Snow <1070762@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1070762] Re: savevm fails with inserted CD, "Device '%s' is writable but does not support  snapshots."
Date: Wed, 31 Aug 2016 18:43:29 -0000	[thread overview]
Message-ID: <20160831184330.15679.43964.launchpad@soybean.canonical.com> (raw)
In-Reply-To: 20121024095851.10767.86404.malonedeb@gac.canonical.com

** Changed in: qemu
     Assignee: (unassigned) => John Snow (jnsnow)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1070762

Title:
  savevm fails with inserted CD, "Device '%s' is writable but does not
  support  snapshots."

Status in QEMU:
  New

Bug description:
  Hi,

  yesterday unfortunately a customer reported a failed snapshot of his
  VM. Going through the logfile I discovered:

  "Device 'ide1-cd0' is writable but does not support snapshots"

  this is with qemu-1.2.0 and 1.0.1 at least...

  Why writeable?
  Even if I specify "-drive ...,readonly=on,snapshot=off" to qemu the monitor-command sees the CD-ROM-device as being writeable?!

  Somewhere I saw a "hint" for blockdev.c:
  === snip ===

  --- /tmp/blockdev.c	2012-10-24 11:37:10.000000000 +0200
  +++ blockdev.c	2012-10-24 11:37:17.000000000 +0200
  @@ -551,6 +551,7 @@
       case IF_XEN:
       case IF_NONE:
           dinfo->media_cd = media == MEDIA_CDROM;
  +	dinfo->bdrv->read_only = 1;
           break;
       case IF_SD:
       case IF_FLOPPY:

  === snap ===

  after installing with this small patch applied it works, so insert CD, savevm <somename> succeeds.
  This should be fixed at all correct places, and the tags "readonly=on,snapshot=off" should do it, too. Or even just work after specifying a drive being a CD-rom should do the trick ;-)

  Another "bad habit" is, that the ISO/DVD-file has to be writeable to
  be changed?

  Thnx for attention and regards,

  Oliver.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1070762/+subscriptions

  reply	other threads:[~2016-08-31 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24  9:58 [Qemu-devel] [Bug 1070762] [NEW] savevm fails with inserted CD, "Device '%s' is writable but does not support snapshots." Oliver Francke
2016-08-31 18:43 ` John Snow [this message]
2020-07-28  1:34 ` [Bug 1070762] " John Snow
2020-09-26  4:17 ` Launchpad Bug Tracker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160831184330.15679.43964.launchpad@soybean.canonical.com \
    --to=1070762@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).