Sun VirtualBox The default network connectivity is NAT, but unlike VMware's NAT mode, the virtual machines created by Sun VirtualBox are not accessible to the local computer, inspired by an article on the web, I found a more convenient way to achieve the local access to the virtual machine , the steps are as follows:
1, open sun VirtualBox console;
2, click the "Settings" button;
3. Select the network setting in the setting interface;
4, click "Network Connection 2" This label, and check the following "Enable network";
5, the control chip select "PCNET-FASTIII";
6, the connection way chooses "host-only adpter";
7, the name selection default;
8, determine the exit;
9, in the Sun VirtualBox console through the "Management" menu to open "Global settings";
10, click on "Network";
11, in the pop-up interface, click on the screwdriver icon, view the "network details" of the network segment settings;
12, start the virtual machine, the new network card IP address set in the previous step to see the network section;
13, in this machine ping virtual machine second NET card IP address for testing;
14. Complete