Jump to: navigation, search

Whonix Live

About this Whonix Live Page
Support Status testing
Difficulty medium
Maintainer Algernon
Support Support

Introduction[edit]

Starting with Whonix 14, users can optionally run Whonix as a live system. Booting into live mode will make all writes go to RAM instead of the hard disk. Everything that is created / changed / downloaded in the VM during that session will not persist after shutdown. This also holds true for malicious changes made by malware, so long as it did not break out of the virtual machine.

Live-mode Configuration[edit]

To enable live mode, apply the following.

Backup the /boot folder.

sudo cp -a /boot /boot.back

Update the package lists.

sudo apt-get update

Upgrade the system.

sudo apt-get dist-upgrade

Install the grub-live package.

sudo apt-get install grub-live


Following reboot, a second boot entry called "Whonix Live-mode" will be visible. Simply press Enter to boot the live system and use it as normal.

To increase security, the VM disks can be set to read-only. Otherwise, malware running as root in the VM could theoretically mount the image read-write and gain persistence in this way.

Live-mode on KVM[edit]

For KVM, the hard disk should be set to read-only in the virt-manager GUI before booting into live mode. To boot into normal mode again, simply revert this change.

Live-mode on VirtualBox[edit]

First read the footnote below. [6]

To make a disk on VirtualBox immutable / read-only, follow these steps:

  1. In the VirtualBox main window, navigate to: File -> Virtual Media Manager.
  2. Select the disk to write protect and release it.
  3. Click on Modify -> set it to Immutable.
  4. In the VirtualBox main window, navigate to the settings of the VM.
  5. Under storage, select the top controller and add the existing hard disk there.


The user can now boot the VM and select Live-mode.

To revert these changes:

  1. Navigate to: File -> Virtual Media Manager.
  2. Select the disk. It will now have a snapshot (~12.5 MB) attached to it.
  3. Release the snapshot and delete it.
  4. Click on Modify and set the hard disk to normal.
  5. In the VirtualBox main window, navigate to the settings of the VM.
  6. Under storage, select the top controller and add the existing hard disk there.

Live-mode on Qubes[edit]

grub-live is currently unsupported on Qubes. Maybe in future. Currently being discussed.

Meanwhile, check Qubes DisposableVMs as alternative on Qubes R4 and Qubes Live USB.

Misc[edit]

In the future, running Whonix from a Live CD or DVD might be supported. Check this wiki entry at a later date.

To learn more about live mode, refer to the Live-mode forum discussion.

Footnotes[edit]

  1. https://www.whonix.org/wiki/Qubes/DisposableVM#Warning:_DisposableVMs_are_not_Amnesic
  2. https://www.whonix.org/wiki/FAQ#Is_there_a_substitute_for_Whonix.27s_lack_of_an_Amnesic_feature_.2F_Live_CD.2FDVD.3F_Forensics.3F
  3. https://www.whonix.org/wiki/Warning#Whonix_is_not_amnesic
  4. https://www.whonix.org/wiki/Advanced_Security_Guide#Other_Security_Considerations
  5. https://www.whonix.org/wiki/Computer_Security_Education#Core_Dumps
  6. 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.

Random News:

Did you know that Whonix could provide protection against backdoors? See Verifiable Builds. Help is wanted and welcomed.


https | (forcing) onion

Share: Twitter | Facebook

This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! See Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation.

Whonix is a licensee of the Open Invention Network. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Libre Software license as Whonix itself. (Why?)