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.