Virtualbox Multiple Workstations, Whonix 12 broken (?)

Can someone please update the wiki on how to run multiple workstations
with one gateway for virtual box as it seems to be broken.

The old version said to

VirtualBox -> Settings -> Network -> Adapter 1 -> Advanced -> Mac Address ->
Create a new MAC address (press the green round arrow icon) -> Ok.

GUI
kdesudo kwrite /etc/network/interfaces

Terminal
sudo nano /etc/network/interfaces

and change the last octet. E.g. 10.152.152.11 to 10.152.152.12 or etc

This has now been changed to just

VirtualBox -> Settings -> Network -> Adapter 1 -> Advanced -> Mac Address ->
Create a new MAC address (press the green round arrow icon) -> Ok.

which does not yeild a new LAN IP for the second workstation.

When useing

GUI
kdesudo kwrite /etc/network/interfaces

Terminal
sudo nano /etc/network/interfaces

the result is

interfaces(5) file used by ifup(8) and ifdown(8)

Include files from /etc/network/interfaces.d:

source-directory /etc/network/interfaces.d

My solution is to

GUI
kdesudo kwrite /etc/network/interfaces

Terminal
sudo nano /etc/network/interfaces

Delete everything in the file and Copy&Paste or type in the following

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.152.152.1*
netmask 255.255.192.0
gateway 10.152.152.10

*=Change to any number but 1

Restart the service with
Sudo service networking restart

Check the changes
Sudo ifconfig

This will cause the network manager icon to change to unmanaged.

If anyone has any other input please let me know. I broke a entire test build
by upgrading from Whonix 11 to Whonix 12 because of the changes made to the network management, all Workstations reverted to 10.152.152.11 after upgrade.

Done. Instead of /etc/network/interfaces, use /etc/network/interfaces.d/30_non-qubes-whonix

1 Like