Communication between hosts and virtual systems (without network cables)

Source: Internet
Author: User


Environment:
HOST: openSUSE 12.2
Virtual Machine: VirtualBox 4.1.22
Virtual System: ubuntu 12.04
Www.2cto.com
Step 1: Set VirtualBox
1) Management (F) --> global settings (P) or ctrl + g
2) Select "network"
3) Add "Host-Only"

 
4) Cancel DHCP

 
5) Select "Host-Only" for the NIC"
 

Step 2: ubuntu network settings

# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).

# The loopback network interface
Auto lo
Iface lo inet loopback

# The primary network interface
Auto eth0
Iface eth0 inet static
Address 192.168.56.99
Netmask 255.255.255.0
Gateway 192.168.56.1
Www.2cto.com
In this way, the host can be connected to the virtual system without a network cable.
The host uses ifconfig eth0 192.168.56.90 to set the IP address so that the IP address is in the same CIDR block as the virtual system.
In this way, the virtual system can also access the host.

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.