Environment:
Host: Windows 7, single network card;
Virtual machine: UBUNTU-14.04.1-SERVER-AMD64;
Host Internet is connected router, IP address is automatically obtained through the DHCP service;
Basic situation:
Ubuntu Server is a new installation. After the installation is complete, it is possible to ping the detox host through a virtual machine, but the host ping does not pass the virtual machine. Also tried to shut down the firewall, but did not work, and finally found that there is no relationship with the firewall.
Correct configuration:
First set up the virtual machine's network, in the Oracle VM VirtualBox Manager Select the newly installed Ubuntu server server, click "Settings"-"network", such as:
- The "control chip" default is OK.
- "Interface Name" This corresponds to my computer is currently available on the network card (wireless card notebook).
Host Network settings:
Open Network connections to see a network connection as shown:
Right-click on it and select Properties to see the following:
But when you open, the default "VirtualBox bridged Networking Driver" is not checked, here to select it, click "OK". After this step is complete, restart the virtual machine network or restart the virtual machine, you will find that the virtual machine's IP and host IP in the same network segment, and can also communicate with each other.
command to restart the virtual machine nic:sudo/etc/init.d/networking Restart
Use ifconfig inside the virtual machine to view network information as shown in:
The host network information is as follows:
Ubuntu Server Virtual Machine network configuration within the VirtualBox