erlenmeyer316
10/10/2017 - 5:05 PM

Host Accessible Linux Virtual Machine

These steps help create a host accessible machine using virtual box

#Add a Host Only Network to Virtual Box
1. Go to the VirtualBox Application Preferences and click the Network Tab.
2. Under the Network tab, choose "Host Only Networks" and add a new network
3. Use the following settings: Ipv4 Address: 192.168.56.1, Ipv4 Network Mase: 255.255.255.0

#Add a 2nd Network Adapter to your Virtual Machine
1. Click settings for your Virtual Machine and choose the Network Tab.
2. Set the 1st Network Adapter Attached To NAT
3. Set the 2nd Network Adapter Attached to Host Only Network Adapter
4. Set the 2nd Network Adapter Name to the Host Only Network you created previously (vboxnet0)

#Add the 2nd Network Adapter to you Interfaces
1. Run ifconfig to determine the name of your secondary network adapter (enp0s8)
2. Open /etc/network/interfaces in an editor
3. Add the following to the file

auto enp0s8
iface enp0s8 inet static
address 192.168.56.101
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255

4. Save the file
5. Restart the computer

#Add the Virtual Machine to your localhost file
1. 192.168.56.101  virtualbox