Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Installing Gentoo on VMware 5.5 via win xp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Wed Jan 11, 2006 6:20 pm    Post subject: [Solved] Installing Gentoo on VMware 5.5 via win xp Reply with quote

hi. i am totally new to linux, and have never used it before i deided to install gentoo on VMware.
i have gone through the whole handbook, and everythng compiled perfectly.

However, since it is the guess OS, it is set to use NAT for connection. now that this is set, i dont know how to configure it to use the internet, and nothing will emerge for me whatsoever.
i have done all this with no help, and so im not suprised i recieve a problem really.
Currently when i boot the gentoo, after everything is loaded i get this message:

cannot default to dhcp as there is no dhcp module loaded
no configuration for eth0 <--dont even know if this is needed when using nat(?)
ERROR: problem starting needed servies
netmount was not started


If someone could help me with this, it would be greatly appreciated. im so close to the finnish line now.

Thankyou for your time.
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.


Last edited by Cyber_Ninja on Mon Jan 16, 2006 8:14 am; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jan 11, 2006 6:27 pm    Post subject: Reply with quote

make sure the pcnet32 network driver is included in the kernel or loaded if you made it a module.
emerge dhcpcd
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
troebel
n00b
n00b


Joined: 02 Jan 2006
Posts: 42
Location: Doetinchem, Netherlands

PostPosted: Wed Jan 11, 2006 8:39 pm    Post subject: Reply with quote

or, if you have installed a 64bit guest OS:
www.vmware.com wrote:
Workstation 5.5 emulates a new Ethernet adapter type (the Intel PRO/1000 MT Adapter) for Workstation virtual machines with supported 64-bit guest operating systems

_________________
d|>_<|b
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Wed Jan 11, 2006 11:54 pm    Post subject: Reply with quote

the guest OS is x86 gentoo2005.1 2.6.x kernel

i have done as the above suggests, but i am still having these problems. i added pcnet32 as a module, saved it and made it. rebooted and then i typed this after the reboot: ls /lib/modules/`uname -r`/kernel/drivers/net.
it shows me 3 .ko files... dummy.ko pcnet32.ko and s2io.ko.
so my next step is 'modprobe pcnet32' which appears to work.

if i type ifconfig, it shows me

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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)



then when i type ifconfig eth0 i get

eth0 Link encap:Ethernet HWaddr 00:0C:29:F0:47:6B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interupt: 18 base address 0x1400

