Network install => "The distribution [...] does not exist."

New to SGIs? Need help getting things going? This is the forum for you!
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Sun Jul 01, 2007 10:21 am

Hello,
After a disk failure, I'm trying to reinstall IRIX onto my Octane. The installation mode I want to perform is a network install. For that purpose, I have a FreeBSD 5.3 server containing a copy of my IRIX 6.5.16 CDs.
According to the documentation I've read (posts on this forum, http://www.futuretech.blinkenlights.nl/netboot.html, http://software.majix.org/irix/install-network.shtml, http://sgistuff.g-lenerz.de/tips/netinstall.php), some configuration steps have to be done on the installation server first : tftp, bootp and rsh.

tftp
* In inetd.conf, add the following line :

Code: Select all

tftp    dgram   udp wait    root    /usr/libexec/tftpd  tftpd -l -s /tftpboot

* Create the according directory /tftpboot, and add the content of the distribution CDs :

Code: Select all

/tftpboot/
  \IRIX6.5.16/
    \Applications/
    \DevelopmentFoundation/
    \DevelopmentLibraries/
    \Foundation_1/
    \Foundation_2/
    \Overlays_1of4/
    \Overlays_2of4/
    \Overlays_3of4/
    \Overlays_4of4/


bootp
* In inetd.conf, add the following lines :

Code: Select all

bootps dgram udp wait root /usr/libexec/bootpd bootpd /etc/bootptab
bootp dgram udp wait root /usr/libexec/bootpd bootpd /etc/bootptab


rsh
* In inetd.conf, add the following line :

Code: Select all

shell   stream  tcp nowait  root    /usr/libexec/rshd   rshd -L

* Create an account whose login name is 'guest' with no password. (OK, I know, it's dangerous...)
* In /etc/hosts, resolve the name/ip of the SGI machine you want to reinstall :

Code: Select all

192.168.1.3             octane

* In /usr/home/guest/.rhosts, add the following lines :

Code: Select all

octane root
(it states that the user called 'root' on the machine called 'octane' is allowed to connect to the 'guest' account through rsh)
* Install a decent ksh (pdksh 5.2.14p2 in /usr/ports/shells/pdksh from the FreeBSD ports), and set it as the standard sh :

Code: Select all

cd /bin
mv sh _sh
ln -sf /usr/local/bin/ksh sh
Dont't forget : undo this shell change, if you want your FreeBSD box to boot again ! The shell /bin/sh is expected to correctly run the boot scripts !!!

When those steps are OK, you have to restart the inetd :

Code: Select all

killall -HUP inetd


Now, let's concentrate on the installation client (ie the SGI machine) :
When booting, click on the "Stop for Maintenance" button, and click on "Enter Command Monitor".
There, set those variables :

Code: Select all

setenv notape 1
setenv srvaddr 192.168.1.2

Start fx, by entering

Code: Select all

boot -f bootp()192.168.1.2:/IRIX6.5.16/Overlays_1of4/stand/fx.64 --x

Configure the disks, according to the mentioned docs. At the end, the "Command Monitor" will reset, so you'll have to set these variables again, plus one :

Code: Select all

setenv notape 1
setenv srvaddr 192.168.1.2
setenv tapedevice bootp()192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist/sa

Start sash by entering :

Code: Select all

boot -f $tapedevice(sash64) --m


A "Copying installation tools to disk" progress bar should show up. When it's complete, you'll be asked for the network addr of IRIS. Enter the IP of the installation client (ie the SGI machine) : in my case, it is 192.168.1.3, and the mask is 0xffffff00 (the default).

There my problem is getting concrete... After having entered the IP of the client, I get the following message :

Code: Select all

Starting network with hostname: IRIS, at ip address: 192.168.1.3
TFTP failure: get :/IRIX6.5.16/Overlays_1of4/dist/miniroot/unix.IP30 /unix
            (tapedevice=bootp()192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist/sa(mr))

Default distribution to install from: 192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist

For help on inst commands, type "help overview".

Inst 4.1 Main Menu

 1. from [source ...]
[...]

At this point, when I choose the option 1, I get :

Code: Select all

[...]
Install software from: [192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist] <ENTER>
Connecting to 192.168.1.2 ...
Connecting to 192.168.1.2 ...
ERROR: The distribution 192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist does not exist.

Inst>


Some explanations :
* The first "Connecting to 192.168.1.2" is the attempt of the client to connect to the rsh server as 'root' => rejected; here is the corresponding line in '/var/log/auth.log' :

Code: Select all

Jul  1 18:53:57 desktop rshd[731]: root@octane as root: permission denied (authentication error). cmd='exec /bin/sh'

* The second "Connecting to 192.168.1.2" is the attempt of the client to connect to the rsh server as 'guest' => OK; the corresponding line in '/var/log/auth.log' :

Code: Select all

ul  1 18:53:57 desktop rshd[733]: root@octane as guest: cmd='exec /bin/sh'


I don't understand what's going wrong ! From another computer, if I run

Code: Select all

rsh 192.168.1.2 -l guest exec /bin/sh
, I get exactly the same entry in '/var/log/auth.log' :

Code: Select all

Jul  1 19:07:38 desktop rshd[819]: myself@osx as guest: cmd='exec /bin/sh'


Does anybody have an explanation why ksh doesn't obviously work ?

Thanks in advance,
PB
Last edited by pub_bronx on Mon Jul 09, 2007 5:03 am, edited 1 time in total.
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2

User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Re: Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Fri Jul 06, 2007 6:56 am

Has anybody an idea ? I'm a bit stuck... :oops:
Thank you in advance,
PB
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2

SAQ
Posts: 5871
Joined: Wed Jul 19, 2006 8:37 am
Location: Renton, WA

Re: Network install => "The distribution [...] does not exist."

Unread postby SAQ » Fri Jul 06, 2007 9:30 am

It might be the 'ls' bug that's bitten some other people (since it looks like you're getting through on rsh). Try an older verson of 'ls' from either xBSD or GNU.
"Brakes??? What Brakes???"

