Virtual Box host-only network configuration under Mac

Source: Internet
Author: User
Tags vmware fusion

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.