

To do this, do a search for Windows Defender Firewall and then click on Allow an app or feature through Windows Defender Firewall. In order to get your networking to work you might need to make some changes to the Windows Firewall. On the virtual machine, you can once again open a command prompt and run the ipconfig command and you should see your new Ethernet adapter configured on the same subnet as what was seen on your host for the Host-Only Network. Then you can click the OK button and restart the virtual machine.

Once you are there you can check the box that says Enable Network Adapter and then select Host-only Adapter where it says Attached to. If you are already using Adapter 2 for something else, then you can go to Adapter 3 instead etc. When you get to the settings for the VM, go to the Network section on the left and then click on the tab that says Adapter 2. To add this adapter, the VM will need to be powered off. To configure the virtual machine to communicate on this network, you will need to add an additional network adapter from the virtual machine’s settings. This is the subnet you want to use to communicate with the host computer over the network. Running ipconfig on the host shows a VirtualBox Host-Only Network Ethernet adapter with an IP address of 192.168.56.1. If you were to run the ipconfig command on a virtual machine, you would get a result similar to the image below (Your IP address will most likely differ than the example).Īs you can see, the VM has an Ethernet adapter with an IP address of 10.0.2.15 and is using a class C subnet mask of 255.255.255.0. They VMs will also be able to communicate with each other on their shared internal network.īut what if you want to share files between your host and virtual machine? One method is to enable the Shared Folders feature on VirtualBox as seen in this video.īut if you want to configure your virtual machines to communicate with each other as if they were physical machines on the same network as your host computer then you can setup their network adapters so they can communicate on the same network as your host.īy default, VirtualBox VMs are configured to use NAT (Network Address Translation) to share the internet connection that they host PC is using. You can create as many VMs as your host computer’s hardware can handle and these virtual machines will be able to use the host computer’s internet connection to go online.

VirtualBox is Oracle’s free desktop virtualization platform that you can run on your Windows PC and create your own virtual machines for purposes such as testing new operating systems and software etc.