"I am O SH-- the Great and Powerful"

:Indigo: :Octane: :Indigo2: :Indigo2IMP: :Indy: :PI: :O3x0: :ChallengeL: :O2000R: (single-CM)

User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Re: Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Fri Jul 06, 2007 10:45 am

SAQ wrote:It might be the 'ls' bug that's bitten some other people (since it looks like you're getting through on rsh). Try an older verson of 'ls' from either xBSD or GNU.


SAQ, it sounds good ! You're suggesting a search direction I haven't thought about yet.
I'll try remplacing my /bin/ls of the server with another older one.
Thanks for the tip !
PB
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2

LoWeN
Posts: 256
Joined: Thu Aug 28, 2003 11:45 am
Location: Belgium

Re: Network install => "The distribution [...] does not exist."

Unread postby LoWeN » Mon Jul 09, 2007 2:37 am

Hello,

Yesterday I did try from a linux box without success but :
http://software.majix.org/irix/install-network-via-linux.shtml

I see that you do the .rhosts part
Maybe your are missing the /etc/hosts.equiv trick
http://sgistuff.g-lenerz.de/tips/netinstall.php see Typical Errors:Permission Denied?

Keep us posted with your discovery/progress.

@+

LoWeN
UX powered

User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Re: Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Mon Jul 09, 2007 3:32 am

Hello LoWeN,

LoWeN wrote:Hello,

Yesterday I did try from a linux box without success but :
http://software.majix.org/irix/install-network-via-linux.shtml


Welcome into my poor little world... :roll:

LoWeN wrote:I see that you do the .rhosts part
Maybe your are missing the /etc/hosts.equiv trick
http://sgistuff.g-lenerz.de/tips/netinstall.php see Typical Errors:Permission Denied?


I tried several security tunings, and the one I currently have shouldn't be the cause of the problem: the corresponding entries in /var/log/auth.log show that the connection is accepted.

