You are not logged in.

#1 2011-11-21 22:56:23

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

No internet connection under VirtualBox

I'm new to Arch Linux and I just installed it, but I want to give it a try.
For some reason, I can't connect to the internet.  "ping" fails, but "ifconfig -a" does return with "eth0"
Any thoughts?
Thanks to all posts!

Offline

#2 2011-11-22 02:58:09

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: No internet connection under VirtualBox

Just for clarification reasons, did you install Arch in Virtualbox or Virtualbox on Arch?


Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#3 2011-11-22 03:27:35

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: No internet connection under VirtualBox

I installed arch in vbox

Offline

#4 2011-11-22 04:11:29

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,232

Re: No internet connection under VirtualBox

When you set up the virtual machine, what type of networks did you set up (NAS, Bridged or Host Only)?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-11-22 14:06:59

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: No internet connection under VirtualBox

ewaller wrote:

When you set up the virtual machine, what type of networks did you set up (NAS, Bridged or Host Only)?

I tried all of them, but none worked.

Offline

#6 2011-11-22 14:28:18

TheHebes
Member
From: New England
Registered: 2011-07-07
Posts: 138

Re: No internet connection under VirtualBox

It may help to know the host system. My first guess (if your on a Linux box) is that the networking drivers (vboxnetflt) are not loaded. You can load them with

sudo modprobe vboxnetflt

On windows, I believe that you load them during installation (I think?)
When you install I believe that it needs to look something like this:

VirtualBox.exe -msiparams ADDLOCAL=...VBoxNetwork...

Laptops:
MSI GS60 Ghost
Asus Zenbook Pro UX501VW
Lenovo Thinkpad X120e

Offline

#7 2011-11-22 15:54:47

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: No internet connection under VirtualBox

TheHebes wrote:

It may help to know the host system. My first guess (if your on a Linux box) is that the networking drivers (vboxnetflt) are not loaded. You can load them with

sudo modprobe vboxnetflt

On windows, I believe that you load them during installation (I think?)
When you install I believe that it needs to look something like this:

VirtualBox.exe -msiparams ADDLOCAL=...VBoxNetwork...

Under Device Manager (Sadly, my host is Windows), All the VBox network adapters appear to be working and enabled.

Offline

#8 2011-11-22 16:00:31

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,232

Re: No internet connection under VirtualBox

Spartacus1 wrote:

...For some reason, I can't connect to the internet.  "ping" fails, but "ifconfig -a" does return with "eth0"...!

You say you have tried them all.  Which one are you using now?

If your host computer is part of a home network which is served by a router, I suggest you try NAT.

How are you bringing up the network?
Can you post the output of ifconfig -a  (You had mentioned that it shows the interface, but there is more information there.

BTW, you should start using ip in lieu of ifconfig 
Try ip addr

Are you using dhcpcd or dhclient to obtain an address?  Are you using static addresses?

What address did you try to ping ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2011-11-22 16:11:23

Spartacus1
Member
Registered: 2011-11-21
Posts: 23

Re: No internet connection under VirtualBox

ewaller wrote:
Spartacus1 wrote:

...For some reason, I can't connect to the internet.  "ping" fails, but "ifconfig -a" does return with "eth0"...!

You say you have tried them all.  Which one are you using now?

If your host computer is part of a home network which is served by a router, I suggest you try NAT.

How are you bringing up the network?
Can you post the output of ifconfig -a  (You had mentioned that it shows the interface, but there is more information there.

BTW, you should start using ip in lieu of ifconfig 
Try ip addr

Are you using dhcpcd or dhclient to obtain an address?  Are you using static addresses?

What address did you try to ping ?

I tried running "dhcpcd" and I got "ping" to work (I was ping-ing the Google public DNS server).
Thanks for all the help!

Offline

Board footer

Powered by FluxBB