

Note: You can follow the steps below for every virtual machine that you want to add on the network to communicate with the host machine.īack at the virtual box manager interface, select your guest virtual machine such as Ubuntu 16.10 server or CentOS 7 and click on the Settings menu. Set Guest Static IP aAddress Configure Virtual Machine Network Settings Now click OK on all network settings interfaces below to save the changes. But I recommend using a static IP address for the virtual machines. In the next interface, you can configure the DHCP server that is if you want the guest machines to use a dynamic IP address (make sure it is enabled before using it). Note: The IPv4 address in the interface below is the IP address of your host machine. You can as well change the values as per your preferences, such as the network address, network mask, etc. If you want, you can remove it by using the - button in the middle and to view the network details/settings, click on the edit button. Set Guest Networkīelow is a screen shot showing a new host-only network has been created called vboxnet0. Then use the + sign on the right to add a new host-only network. Go to File –> Preferences or hit Ctrl + G: Virtualbox Preferences Windowįrom the following interface, there are two options choose Host-only Networks by clicking on it. Create a Network For Guests and Host MachineĪt the Virtualbox manager interface below, start by creating a network on which the host and guests will operate. Important: Always set the first adapter to communicate with the host and the second adapter to connect to the Internet. The default network card ( Adapter 1) is normally used to connect the guest machines to the Internet using NAT via the host machine. In order for the guest and host machines to communicate, they need to be on the same network and by default, you can attach up to four network cards to your guest machines. Power off the virtual machines as you perform the configurations up to the step where your required to turn them on.You must have installed a guest operating system such as Ubuntu, Fedora, CentOS, Linux Mint or any of your choice in the Oracle virtual box.A working Oracle Virtualbox installed on Host machine.

Virtual Machine OS – CentOS 7 and Ubuntu 16.10.In this article, we will describe the simplest and direct method of setting up a network for guest virtual machines and the host in Linux. Once you have installed different operating systems in Oracle VirtualBox, you may want to enable communication between the host and the virtual machines.
