Whonix RAM System Requirements and Advice for Systems with Low RAM

From Whonix
Jump to navigation Jump to search
Low RAM

How much RAM does Whonix need? 8 GB of RAM would be ideal for best usablity and performance to run Whonix. However, Whonix can also be used with a lot with less RAM. 4 GB of RAM is enough.

This wiki page provides advice on how to reduce RAM usage when using low-end systems with Whonix, such as those with 4 GB of RAM or less. It includes instructions for reducing RAM and VRAM assignments, running Whonix-Gateway in CLI mode, and using graphical administration mode.

Introduction[edit]

Whonix command line interface (CLI) is normally recommended for advanced users only. However, it is possible to reduce the RAM and VRAM (video RAM) assignment of Whonix-Gateway without requiring any other configuration changes such as package de-installation or configuration file modifications.

It is important to note that more RAM is required for upgrades.

Whonix-Gateway can function with as little as 256 MB RAM, resource-intensive operations like upgrades can cause the virtual machine to freeze. [1]

Assigning less than 512 MB RAM to a Whonix VM will result in RAM Adjusted Desktop Starter launching the command line interface (CLI) only, without Xfce graphical user interface (GUI).

Users with 4 GB or less RAM can temporarily assign 256 MB RAM to Whonix-Gateway. This is sufficient for the normal operation of Whonix-Gateway serving Whonix-Workstation. This process is described in detail below.

Whonix RAM and VRAM Defaults[edit]

GUI

Whonix Xfce in VirtualBox
  • Whonix Xfce:
    • Whonix-Gateway Xfce - 1280 MB RAM and 128 MB VRAM.
    • Whonix-Workstation Xfce - 2048 MB RAM and 128 MB VRAM.

CLI

Whonix CLI in VirtualBox
  • Whonix CLI:
    • Whonix-Gateway CLI - 512 MB RAM and 16 MB VRAM.
    • Whonix-Workstation CLI - 512 MB RAM and 16 MB VRAM.

Advice for Systems with Low RAM[edit]

Whonix-Gateway CLI RAM Saving Mode[edit]

Whonix-Gateway initial first boot setup:

  1. Run Whonix-Gateway Xfce normally.
  2. Do not start Whonix-Workstation if you are low on RAM.
  3. Complete the initial Whonix-Gateway setup.
  4. Perform the system upgrade.
  5. Then, you can enable Whonix-Gateway CLI RAM Saving Mode to save RAM.

To run Whonix-Gateway after its initial first boot setup or after upgrades:

  1. Shutdown Whonix-Gateway.
  2. Allocate less RAM to Whonix-Gateway: Virtual machineMenuSettingsAdjust Memory slider to 256Click: OK.
  3. Assign less VRAM to Whonix-Gateway: VirtualBoxclick a VMSettingsDisplayGraphics ControllerAdjust slider for Video Memory to 16OK.
  4. Restart Whonix-Gateway.
  5. Start Whonix-Workstation.
  6. Whonix-Gateway is now serving Whonix-Workstation but operating with less RAM.
  7. To reconfigure or upgrade Whonix-Gateway later, use Whonix-Gateway Graphical Administration Mode as documented below.

Whonix-Gateway Graphical Administration Mode[edit]

Follow these steps in order to upgrade Whonix or change Tor settings:

  1. Shut down all VMs.
  2. Allocate default RAM to Whonix-Gateway. (Increase Virtual Machine RAM)
  3. Allocate default VRAM to Whonix-Gateway.
  4. Start Whonix-Gateway.
  5. The user will now have access to a graphical interface of Whonix-Gateway with Xfce.
  6. Perform administrative tasks such as upgrades and/or changing Tor settings.
  7. Shutdown Whonix-Gateway.
  8. Apply RAM Saving Mode as described above.

Done. The user has successfully upgraded or changed settings using a graphical interface of Whonix-Gateway with Xfce.

Whonix-Workstation CLI RAM Saving Mode[edit]

Whonix-Workstation CLI can be run with as little as 256 MB of RAM when the Xfce desktop environment is not used. However, resource-intensive operations like upgrades can cause the virtual machine to freeze.[1] It is recommended to allocate more RAM, around 450 MB, during upgrades, which should be more than sufficient.

Whonix-Workstation Xfce RAM Saving Mode[edit]

Whonix-Workstation Xfce can be run with as little as 512 MB of RAM. However, resource-intensive operations like upgrades can cause the virtual machine to freeze.[1] During upgrades, it is recommended to allocate more RAM, around 1280 MB, which should be more than sufficient. It's important to note that in this configuration, the VM might freeze due to low RAM, and certain applications, especially browsers like Tor Browser, may experience reduced performance, particularly when numerous browser tabs are open simultaneously.

Alternatives[edit]

  • RAM Saving Tips: Troubleshooting, Low RAM Issues
  • Whonix-Gateway Xfce RAM Saving Mode: Whonix-Gateway Xfce can run with as little as 512 MB of RAM. However, resource-intensive operations like upgrades can cause the virtual machine to freeze.[1] For upgrading, you can increase the RAM/VRAM as described in the instructions for Whonix-Gateway Graphical Administration Mode.
  • Whonix with CLI: Advanced users who are comfortable using Whonix with the command-line interface (CLI) can choose to permanently set this option.
  • Experiments: Users can experiment with RAM assignments lower than 256 MB. We encourage you to share your results.

See Also[edit]

Footnotes[edit]

  1. 1.0 1.1 1.2 1.3 For instance, kernel package upgrades that rebuild the initrd.

We believe security software like Whonix needs to remain open source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!