From: Matthew Hook <matthew.hook@otoy.com>
To: xen-devel@lists.xensource.com
Subject: persistent or "steady-state" style disks
Date: Thu, 16 Feb 2012 12:09:04 -0800 [thread overview]
Message-ID: <CAMrHX2XPSAMNoaDAQ=YE1QoSt9raU9ngrwD-Ahak83nYhMVyUw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1324 bytes --]
Hi,
I have a requirement (and a limited timeframe) to make a Windows 7 VM
domain roll back to a fixed state on restart, shutdown etc.
Something like a Kiosk Mode. I think this is a very needed part of the
core of xen and this functionality does
not appear to be part of xen already. So I've been trying various ways to
make this work.
Has anyone already implemented something like this successfully before?
What I've been experimenting unsuccessfully with currently is the following:
1) Add hooks into the blktap2 code to roll back a VHD (currently based on
the name ending in -persist.vhd).
However, it's not working out as it should.
2) Second attempt was to write an external script and call it periodically.
The idea was to call vhd-snapshot on the parent disk to a new disk (temp
name). Then do an atomic rename on existing vhd
and unlink the old vhd. When it restarts you would think it would open up
the new snapshot. Unfortunately, a reboot seems to
detect that the file is different and so it's not re-started as desired but
instead the domain is shutdown.
I don't like either of the above methods. They are hacks in my opinion but
I'm not currently familiar enough with xen internals.
Can someone propose a method and/or suggest where I could hook into the xen
tools to implement it?
Regards,
Matthew
[-- Attachment #1.2: Type: text/html, Size: 1614 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2012-02-16 20:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 20:09 Matthew Hook [this message]
2012-02-17 21:21 ` persistent or "steady-state" style disks Dave Scott
2012-02-21 2:27 ` Matthew Hook
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='CAMrHX2XPSAMNoaDAQ=YE1QoSt9raU9ngrwD-Ahak83nYhMVyUw@mail.gmail.com' \
--to=matthew.hook@otoy.com \
--cc=xen-devel@lists.xensource.com \
/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).