You are not logged in.

#1 2013-03-21 10:09:12

Kant
Member
Registered: 2013-03-21
Posts: 3

Problems with internet connection running arch on VirtualBox

Hi there,

I would like to try out arch by running it on a VM. Unfortunately I'm unable to establish a internet connection.
I configured VirtualBox' network as NAT, Intel PRO/1000 MT Desktop (82540EM). I always get "uknown host www.google.com".

ip link says:

1: lo: <LOOPBACK, UP, LOWER_UP> mtu 65536 qdisc noqueue state UNKNWON mode DEFAULT

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo_fas state UP mode DEFAULT qlen 1000
    link/ether 08:00:27:b3:9f:b2 brd ff:ff:ff:ff:ff:ff

ivconfig: no wireless externsions for eth0 an lo.


I never ever had to bother configuring a network manually. So I really don't know what adresses etc. to use configuring a internet connection.


I would be thankful for any advices.

best regards

Last edited by Kant (2013-03-24 13:37:20)

Offline

#2 2013-03-21 10:39:46

bozzarch
Member
From: france
Registered: 2012-05-20
Posts: 5

Re: Problems with internet connection running arch on VirtualBox

check dhcp

vbox is not fussy about net config IF there is a connection on the host: so if you have network and internet on the host the thing to check is the client - so suggest check DHCP - have you checked ifconfig for connection status?

Last edited by bozzarch (2013-03-21 10:44:05)

Offline

#3 2013-03-21 11:58:08

Kant
Member
Registered: 2013-03-21
Posts: 3

Re: Problems with internet connection running arch on VirtualBox

After trying random stuff I finally got it working by adding the nameserver 8.8.8.8 to /etc/resolv.cfg. Is this any bad or can I proceed installing arch just following the beginners' guide?



----

The host is connected to the internet and works properly, yes.

ifconfig says:
jHGLz4d.png

Last edited by Kant (2013-03-21 19:48:49)

Offline

#4 2013-03-22 20:16:40

babel
Member
From: Mexico City
Registered: 2012-05-21
Posts: 48
Website

Re: Problems with internet connection running arch on VirtualBox

I kind of have the same problem but outside VM.

To sum up what I've learned, you need to know the name of your interface (in this case eth0) and do:

ip link set eth0 up

In my case that wasn't enough because somehow DHCP can't configure the connection automatically, and since you don't have the proper tools like dhcpcd, your stuck at least in the automatic part of the configuration (some users says you need to type 'dhcpcd eth0', but since you don't have dhcpcd that's impossible).

My advice is to try to set an static ip: https://wiki.archlinux.org/index.php/Ne … IP_address

Cheers

Offline

#5 2013-03-22 21:36:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Problems with internet connection running arch on VirtualBox

... Which leads to my question,  How did you obtain an IP address ?  Somehow you have 10.0.2.15.


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

#6 2013-03-23 16:22:49

Kant
Member
Registered: 2013-03-21
Posts: 3

Re: Problems with internet connection running arch on VirtualBox

Well I didn't change anything manually besides adding the nameservers to resolv.conf. The IP is the one given by "default". After finishing the installation I wasn't able to ping domains again - resolve.conf was always overwritten by dhcp (I presume).
As a workaround I made a resolve.conf.head. Doesn't seem to be very elegant. Is there a more sophisticated way to get things working without any patchwork?

Offline

Board footer

Powered by FluxBB