2

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.

  • possible duplicate of What's the best way to set up kiosk mode for XP? – harrymc Jun 8 '14 at 12:01
  • @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 Jun 8 '14 at 14:51
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.
  • Works perfectly - a rather subtle route to achieving it. – Chris H Apr 10 '14 at 14:52
  • That was the exact same question i had. Thank you very much for the answer! It works on VirtualBox 5.1.14! – Nikos Feb 10 '17 at 0:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.