View previous topic :: View next topic |
Author |
Message |
NJ n00b
Joined: 14 Sep 2003 Posts: 3 Location: Guildford, UK
|
Posted: Wed Jan 07, 2004 11:26 pm Post subject: Gentoo as guest OS on WinXP VMware host - unknown host |
|
|
Hi. This is my second attempt at installing gentoo; it hasnt gone as smooth as the first but it hasnt put me off
yet
Background info:
My instillation is a Stage3 + GRP from a LiveCD (pentium4-1.4-20030911-cd1.iso to be exact)
Ive installing gentoo as a guest OS under VMware 4.0.5 running on a WinXP host and configured the guest to use NAT. My real host IP is 192.168.0.2 and my real gateway 192.168.0.1
To the best of my knowledge, Ive followed the Gentoo Linux 1.4 Installation Instructions to the letter.
I think Ive provided all the background information that is needed, apologies if not
When I login (as root, or other) I cannot resolve any hostnames. If I try to ping an external IP address, the "Network is unreachable". If I try to ping an internal IP address, the "Destination Host Unreachable". I checked /ect/resolv.conf and found it to contain the following:
vmware is the dnsdomainname I choose in Chapter 19 Setting your hostname (http://www.gentoo.org/doc/en/gentoo-x86-install.xml#doc_chap19)
After a lot of forum searching, and re-reading the installation guide, I opened /etc/conf.d/net and uncommented iface_eth0=dhcp. I then ran env-update and rebooted.
Upon logging back in, everything worked fine. I promptly checked resolv.conf and found that in now contained the following:
Code: | nameserver 192.168.182.2
search localdomain |
I uncommented iface_eth0=dhcp in /etc/conf.d/net ran env-update and rebooted again (I was working on the assumption that my resolv.conf was now correct, and that I didnt need to use DHCP.)
Upon rebooting same problem. I checked resolv.conf and found that it had been reset to:
I presumed this was due to the domainname script being in the default runtime. I removed the domainname script from the default runtime and reset resolv.conf to:
Code: | nameserver 192.168.182.2
search localdomain |
Upon reboot same problem.
I opened resolv.conf and found:
Code: | domain vmware
nameserver 192.168.182.2
|
Now Im truly baffled
I know I can have a working system if I just set everything back and uncomment iface_eth0=dhcp, but thats not the point!
So, the two questions I have are:
1) Ideally Id like to configure this system without using DHCP how can I do this?
2) In my situation, what exactly is the dnsdomainname used for?
Thanks for your time,
Nathan |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Wed Jan 07, 2004 11:36 pm Post subject: |
|
|
Hi Nathan, welcome two Gentwo!
1. Read the networking bit of the gentoo install guide, and follow it.
In short, you have to disable dhcp and then edit the resolv.conf file yourself.
Why did you use dhcp in the first place ? Do you have a dhcp server on the network?
Short sharp hint: if you don't know then you don't have one.
2. Exactly what you get - puts the domain line in resolv.conf
to find out what that file is used for. |
|
Back to top |
|
|
NJ n00b
Joined: 14 Sep 2003 Posts: 3 Location: Guildford, UK
|
Posted: Thu Jan 08, 2004 12:14 am Post subject: |
|
|
Thanks for the prompt reply adaptr.
Firstly, let me correct an error in my original post.
Quote: | Ideally Id like to configure this system without using DHCP how can I do this? |
At the time of installing, I was perfectly happy to use DHCP and in answer your question, yes, my router provides DHCP to the network - now Id like to change it to a manual configuration.
At present, my /etc/conf.d/net reads:
Code: | iface_eth0="192.198.0.2 broadcast 192.168.0.255 netmask 255.255.255.0" |
and my /etc/resolv.conf reads:
Code: | domain vmware
nameserver 192.168.182.2
search localdomain |
For Static IP Network Configuration, the install guide directs the use of the following two commands:
Code: | # ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK
# route add -net default gw $GTWAY netmask 0.0.0.0 metric 1 $IFACE |
192.168.182.2 is the nameserver address that was assigned by DHCP I assume this is the mapped address of my router as seen through NAT/VMware...? Should this be substituted for $GTWAY in the above command? Im presuming these two commands create the data within /etc/conf.d/net
Thanks,
Nathan |
|
Back to top |
|
|
NJ n00b
Joined: 14 Sep 2003 Posts: 3 Location: Guildford, UK
|
Posted: Thu Jan 08, 2004 1:31 am Post subject: |
|
|
OK I tried the suggestion I made in my previous post.
I commented out iface_eth0=dhcp from /etc/conf.d/net and executed the following commands:
Code: | # ifconfig eth0 192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0
# route add -net default gw 192.168.182.2 netmask 0.0.0.0 metric 1 eth0 |
and received the following error:
Code: | SIOCADDRT: Network is unreachable |
I did a quick search and found a number of threads referencing this error its late now, so Ill start down this route in the morning.
Nathan |
|
Back to top |
|
|
r_yuan n00b
Joined: 07 Jun 2003 Posts: 66 Location: Montreal, Canada
|
Posted: Tue Jan 20, 2004 2:34 am Post subject: Re: Gentoo as guest OS on WinXP VMware host - unknown host |
|
|
Hi Nathan
NJ wrote: | Ive installing gentoo as a guest OS under VMware 4.0.5 running on a WinXP host and configured the guest to use NAT. My real host IP is 192.168.0.2 and my real gateway 192.168.0.1 |
Is there any reason why you want to use NAT on the guest OS? If you're willing to try 'bridged', you can configure your guest OS with IP 192.168.0.3 and gateway 192.168.0.1. |
|
Back to top |
|
|
|
|
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
|
|