Thank you GonzoVBX-1 for your assistance - these instructions helped alot! It took alot of searching to find a simple solution to connecting to the Internet using VirtualBox (VB). This is my step-by-step for Ubuntu 8.10 installed as a guest in VB on an XP host (Sony VAIO laptop). The goal here is to create a static IP on the Ubuntu installation using settings assigned by DHCP from VB (IP address, NetMask, Gateway) and the DNS server settings from the host.
Step 1: Determine host computer DNS server: on host machine (XP) > click on Start > Run > type command > Enter > type ipconfig /all > Enter > about halfway down in the Connection section, write down what is noted for DNS Servers - example: 192.168.1.254
Step 2: Set VB adapter to NAT: open VB > click on Settings > Network > Adapter 1 tab > checked Enable Network Adapter > Adapter Type > PCnet-FAST III (Am79C973) > Attached to NAT > MAC Address - leave as is > check Cable Connected > click OK.
Step 3: Confirm Ubuntu network connection is set for DHCP: start Unbuntu guest in VB > on the top right of the toolbar, right click on the first icon that looks like two monitors > Edit Connections > highlight Auto eth0 > Edit > click on IPv4 Settings tab. The boxes at the top for Connect automatically and System setting should both be highlighted/filled > confirm or change the Method is set to DHCP. If it's already set to DHCP, proceed to the next step. If you had to change it to DHCP, click OK, and Restart Ubuntu.
Step 4: Determine Ubuntu network settings: System > Administration > Network Tools > under the Devices tab, the default Network device shows Loopback Interface (lo) > click on the drop-down menu to the right, and change the device to Ethernet Interface (eth0). Under IP Information, write down the IP Address and Netmask. Next, click on the NetStat tab, and the default Display is Routing Table Information > click on the Netstat button to generate the settings. In the Gateway column, write down the one address that is not just zeros - example 10.0.2.2. Close out of the Network Tools.
Step 5: Set static IP on Ubuntu: return to Ubuntu network connection settings > on the top right of the toolbar, right click on the first icon that looks like two monitors > Edit Connections > highlight Auto eth0 > Edit > click on IPv4 Settings tab. The boxes at the top for Connect automatically and System setting should both be highlighted/filled > change the Method to Manual > click the +Add button > enter the IP Address, Netmask, and Gateway settings that you retrieved in Step 4. In the DNS Servers field, type in the setting you retrieved from the host computer in Step 1 > leave the Search Domains blank > click OK.
Hopefully, you are now connected - you should see the time as corrected to your time zone. This connection works whether your host computer is wired or wireless, and you should connect at this point automatically. Try to open the Firefox browser. Also, go to System > Administration > Update Manager to get all of the software updates and patches - there will be 200+ after the initial installation.
HINTS! Internet connectivity w/ Ubuntu 7.04 Guest & NAT
-
- Posts: 2
- Joined: 3. Apr 2009, 16:22
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: Ubuntu 8.10
Re: HINTS! Internet connectivity w/ Ubuntu 7.04 Guest & NAT
Thank you so much, worked perfectly
-
- Posts: 1
- Joined: 24. Jul 2009, 08:41
- Primary OS: Mac OS X Leopard
- VBox Version: OSE Debian
- Guest OSses: Debian, Ubuntu
Re: HINTS! Internet connectivity w/ Ubuntu 7.04 Guest & NAT
Mac os x 10.5.7 running VB 3.02
Installed Ubuntu 8.04 and it worked flawlessly
Installed Debian 5.02 also, but cannot for the life of me get internet to work.
ping is working, but Internet is not.
I replicated the Max os x /etc/resolv.conf and /etc/network/interfaces onto the Debian OS and
/etc/init.d/networking restart
but still no luck. I also tried to add the static configuration into interfaces but no go either.
installed the virtualboximages.com/Debian-5.0-rc2 image. everything works well including ping but internet via browser, wget apt-get is blank or slow. I imagine it's a resolv.conf issue but I am replicating what is in the host and the other ubuntu image guest and its still not working.
Would appreciate any advise.
Thanks.
Installed Ubuntu 8.04 and it worked flawlessly
Installed Debian 5.02 also, but cannot for the life of me get internet to work.
ping is working, but Internet is not.
I replicated the Max os x /etc/resolv.conf and /etc/network/interfaces onto the Debian OS and
/etc/init.d/networking restart
but still no luck. I also tried to add the static configuration into interfaces but no go either.
installed the virtualboximages.com/Debian-5.0-rc2 image. everything works well including ping but internet via browser, wget apt-get is blank or slow. I imagine it's a resolv.conf issue but I am replicating what is in the host and the other ubuntu image guest and its still not working.
Code: Select all
debian:/mnt/share# ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:75:58:52
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe75:5852/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45 errors:0 dropped:0 overruns:0 frame:0
TX packets:143 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17311 (16.9 KiB) TX bytes:17983 (17.5 KiB)
Interrupt:19 Base address:0xd020
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 B) TX bytes:560 (560.0 B)
#######################################################
debian:/mnt/share# cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 2314
#
### END INFO
nameserver 192.168.1.1
#######################################################
debian:/mnt/share# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 * 255.255.255.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth1
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth1
#######################################################
debian:/mnt/share# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth1
iface eth1 inet dhcp
#######################################################
debian:/mnt/share# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 debian.virtualboximages.virtualboximages debian.virtualboximages
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
#######################################################
debian:/mnt/share# dhclient
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth1/08:00:27:75:58:52
Sending on LPF/eth1/08:00:27:75:58:52
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.0.2.2
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 10.0.2.2
bound to 10.0.2.15 -- renewal in 36272 seconds.
#######################################################
debian:/mnt/share# traceroute debian.org
traceroute to debian.org (194.109.137.218), 30 hops max, 40 byte packets
1 10.0.2.2 (10.0.2.2) 0.339 ms 0.244 ms 0.295 ms
2 192.168.0.1 (192.168.0.1) 3.874 ms 10.237 ms 10.182 ms
3 * * *
4 77.42.129.94 (77.42.129.94) 509.643 ms 509.320 ms 1008.898 ms
5 77.42.129.20 (77.42.129.20) 1008.844 ms 1508.446 ms 1508.016 ms
6 192.168.111.2 (192.168.111.2) 2007.273 ms 49.268 ms 52.595 ms
7 12.118.94.93 (12.118.94.93) 552.100 ms 552.059 ms 205.574 ms
8 * * *
9 xe-0-0-0.par70.ip4.tinet.net (89.149.186.153) 706.030 ms 705.646 ms 1204.916 ms
10 kpn-eurorings-gw.ip4.tinet.net (213.200.85.238) 1204.481 ms 1703.512 ms 1703.405 ms
11 asd2-rou-1021.nl.eurorings.net (134.222.231.177) 1702.611 ms 2203.372 ms 351.190 ms
12 asd2 (134.222.224.22) 352.225 ms 851.886 ms 851.387 ms
13 asd2-rou-1002.nl.eurorings.net (134.222.224.30) 707.955 ms 707.904 ms 1207.494 ms
14 134.222.97.18 (134.222.97.18) 1207.063 ms 1706.885 ms 2206.835 ms
15 0.ae2.xr4.d12.xs4all.net (194.109.5.82) 1705.894 ms 2205.990 ms 2705.473 ms
16 te5-4.swcolo2.3d12.xs4all.net (194.109.12.34) 2705.026 ms 3204.803 ms 3204.314 ms
17 debian.org (194.109.137.218) 288.476 ms 790.264 ms 789.806 ms
Thanks.
-
- Posts: 1
- Joined: 11. Dec 2009, 08:49
- Primary OS: MS Windows 7
- VBox Version: OSE Fedora
- Guest OSses: window xp
Re: HINTS! Internet connectivity w/ Ubuntu 7.04 Guest & NAT
What is the difference between an ethernet cable and an ethernet "crossover" cable? I would like to wire my two computers together so that data could be transferred. Both computers have an available ethernet port. I have additional ethernet cables available. How do these cables differ from the crossover variety? How much should I expect to spend on a crossover cable?
______________
UK matrimonials
______________
UK matrimonials
Last edited by yackerena on 16. Dec 2009, 12:43, edited 1 time in total.
-
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
-
- Posts: 1
- Joined: 13. Feb 2010, 09:59
- Primary OS: Ubuntu 8.04
- VBox Version: OSE Fedora
- Guest OSses: WINDOW
Re: HINTS! Internet connectivity w/ Ubuntu 7.04 Guest & NAT
How do you make Yahoo chatrooms work through a firewall? The "help" says you can use some code to allow the chat to operate without disabling the firewall. They give the code, but no instructions and I'm hopeless with this stuff.
______________________
external keyword tool ~ keyworddiscovery.com ~ keycompete.com ~ compete.com ~ webmasterworld.com
______________________
external keyword tool ~ keyworddiscovery.com ~ keycompete.com ~ compete.com ~ webmasterworld.com