kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sharing a (mostly) read-only virtual block device
@ 2009-10-16 10:45 Antoine Martin
  2009-10-18  7:02 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Antoine Martin @ 2009-10-16 10:45 UTC (permalink / raw)
  To: kvm@vger.kernel.org

Hi,

Is there an easy way that I have missed to share a virtual disk
read-only between many guests whilst still having the ability to update
it occasionally from the host?

I was hoping I could use a shared image file, and occasionally replace
it with an updated version (move old copy to disk_image.bak, copy new
image to disk_image), then the guests could umount/mount the drive and
get access to the new disk image.

Unfortunately qemu opens the virtual disk as soon as the guest boots, so
the file descriptor still points to the old image.
Note: I do not want to use the qemu monitor from the host as I want the
guests to be in charge of when/if they get the new disk image.

Any suggestions / other ways of doing this?

Thanks
Antoine

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-19  1:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 10:45 sharing a (mostly) read-only virtual block device Antoine Martin
2009-10-18  7:02 ` Avi Kivity
2009-10-18  8:32   ` Michael Tokarev
2009-10-18 12:25     ` Antoine Martin
2009-10-19  1:51       ` Avi Kivity

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).