Access the Virtual Machine VirtualBox from the host

Source: Internet
Author: User

 

VirtualBox 4.1.2 is installed on my machine (Windows 7) and FreeBSD 8.2 is installed on VirtualBox 4.1.2. I want to access FreeBSD 8.2 on the network. I have succeeded in the past and cannot access it again, record the process to avoid further research.

After VirtualBox is installed, a NIC-virtual NIC will be allocated on Windows 7. You can see the VirtualBox Host-Only Network in the Control Panel \ Network and Internet \ Network connection. The IP address of this Nic is generally

 

 

 

Ethernet Adapter VirtualBox Host-Only Network:

 

Connection to a specific DNS suffix .......:

Local IPv6 address ......: fe80: 9849: c1ab: 2f1b: f7f2 % 18

IPv4 address ......: 192.168.56.1

Subnet Mask ......: 255.255.255.0

Default Gateway .............:

 

 

 

Generally, this Nic is not enabled.

 

Right-click VirtualBox Host-Only Network --> properties, and select VirtualBox Bridged Networking Driver in the Properties dialog box. This is to confirm that the VirtualBox Host-Only Network Nic can work.

 

In virtual machine settings, add an Adapter, select Host-Only Adapter as the connection method, and select VirtualBox Host-Only Ethernet Adapter as the interface name.

 

After FreeBSD is run, run the ifconfig command on the console to check if a NIC is missing.

 

 

 

 

BSD # ifconfig

Em0: flags = 8843 <UP, BROADCAST, RUNNING, SIMPLEX, MULTICAST> metric 0 mtu 1500

Options = 9b <RXCSUM, TXCSUM, VLAN_MTU, VLAN_HWTAGGING, VLAN_HWCSUM>

Ether 08: 00: 27: 1d: 12: ac

Inet 10.1.11.119 netmask 0xffffff00 broadcast 10.1.11.255

Media: Ethernet autoselect (1000 baseT <full-duplex>)

Status: active

Em1: flags = 8843 <UP, BROADCAST, RUNNING, SIMPLEX, MULTICAST> metric 0 mtu 1500

Options = 9b <RXCSUM, TXCSUM, VLAN_MTU, VLAN_HWTAGGING, VLAN_HWCSUM>

Ether 08: 00: 27: 06: 03: 15

Inet 192.168.56.100 netmask 0xffffff00 broadcast 192.168.56.255

Media: Ethernet autoselect (1000 baseT <full-duplex>)

Status: active

Lo0: flags = 8049 <UP, LOOPBACK, RUNNING, MULTICAST> metric 0 mtu 16384

Options = 3 <RXCSUM, TXCSUM>

Inet6 fe80: 1% lo0 prefixlen 64 scopeid 0x3

Inet6: 1 prefixlen 128

Inet 127.0.0.1 netmask 0xff000000

Nd6 options = 3 <export mnud, ACCEPT_RTADV>

BSD #


Em1 is the newly added Nic. We will set an ip address for it, ifconfig em1 inet 192.168.56.100 netmask 255.255.255.0. After the setting, ping 192.168.56.100 from Windows 7, general rules can be applied to access the Virtual Machine VirtualBox from the host machine.

Author: Nanshan Valley

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.