As mentioned this post, the problem must come from the fact that the output format of the ls command isn't compliant with the one IRIS expects... I've respawned this thread, hoping that the author (thermionic) will give me an hint about this !

LoWeN wrote:Keep us posted with your discovery/progress.


Be sure that I will! I've even proposed that I write a wiki entry for this.

Thanks for your interest,
PB
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2

User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Re: Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Mon Jul 09, 2007 4:09 am

Hello,
pub_bronx wrote:There my problem is getting concrete... After having entered the IP of the client, I get the following message :

Code: Select all

Starting network with hostname: IRIS, at ip address: 192.168.1.3
TFTP failure: get :/IRIX6.5.16/Overlays_1of4/dist/miniroot/unix.IP30 /unix
            (tapedevice=bootp()192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist/sa(mr))

Default distribution to install from: 192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist

For help on inst commands, type "help overview".

Inst 4.1 Main Menu

 1. from [source ...]
[...]

At this point, when I choose the option 1, I get :

Code: Select all

[...]
Install software from: [192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist] <ENTER>
Connecting to 192.168.1.2 ...
Connecting to 192.168.1.2 ...
ERROR: The distribution 192.168.1.2:/IRIX6.5.16/Overlays_1of4/dist does not exist.

Inst>

I think I've made a step forward!!!
I don't know why[*], but I've tried replacing the 192.168.1.2:/IRIX6.5.16/... address with a 192.168.1.2:/tftpboot/IRIX6.5.16/..., AND IT WORKED!!!

Currently, I going on installing the stuff. I'll let you know if/when everything's OK.

PB

[*] well, almost...
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2

LoWeN
Posts: 256
Joined: Thu Aug 28, 2003 11:45 am
Location: Belgium

Re: Network install => "The distribution [...] does not exist."

Unread postby LoWeN » Tue Jul 10, 2007 3:46 pm

Hello,

I am playing the same game with 2 systems in parallel :
- With the linux box it sounds to be a complete no go. Even the tftp is not working.
- With the freebsd 6.2 box I have the tftp working and I can jump in the installer. I haven't tested further.

What did you put in your /etc/bootptab pub_bronx?
Since I am not at all familiar with the bootp from freebsd I have installed from the ports the isc-dhcp.
It do the same and even more if needed.

There 2 things come :
- DON'T set a filename instruction for your host in the dhcp. It will gently override what ever you use in boot -f bootp()server-ip:/path/to/bin
- To get rid of the security problem don't mess with a .rhosts in the guess user. Put + + in your /etc/hosts.equiv.
Of course if this is a prod server don't forget to remove it at the end of the install otherwise you have a widely open system.

@+

LoWeN

Corrected info regarding /etc/hosts.equiv from + to + +
Last edited by LoWeN on Wed Jul 11, 2007 10:59 am, edited 1 time in total.
UX powered

User avatar
porter
Posts: 2917
Joined: Wed Nov 01, 2006 10:37 pm
Location: NZ

Re: Network install => "The distribution [...] does not exist."

Unread postby porter » Tue Jul 10, 2007 7:04 pm

LoWeN wrote:- With the freebsd 6.2 box I have the tftp working and I can jump in the installer. I haven't tested further.


I had quite a bit of success with NetBSD for memory. I can happily boot a miniroot.

I now have a single XFS image of my indy which I can install using "rsh ... cat dump.xfs | xfsrestore ...".
Land of the Long White Cloud and no Software Patents.

User avatar
pub_bronx
Posts: 179
Joined: Fri Jan 13, 2006 10:39 am
Location: Switzerland

Re: Network install => "The distribution [...] does not exist."

Unread postby pub_bronx » Sun Jul 15, 2007 7:42 am

Hello,
Wiki article about net-installing an Octane from a FreeBSD box added here!
HTH,
PB
Octane R14k 600MHz, V6, 2048 MB RAM, 73GB HD0, 18GB HD1, 73GB HD2


Return to “Getting Started, Documentation, Tips & Tricks”

Who is online

Users browsing this forum: No registered users and 2 guests