Make an existing VM immutable

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