Skip to main content

How to solve internet problem for ubuntu in virtual box?

You can access internet on virtual box by two way one is bridge network or host only. today i show you the host only option.


  1. First you need to create a Host only network in virtual box
    1. virtual box -> file -> preferences -> network -> Host-only network 
    2. Click add button
    3. Click DHCP, click Enable Server

    4. Select virtual OS, go to setting -> network

  2. Now login to your ubuntu os and do the following 
          sudoedit /etc/network/interfaces
  1. 
    # The loopback network interface
    auto lo
    iface lo inet loopback
    # NAT
    auto eth0
    iface eth0 inet dhcp
    # Host only
    auto eth1
    iface eth1 inet dhcp
After VM reboot hope everything worked fine.


Comments

Popular posts from this blog

How to Change Git Remote Origin: A Step-by-Step Guide

Introduction Changing the remote origin of your Git repository is a common task, especially when you need to move your repository to a different hosting service or update its URL. In this step-by-step guide , we will walk you through the process of changing the remote origin of your Git repository. Prerequisites Before you begin, make sure you have the following: A Git repository with the current remote origin. A new URL or location where you want to set the new remote origin. Step 1: Verify the Current Remote Origin URL Open your terminal and navigate to your Git repository's root directory. Use the following command to view your current remote configuration: git remote -v This command will display the current remote origin URL, fetch URL, and push URL. Step 2: Remove the Current Remote Origin (Optional) If you wish to completely remo...

Cassandra Installation on WindowsXP

1. About Cassandra : Cassandra is an open source distributed database management system. It is an Apache Software Foundation top-level project designed to handle very large amounts of data spread out across many commodity servers while providing a highly available service with no single point of failure. It is a No SQL solution that was initially developed by Facebook and powers their Inbox Search feature. Want to Know more? Visit Cassandra database Apache Cassandra 2 . Cassandra Installation on WindowsXP First we need to download Cassandra. For Download Cassandra Click this link Download . Now unzip the file and put it into a drive where you want to install Cassandra .you can change the folder name cause deafult name is "apache-cassandra-0.5.1" .its to long to remember easily.So i change my unzip folder name to "cassandra". Now we have our Cassandra in a spacific drive.Lets go install and configur Cassandra database on windowsXP .You need to insta...