How to Configure Network Between Guest VM and Host in Oracle VirtualBox

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

59 Responses

  1. Nguyen Dang Bao Long says:

    Thanks for the great tutorial! But I have an issue, everything works fine for me except when I do a ping from my guest VM to other website on the internet (ex., 100% of the sending packet was loss. I don’t know how to fix this.

    I’m using windows 10 for my host and Ubuntu Server 18.04 for my guest VM.

    I really need your help.
    Thanks in advance.

  2. Sam says:

    Fantastic tutorial! It was a little confusing that you just included a link to the tutorial for “configure static IP address”. Also, that tutorial’s screenshots do not match what I saw in CentOS 7. The values are in quotation marks in the screenshots, but there aren’t any quotation marks around the values in my CentOS 7 files.

  3. Aster says:

    Thank you. This helped me a lot

  4. Nick Fenwick says:

    I found that when I got to add a Host-only adapter to my VM’s Network, I could not select any Name in the dropdown, and the settings were invalid. As mentioned at you need to close the VM’s settings, go to File->Host Network Manager, and create a network there.

    Then, go into the VM’s Network Settings and you can choose the newly created Host Only network there. This may be what the first section in this article “Create a Network For Guests and Host Machine” was trying to do, but the UI has changed so much I found it impossible to follow.

  5. Ravi Yadlapalli says:

    Hi Aaron

    I do not see ifcfg-enp0s8 file in network-scripts location and unlike in your screenshots, I have no IP address for enp0s3 & enp0s8 attached but virbr0 has IP. ( Is that default?)

    I wonder which file to update now for static IP configuration to connect from win10 through Putty?

    Looking forward for your help. Thanks

  6. Alex says:

    for NAT add:

    auto enp0s3
    iface enp0s3 inet dhcp
  7. Venkat Thammi says:

    Hello, I have created multiple linux machines on Oracle VM box, it has internal connectivity each other and also have internet access from just one linux machine but unable to access internet from other linux machine. It will be great help if you can suggest to access internet from other machine without disturbing internal connectivity.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.