and then i still cant ping any address or anything. im totally at a loss here :(
anything else i might have missed?
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Thu Jan 12, 2006 7:08 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Networking & Security.

Usually it helps to specify an ip number for the interface too.
But try editing /etc/conf.d/net and then start the nic with /etc/init.d/net.eth0 start.
If you want to use dhcp make sure dhcpcd (or an alternative) is emerged.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Thu Jan 12, 2006 11:15 pm    Post subject: Reply with quote

when i go to edit the /net, all i get is a blank file. what am i supposed to go in it?

and also i meant to say this before, but when typing emerge dhcpcd it calculates the dependencies, but then nothing works because it tells me the network is unreachable...
and i cant do that without a working connection to the internet.

firstly i can try to specifiy an ip number for the interface, so where do i do that?

im sorry for all this but im really trying my best to learn.

edit: i just typed etc/init.d/net.eth0 start it came back with this...

* Starting eth0
*cannot default to dhcp as there is no dhcp module loaded
*no configuration for eth0


if that helps?
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
mpsii
l33t
l33t


Joined: 11 Mar 2003
Posts: 658
Location: Jackson, TN

PostPosted: Thu Jan 12, 2006 11:25 pm    Post subject: Reply with quote

Have you emerged dhcpcd?
_________________
-----------------------------------------
Michael
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Fri Jan 13, 2006 12:34 am    Post subject: Reply with quote

Cyber_Ninja wrote:
and also i meant to say this before, but when typing emerge dhcpcd it calculates the dependencies, but then nothing works because it tells me the network is unreachable...
and i cant do that without a working connection to the internet.

_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
troebel
n00b
n00b


Joined: 02 Jan 2006
Posts: 42
Location: Doetinchem, Netherlands

PostPosted: Fri Jan 13, 2006 1:29 am    Post subject: Reply with quote

Did your internet work from the livecd?
If so, boot from the livecd, chroot into your installed environment and try emerging dhcpcd again.
_________________
d|>_<|b
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Fri Jan 13, 2006 2:59 am    Post subject: Reply with quote

yes it worked from livecd. Im so new to this that i dont even know how to chroot into my installed enviroment. well i know its 'chroot etc etc'
but i dont acctualy know where it is :(
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Fri Jan 13, 2006 4:48 am    Post subject: Reply with quote

ok so i managed to do that. and here is my results after the reboot...

i get this on the boot screen:

Starting eth0
bringing up eth0
Configuration not set for eth0 - assuming dhcp
dhcp (green star)
eth0 does not exsist


so then i try to ping an address and still get unknown host. i think we are getting closer to the problem now, if someone can help me tht little bit more it would be much appreciated. thanks !!
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
Demonarch
n00b
n00b


Joined: 01 Dec 2005
Posts: 12
Location: Tampere, Finland

PostPosted: Fri Jan 13, 2006 7:30 am    Post subject: Reply with quote

It seems you are lacking a driver for your NIC. I haven't used VMWare, but from the posts above I'd guess the driver you need is called pcnet32.
_________________
http://ssc.vekoduck.com
Back to top
View user's profile Send private message
ExB
n00b
n00b


Joined: 11 Jan 2006
Posts: 5
Location: Slovenia

PostPosted: Fri Jan 13, 2006 9:03 am    Post subject: Reply with quote

Here is what you have to do, to get it working (it worked for me..):

- boot the live cd, chroot into your installed environment:
Code:
# mount /dev/ROOT /mnt/gentoo
# mount /dev/BOOT /mnt/gentoo/boot
###mount all the other partitions and disks you might have
# mount -t proc none /mnt/gentoo/proc

###Now you can chroot in the installed environment
# chroot /mnt/gentoo /bin/bash
# env-update
 * Caching service dependencies...
# source /etc/profile
# export PS1="(chroot) $PS1"


Now that you are chrooted, rebuild the kernel, this time with pcnet32 driver installed IN the kernel, not as a module:
Code:
# cd /usr/src/linux
# make menuconfig

###build the pcnet32 driver IN the kernel, not as a module

# make && make modules_install

# cp arch/i386/boot/bzImage /boot/<kernel-version>


Now you have to emerge dhcpcd, before rebooting the VM, within the chrooted environment

Code:
# emerge -av dhcpcd


Now try to reboot the virtual machine, and see what happens ;)
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Fri Jan 13, 2006 11:47 pm    Post subject: Reply with quote

hi, and thanks for your reply.

i did as you advised me to, and yet i still have the same problem as above:

Starting eth0
bringing up eth0
Configuration not set for eth0 - assuming dhcp
dhcp (green star)
eth0 does not exsist

it does get kind of disheartening after a while, especially while i have been looking to install gentoo for some time now.

can anyone else think of anything that might be wrong here? i really dont want to uninstall it, but its looking like there could be no answer to this.

thanks once again
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
ExB
n00b
n00b


Joined: 11 Jan 2006
Posts: 5
Location: Slovenia

PostPosted: Sat Jan 14, 2006 8:06 am    Post subject: Reply with quote

:(

Then I do not know, what could be the problem. I have gentoo installed in VMWare 5.5 too, and it works perfectly. My best bet if I were you, would be to boot the Live CD and start the installation all over again, step by step by the handbook. Worked for me, it surely has to work for you too somehow.. Be sure to delete all the partitions you already have, and make new ones. Or maybe someone here will have another clue about why gentoo's not recognising the eth adapter..
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Sun Jan 15, 2006 5:18 pm    Post subject: Reply with quote

well, my first install took me 3 days of no sleep. I really wanted to have a working gentoo installed, but thats seeming like its not possible now. i followed the handbook step by step, litterally, and i feel like doing it again will cause me more problems, especially since this is the only problem i have with it. so it looks like i will have to uninstall and call it a failed experiment lol. windows will have to do.

ive read this post over and over again but cant see a thing that fixes it? there must be some genius type out there that knows the problem?

i know im proably gettin on ppls nerves now, and i appologise
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Sun Jan 15, 2006 5:20 pm    Post subject: Reply with quote

i mean, it looks like its not sure to choose eth0 or dhcp, likes its making its mind up. i just want it to use sokething that will work
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
ExB
n00b
n00b


Joined: 11 Jan 2006
Posts: 5
Location: Slovenia

PostPosted: Sun Jan 15, 2006 8:56 pm    Post subject: Reply with quote

Ouuo, took u 3 days to install Gentoo in VMware? Did you install from stage 1 or something? Took me about half a day on P3 Celeron 1200 @ 1.5GHz with 512MB RAM (192MB for VMWare) from stage 3.

I read your first post again, and I see you chose to use NAT for guest system.. I use bridged networking.. Maybe this is what's causing the problem?

Also, post the output of your dmesg, that might clear some things up.. Just type dmesg in the console as root or superuser and post everything here, in the code tags if possible (if u know how to use them, that is ;) )

Quote:
i mean, it looks like its not sure to choose eth0 or dhcp, likes its making its mind up. i just want it to use sokething that will work

You don't understand this quite good. eth0 is a name, that Linux gives to your network card (if you have two, the second is named eth1 and so on), and dhcp is a standard that enables the network card to get the ip automatically from a server.
Back to top
View user's profile Send private message
Cyber_Ninja
n00b
n00b


Joined: 11 Jan 2006
Posts: 32

PostPosted: Mon Jan 16, 2006 8:14 am    Post subject: Reply with quote

well folks, i finally decided to spend some time on it myself this evening. i wiped alot of the conf files and rebuilt them, unemerged my bootloader, dhcpcd and a few other things, started each one again. its funny, the more erros i got, the more i started to understand. So i took my time, thought, and went about it slowly with no handbook. before this install, i hadnt used linux before...

to make a long story short, i fixed it. I have learned alot in the process, and wish to than you all for taking te time to answer me.

This thread is now officially solved :D
_________________
Trying my Best to learn linux, so please be patient with me...
especially since ive only ever used windows rubbish.
Back to top
View user's profile Send private message
ExB
n00b
n00b


Joined: 11 Jan 2006
Posts: 5
Location: Slovenia

PostPosted: Mon Jan 16, 2006 3:54 pm    Post subject: Reply with quote

Cool, that's the gentoo way of solving troubles 8)

Do you mind telling how you solved the problem, any special settings or sth? Or did it just solve itself when you rebuild everything?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum