Virtual box VM network configuration-virtual box VM configuration Online

Source: Internet
Author: User

Limitations:

Network:company

Host:dhcp

Host NIC bridge:disabled

Network access:limited

========================

Based on this, it might not being possible to set the VM to access Internet, & visible to host at the same time.

========================

1. Set the VM IP to "DHCP"

Vi/etc/network/interfaces

Set the VM ' s NIC in Virtual Box as network address translation (NAT)

Reboot VMs.

Now VMS can access public Internet via host ' s NIC. But host cannot access VM. You can use the Apt-get now.

--------------------------------

2. Set the VM IP to "static" and make it in the same domain as VBox ' s NIC in host

Set the VM ' s NIC in Virtual Box as host only (HOST-ONLY) network

Reboot VMs.

Now the VM cannot access Internet, but host can ping the This VM's IP. You can do your dev work using the This VM now.

Virtual box VM network configuration-virtual box VM configuration Online

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.