I have installed several systems on the VirtualBox Virtual Machine in Ubuntu. Because the system accesses the Internet in VirtualBox by default. In this way, virtual machines can access the external network, but the external network cannot access the virtual machine, and even the host machine cannot access the virtual machine. In this way, I connect to the virtual machine using ssh as in Windows. (In Windows, I use a vmwarevm. NAT can directly achieve mutual access between the host and the virtual machine. This
I have installed several systems on the VirtualBox Virtual Machine in Ubuntu. Because the system accesses the Internet in VirtualBox by default. In this way, virtual machines can access the external network, but the external network cannot access the virtual machine, and even the host machine cannot access the virtual machine. In this way, I connect to the virtual machine using ssh as in Windows. (In Windows, I use a vmwarevm. NAT can directly achieve mutual access between the host and the virtual machine. This is also the difference between VirtualBox and VMware .)
First, let's talk about my network environment and Configuration:
Network Environment: the campus network, each host must have a network id, verified to be able to access the Internet. (For a student with a netid, the direct bridging method can be abandoned)
Host environment: Ubuntu 10.04 is installed on a laptop, VirtualBox virtual machine is used, and Ubuntu11.04 is installed on the virtual machine.
Target: the host machine can communicate with the Ubuntu of the virtual machine. Use secureCRT for connection verification.
In the default NAT mode of a virtual machine, it is not successful to connect to the Virtual Machine with secureCRT on the host machine, because in the NAT mode, the host machine cannot access the virtual machine. I have been using Baidu and Google for a while. I have said on the Internet that port ing is required, but it is useless. It seems that it is necessary to analyze the specific situation. This is when I want to give up. I was advised to enable a wireless connection on the host to connect the virtual machine. The virtual machine uses the bridging method. I tried to establish a wireless connection.
After creating the wireless network, set the connection mode of the Virtual Machine System to Bridge Adapter, and select the wireless network Adapter (eth1) as follows:
After the configuration is complete, start the virtual machine directly. In this case, the host machine can access the virtual machine. At the same time, Virtual Machine Access to the Internet is not affected.
Note: You must create a new wireless connection and then select the bridging method of the wireless network card. Otherwise, the bridge function cannot be implemented.