Android uses a stripped down version of Linux that lacks native virtualization options like KVM. The company Oracle, the one behind VirtualBox has no plans to support Android x86 or any other hardware architecture. Thats why you are out of luck when trying to host Whonix on Android.
Now I saw that it says “Support Ethernet (DHCP only)”. After installing a dhcp-server on the Whonix Gateway it actually works!
I have installed a dhcp server on the Gateway in this way:
sudo apt-get install isc-dhcp-server
sudo dpkg-reconfigure isc-dhcp-server
Then choose eth1 as the interface to run the DHCP server on.
sudo nano /etc/dhcp/dhcpd.conf
change the config-file to only consist of the following:
option domain-name "whonix";
# Use its own DNS server:
option domain-name-servers 192.168.0.10;
# Set up our desired subnet:
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.12 192.168.1.15;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.10;
}
default-lease-time 600;
max-lease-time 7200;
Now android-x86 can automatically establish a connection through whonix.
Do you think this configuration of my dhcp server is safe? I would make a snapshot and only use the snapshot containing the dhcp server when I need to run the android-vm.
I moved the discussion about DHCP server in gateway to here:
My quick 2 cents, alyserm, is that you’re fine – although I would like to get to the bottom of why manual configuration didn’t work (it should have worked without much fuss).
PS: the footer of /etc/network/interfaces still contains deprecated network settings now that Whonix 9 is released. Albeit commented, those could be super useful in providing insights about correct values for network/subnet and broadcast. I suggest modifying those things to make them helpful.