Page 1 of 1

wrong nic's in virtualbox, can't connect to network

Posted: 16. Aug 2009, 23:43
by zogthegreat
Hi everyone,

I installed Virtualbox form the rpm in the following manner:

rpm ivh VirtualBox-3.0.4_50677_fedora11-1.x86_64.rpm

It installs fine, however, when I start setting up the virtual guest, I have a problem with the NIC's. The NIC's that Virtualbox offers me are not on my machine. Here are the NIC's that are offered:

PCnet-PCI II (Am79C970A)
PCnet-FAST III (AM79C973)
Intel PRO/1000 MT Desktop (8254OEM)
Intel PRO/1000 T Server (82543GC)
Intel PRO/1000 MT Server (82545EM)

I have tried all five, but none seem to work. Here is the output of my lspci:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)


Does anyone have any suggestions where my problem is?

Thanks

zog

Re: wrong nic's in virtualbox, can't connect to network

Posted: 16. Aug 2009, 23:48
by Perryg
These are virtual network adapters. Select the PCnet-FAST III
Then select NAT and save.
Start the guest and it should connect to the internet.

Re: wrong nic's in virtualbox, can't connect to network

Posted: 17. Aug 2009, 01:00
by zogthegreat
Hi Perryg,

I did as you suggested, and it is sort of working. My problem seemed to be that I had set a static ip on the guest. When I set it to DHCP, and did /etc/init.d/network restart I got an ip of 10.0.2.15 on the guest, (my network is 192.168..). I can connect to my local network via ssh as well as the net on the guest, however, I can not ssh in from my workstation.

First here is the output of lspci on the guest:

00:03.0 Ethernet controler: Advanced Micro Devices [AMD] 79c970 [PCnet32 Lance] (rev 40)

Got any other suggestions?

Thanks

zog

Re: wrong nic's in virtualbox, can't connect to network

Posted: 17. Aug 2009, 01:07
by Perryg
The address that you show is for NAT and is what you get from VBox. If you have a router then you can use Bridged instead of NAT and easily changed in the guest settings. Start with DHCP until you are sure that it is working to get to the Internet, then change it to a static address in the same range as the host. Restart the network and all should work at that point. If you don't have a router then you will need to add a second adapter (on the guest) for host-only to be able to work locally on the host.

Re: wrong nic's in virtualbox, can't connect to network

Posted: 17. Aug 2009, 01:30
by zogthegreat
Thanks Perryg, that seemed to do the trick. Everything is working fine now.

zog

btw, would you have any links for system performance tuning for a Fedora host? My virtual machine, (CentOS 5.3, no GUI), seems somewhat slow, takes about two minutes to boot. My host hardware is as follows:

Gigabyte MA770-UD3 w/ Phenom x4 9950
6 gig of Corsair DDR 800 in unganged mode
Seagate 500 gig SATA

I was thinking to install a 40 gig SATA that I have and mount my /tmp and /swap on it. I usually use hardware raid, not terribly happy with the performance of a single drive.

Re: wrong nic's in virtualbox, can't connect to network

Posted: 17. Aug 2009, 01:56
by Perryg
Usually when a Linux OS takes that long to boot it is looking for something. Usually trying to verify the host name. Is the host name of the OS in the /etc/hosts file?
Also if you can watch and see what it hangs on you can get an idea of where to look.