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.
- First you need to create a Host only network in virtual box
- virtual box -> file -> preferences -> network -> Host-only network
- Click add button
- Click DHCP, click Enable Server
- Select virtual OS, go to setting -> network
-
- Now login to your ubuntu os and do the following
# 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
Post a Comment