There are a lot of virtual machines under Mac, Parallels, VMware Fusion, virtual box are good, parallels is currently trying to feel the best, Fusion installed 64-bit system driver support seems to be imperfect, And in the Mixed mode virtual machine application icon blur, virtual box is worse than the previous two, but on the one hand is open source free, but also the most important aspect: can be launched in the command line mode, so to simulate a cluster, do not show a lot of windows, direct SSH login control, very convenient, But virtual Box network configuration is far from the former two, but not the VM can not access the host, or the virtual machine can not surf the Internet, host-only mode configuration and a little complex, try a half day, today finally adjusted, the following is the dinner:
Environment Description:
Host: Mac OS X Yosemite
Virtual Box: Version 4.3.20 r96990
Virtual machine: Ubuntu Server 14.04.1 64bit
Virtual Box configuration:
Add the first network card first, configured as Nat mode, and configured as follows:
Then add a second NIC, configured as Host-only mode, configured as follows:
The next point, so that after the configuration is complete, Ubuntu will not appear in the second NIC, need to manually add, the name of the network card is not vboxnet0, but eth1, the/etc/network/interfaces configured as shown
Next, Ping the virtual machine's Class C LAN IP from the host (this should be host-only)
To attempt to ping a host from a virtual machine
It all went through.
Virtual Box host-only network configuration under Mac