VM Live Mode: Immutable Disk Method on VirtualBox
From Whonix
< VM Live Mode
About this VM Live Mode/Immutable Disk Method on VirtualBox Page | |
---|---|
Support Status | testing |
Difficulty | medium |
Contributor | Algernon [archive] |
Support | Support |
Introduction[edit]
For VirtualBox there is also an alternate way to set the disks to read-only.
This option is the official way for setting VM's to read-only in VirtualBox. This option will also only work with the grub-live
package, which is installed by default. [1]
Procedure[edit]
1. Make the VirtualBox disk immutable / read-only.
This step is important. Otherwise contents might be recoverable from the host drive. [2]
Follow these steps:
- Power off the VM
- In the VirtualBox main window, navigate to:
File
→Virtual Media Manager
. - Select the disk to write protect and release it.
- Click on
Modify
→set it to Immutable
. - In the VirtualBox main window, navigate to the settings of the VM.
- Under storage, select the top controller and add the existing hard disk there.
2. Launch live-mode.
A second boot entry called "VM Live Mode-mode" will be visible. Select it and then press Enter
to boot the live system and use it as normal.
3. Optional: Steps to revert changes.
Click on expand on the right.
- Power off the VM
- Navigate to:
File
→Virtual Media Manager
. - Select the disk. It will now have a snapshot (~12.5 MB) attached to it.
- Release the snapshot and delete it.
- Click on
Modify
and set the hard disk to normal. - In the VirtualBox main window, navigate to the settings of the VM.
- Under storage, select the top controller and add the existing hard disk there.
Footnotes[edit]
- ↑
This option will not work with the
ro-mode-init
pacakge. - ↑ VirtualBox implements hard disk write protection differently. If an immutable virtual machine is booted, VirtualBox will always create a snapshot where data is written. After shutting down and booting the VM again (a soft reboot is inadequate) the old snapshot will be deleted and a new one created. The consequence is that data will not persist in the VM, even if Live-mode is not selected. However, since the data is written to the hard disk of the host (instead of memory), it is easily recovered. Therefore, it is necessary to select Live-mode to be safe. A snapshot file is still created, but it will not store any altered content from the VM.
Whonix ™ is Supported by Evolution Host DDoS Protected VPS. Stay private and get your VPS with Bitcoin or Monero.
100px | |
Fosshost | About Advertisements |
Search engines: YaCy | Qwant | ecosia | MetaGer | peekier | Whonix ™ Wiki
Priority Support | Investors | Professional Support
Whonix ™ | © ENCRYPTED SUPPORT LP | Freedom Software / Open Source (Why?)
The personal opinions of moderators or contributors to the Whonix ™ project do not represent the project as a whole.