You are not logged in.
Hi,
I have virtualbox installed in Ubuntu and I'm trying to configure a virtual install of Arch. I've been to the Archwiki, but I think all of the directions are assuming a phyical installation and not virtual, so when I try to follow the instrutcions, nothing seems to work. I have the virtual Arch up and running, but I have no internet connectivity, I cannot ping IP's nor domain names. I have comcast cable internet and a router/modem using dhcp to hand out ip's. Here are a collection of configs I've been playing with and their state as of right now.
/etc/hosts:
#
# /etc/hosts: static lookup table for host names
#
#<ip address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
# End of file
networking section of /etc/rc.conf
lo="lo 127.0.01"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
/etc/resolv.conf
#
# /etc/resolv.con
#
#search hsd1.co.comcast.net
#nameserver 192.168.0.1
# End of file
I've attempted to understand the basic purpose of each file, but it has come to nothing because everything I've tried has failed. My googling abilities have also failed me, I was not able to find any help on getting the network configured in a virtual install of Arch (a search of the arch forums didn't yield anything helpful). Maybe I'm blind, I'd appreciate any help, either a link to topic or maybe telling me how to configure Arch to receive my host computer's internet connection.
Thanks
Offline
I suppose the problem is not with the arch box but rather with the configuration on your ubuntu box. You must use either host interface network or NAT and I don't know how this things come on Ubuntu. You might want to check our wiki - there is a nice VirtualBox wiki entry. Tell us how you have configured your Ubuntu for bridging or NAT.
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Ahh, thank you for that. Knowing that I have to configure Ubuntu correctly might just be the trick. However, I do have a guest windows xp account that functions correctly.
I have NAT selected for both my guest account Windows XP and Arch, and since it isn't working in only Arch, I'm wondering if that means it must be a configuration problem with either my Arch install, or how it deals with NAT. Maybe I should just try the bridge method.
Last edited by bseymour42 (2007-12-03 21:01:06)
Offline
virtualbox uses natting, and sets up a dhcp server for the virtual machine... dhcpcd eth0, should work..
if it does just change this
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
for this
eth0="dhcp"
if it doesn't pleas post the output of `ifconfig`
Offline
I've set eth0="dhcp" yet I still don't have any connectivity.
ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:9E:27:78
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:1008 (1008.0 b)
Interrupt:11 Base address:0xc020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1296 (1.2 Kb) TX bytes:1296 (1.2 Kb)
Offline
Try this to replace networking stuff in rc.conf
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
ROUTES=(!gateway)
Offline
Oooh, by removing the default gateway from rc.conf (as your settings suggest) the ping command now resolves the IP of www.google.com, but now I'm getting 100% packet loss.
My ifconfig also changed because of that
eth0 Link encap:Ethernet HWaddr 08:00:27:9E:27:78
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1180 (1.1 Kb) TX bytes:907 (907.0 b)
Interrupt:11 Base address:0xc020
and my resolv.conf
# Generated by dhcpcd for interface eth0
search chn.comcast.net
nameserver 10.0.2.3
Last edited by bseymour42 (2007-12-04 01:15:29)
Offline
This is probably due to using open-source version of virtualbox and/or nat. You can try to ping from your xp client and it will probably time out as well so as long as you can open a webpage in arch ( once you get X and a browser) it sounds it may be working.
Offline
Excellent! What you've said about pinging in XP is correct. Now I'm able to use pacman Thanks for your help everyone. Case closed.
Offline
Hope you switch to arch soon
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline