Jump to: navigation, search

Manually Create Whonix VM Settings

Introduction[edit]

Advanced users only!

The following instructions are useful, if you have a backup of Whonix .vmdk hard disk images but want to restore them. This could be the case if your VM settings file is damaged or missing for some reason or if you only made a backup of the .vmdk files.

In case you want to use other operating systems behind Whonix-Gateway, other than the default Whonix-Workstation, then rather read the Other Operating Systems page.

Whonix-Workstation[edit]

Easy[edit]

Easiest, but least secure option.

Create a VirtualBox VM.

VirtualBox -> Machine -> New -> Next -> Enter Name -> Enter Operating System and Version (ex: Debian 32 bit) -> Next -> define RAM -> Next -> attach your existing hdd -> Next -> Create

Switch VirtualBox VM settings.

Choose the newly created VM -> Settings -> System -> Motherboard -> Hardware Clock in UTC

System -> Processor -> Enable PAE/NX if available

USB -> uncheck Enable USB controller

Network -> Adapter 1 -> attached to Internal Network (Important!)

Network -> Adapter 1 -> Name (of Internal Network) (Important!): Whonix

-> OK

More Security[edit]

General[edit]

Combine the information from this chapter to the Easy chapter.

Find out the VM name you are using.

vboxmanage list vms

Apply these settings. [1]

VBoxManage modifyvm "yourvmname" --synthcpu on
VBoxManage modifyvm "yourvmname" --acpi on
VBoxManage modifyvm "yourvmname" --ioapic on
VBoxManage modifyvm "yourvmname" --rtcuseutc on
VBoxManage setextradata "yourvmname" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"

Disable clipboard sharing. Only matters if guest additions are installed which is recommended against. Just in case.

VBoxManage modifyvm "yourvmname" --clipboard disabled

Disable Drag'n'Drop support. Only matters if guest additions are installed which is recommended against. Just in case.

VBoxManage modifyvm "yourvmname" --draganddrop disabled

It would be prudent if you verify, that we haven't forgot any settings on this wiki page compared to settings we are using in Whonix source code. If you are interested, click on Expand on the right.

In Whonix source code look into build-steps.d/2500_create-vbox-vm for the functions general_setup, workstation_specific. Apply any missing settings from build-steps.d/2500_create-vbox-vm. You can and should drop the "sudo -u $USERNAME".

The following settings are not required (because recommended earlier or done by the gui creation process):

  • --name
  • storagectl
  • storageattach
  • --memory
  • --pae
  • --intnet1
  • --cableconnected
  • --macaddress1
  • --audiocontroller
  • --audio
  • --rtcuseutc

Whonix-Workstation Specific[edit]

Nothing to do yet.

Whonix-Gateway[edit]

Easy[edit]

Easiest, but least secure option.

Create a VirtualBox VM.

VirtualBox -> Machine -> New -> Next -> Enter Name -> Enter Operating System and Version (ex: Debian 32 bit) -> Next -> define RAM -> Next -> attach your existing hdd -> Next -> Create

Switch VirtualBox VM settings.

Choose the newly created VM -> Settings -> System -> Motherboard -> Hardware Clock in UTC

System -> Processor -> Enable PAE/NX if available

USB -> uncheck Enable USB controller

Network -> Adapter 1 -> NAT

Network -> Adapter 2 -> attached to Internal Network (Important!)

Network -> Adapter 2 -> Name (of Internal Network) (Important!): Whonix

-> OK

More Security[edit]

General[edit]

Combine the information from this chapter to the Easy chapter.

Find out the VM name you are using.

vboxmanage list vms

Apply these settings. [1]

VBoxManage modifyvm "yourvmname" --synthcpu on
VBoxManage modifyvm "yourvmname" --acpi on
VBoxManage modifyvm "yourvmname" --ioapic on
VBoxManage modifyvm "yourvmname" --rtcuseutc on
VBoxManage setextradata "yourvmname" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"

Disable clipboard sharing. Only matters if guest additions are installed which is recommended against. Just in case.

VBoxManage modifyvm "yourvmname" --clipboard disabled

Disable Drag'n'Drop support. Only matters if guest additions are installed which is recommended against. Just in case.

VBoxManage modifyvm "yourvmname" --draganddrop disabled

It would be prudent if you verify, that we haven't forgot any settings on this wiki page compared to settings we are using in Whonix source code. If you are interested, click on Expand on the right.

In Whonix source code look into build-steps.d/2500_create-vbox-vm for the functions general_setup, workstation_specific. Apply any missing settings from build-steps.d/2500_create-vbox-vm. You can and should drop the "sudo -u $USERNAME".

The following settings are not required (because recommended earlier or done by the gui creation process):

  • --name
  • storagectl
  • storageattach
  • --memory
  • --pae
  • --intnet1
  • --cableconnected
  • --macaddress1
  • --audiocontroller
  • --audio
  • --rtcuseutc

Whonix-Gateway Specific[edit]

Combine the information from this chapter to the Easy and the General chapter

VBoxManage modifyvm "$VMNAME" --natdnsproxy1 on
VBoxManage modifyvm "$VMNAME" --natdnshostresolver1 on
VBoxManage modifyvm "$VMNAME" --natdnspassdomain1 off

Footnotes[edit]

  1. If you want to know what these settings are good for, see build-steps.d/2500_create-vbox-vm in Whonix source code folder.


Log in | OpenID | Contact | Impressum | Datenschutz | Haftungsausschluss

https | .onion [note] | Mirror | Mirror

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

Whonix (g+) is a licensee of the Open Invention Network. Unless otherwise noted above, content of this page is copyrighted and licensed under the same Free (as in speech) license as Whonix itself.