Wednesday, June 8, 2016

Networking between Host Computer and VM In VirtualBox

Hi friends,

How to access Virtual machine in Oracle VM VirtualBox from host computer to?



If you have a VM installed in virtual box, of your host system and want to access it from your host system. If your system is connected to a switch you can set network attached option as bridge and can access it in your network as a remote system.

But if you have a single system and want to access VM installed in virtual box of your host system without a switch.

Here I will show you how to do it, use VirtualBox host only Ethernet network adapter for communicating between VM and your Host computer. Host-only networking is another networking option in virtual box network.

With bridged networking option, the virtual machines can communicate with internet through physical Ethernet.

But as the name indicating there is only Host for networking. This adapter will connect VM in Virtual box and Host system. No outside connection (Internet or Other network).

Host only network adapter is for internal networking between VM and your Host computer only.

Lets check how to do so.

1- Open Network and Sharing center > Adapter Settings on your host computer and look for VirtualBox Host-Only Network adapter.

2- Double click on Internet Protocol Version 4. Put a Static IP. DNS and gateway are optional.

3- Now start Virtual Box application, go to  Settings > Network. Select Host-Only Adapter from Attached to drop down menu, and click OK.

4- Now start VM in Virtual Box and go to Network Adapter settings, Right click and select Properties.


5- Double click on Internet Protocol Version 4. Assign a Static IP address of the same range that you assigned to the your host system. DNS and gateway are optional.


6- Open command prompt then try to ping host and vice versa. Refer the screen shots below.


My Host (Windows 7) Static IP :- 10.10.44.100
Virtual Box VM (Windows 10) Static IP :-
10.10.44.254


Virtual box Windows 10 is able to ping Host Windows 7 and vice versa

ENJOY! and Stay connected.

2 comments :