Make an existing VM immutable

2

3

With XP security support coming to an end, but needing to use some software that will only run under XP (and some other software that just needs windows) I'd like to make my XP VM a bit more secure.

I've done quite a few things (disabling unnecessary services, avoiding admin logon where possible, installing avg, firefox with noscript etc. if web is needed), but I'd like a clean copy that I can easily roll back from - or run to work on my data.

I've cloned the VM (so I can have a version that keeps the antivirus up to date), but would like to set one copy to an immutable HDD. I don't see any options for doing that, and everything on the web that I've found is several versions old and has more problems than solutions. I would have thought this was a fairly common topic at the moment. My host is Ubuntu Precise.

By "immutable" I use the term as I understand it from the virtualbox documentation I've read: a disk which is read-only, i.e. changes to that disk are discarded when the session is closed. This means that rather than taking a copy of a clean copy to restore it to a known state all I have to do is boot it.

As an aside or a point of reference I've seem something similar on internet cafe machines, where when your time is up the guest OS restores to a clean state for the next user, but there you never get anywhere near the host.

Chris H

Posted 2014-04-10T12:57:09.507

Reputation: 1 279

possible duplicate of What's the best way to set up kiosk mode for XP?

– harrymc – 2014-06-08T12:01:49.867

@harrymc possibly, though a full answer to that question (a) doesn't exist and (b) would restrict to a browser or a list of applications. Also this Q is specifically about a VM - the Q you've linked doesn't need one at all. I would go with "related" rather than duplicate, especially given that the answer below is better than anything at the other Q. – Chris H – 2014-06-08T14:51:18.430

Answers

1

This works for me:

  1. Halt the VM if it's running.
  2. Open the "Storage" settings for the VM where the HDD image is attached. Detach the image.
  3. From the VM Virtualbox Manager window, select File->Virtual Media Manager.
  4. In the media manager window, select the hard drive image that you want to change.
  5. Select the "Modify" button, or right-click on the image and select "Modify...". Change the image to immutable and click "OK".
  6. Return to the storage settings for the VM and re-attach the HDD image to the VM.

Kenster

Posted 2014-04-10T12:57:09.507

Reputation: 5 474

That was the exact same question i had. Thank you very much for the answer! It works on VirtualBox 5.1.14! – Nikos – 2017-02-10T00:02:25.560

Works perfectly - a rather subtle route to achieving it. – Chris H – 2014-04-10T14:52:14.657