Use the host-only adapter to access virtual machines in virtualbox on Mac.

Source: Internet
Author: User

Host system: Mac OS X 10.8.3

Virtual Machine System: Ubuntu 12.04.2 lts

Virtual Machine: virtualbox 4.2.10

Objective: To enable the host to freely access the virtualbox Virtual Machine SVN server when the network is disconnected

Method: Step 1: Open the main interface of virtualbox, choose virtualbox in the upper left corner of the screen> preference Settings> network> Add a host-only network vboxnet0 by clicking the Add icon on the right. (skip this step if any) click the set button on the right to enter the host Virtual Network Interface (a) IPv4 address (I): 192.168.56.1ipv4 network mask (m): 255.255.255.0ipv6 address (P): NULL IPv6 network mask length (L ): 0 DHCP server (d) Select Start server address (R): 192.168.56.100 server network mask (m): 255.255.255.0 minimum address (l): 192.168.56.101 maximum address (u ): 192.168.56.101 (the maximum value here can be set to 254, to avoid floating setting the same value as the minimum address) Step 2: click Settings on the virtualbox Main Interface (s) -> network adapter 1-> click Start network connection (e) connection mode (a): Only host (host-onl Y) Adapter Interface Name (n): vboxnet0) advanced Control Chip (t): pcnet-fast III (am79c973) hybrid mode (P): reject MAC address (m): The system can access the network cable randomly (c ): select the preceding two steps to start the VM. Run the ifconfig command to check that the IP address is 192.168.56.101, And the VM is successfully pinged! When the Virtual Machine SVN server is started, the host can smoothly access the Virtual Machine SVN service. As for the demands for VM access to hosts and the Internet, further research is required.

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.