openbsd install problem

View: New views
13 Messages — Rating Filter:   Alert me  

openbsd install problem

by Chantal Rosmuller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I am trying to install openbsd but I keep getting an error message,

I use a soekris 4801-50, I use a linux dhcpd server and I want to install
openbsd 4.2

this is my dhcpd.conf


        subnet 10.0.0.0 netmask 255.255.255.0 {
                    option routers 10.0.0.2;
                    filename "pxeboot";
                    range 10.0.0.4 10.0.0.10;
                    default-lease-time 86400;
                    max-lease-time 90000;
            }
    }

this is /etc/inetd.conf:

tftp            dgram   udp     wait    
nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /bsd

in directory /bsd the files pxeboot and bsd.rd  are stored

The error I get is:

CLIENT MAC ADDR: 00 00 24 C8 FD D8
CLIENT IP: 10.0.0.10  MASK: 255.255.255.0  DHCP IP: 10.0.0.100
GATEWAY IP: 10.0.0.2
probing: pc0 com0 com1 pci pxe![2.1] mem[639K 127M a20=on]
disk: hd0+*
net: mac 00:00:24:c8:fd:d8, ip 10.0.0.10, server 10.0.0.100
>> OpenBSD/i386 PXEBOOT 1.07
open(tftp:/etc/boot.conf): Operation not permitted
boot>
booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
 failed(60). will try /obsd
boot>
booting tftp:/obsd: open tftp:/obsd: Operation not permitted
 failed(1). will try /bsd.old
boot>
booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
 failed(60). will try /bsd
boot>
booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
 failed(60). will try /obsd
boot>
booting tftp:/obsd: open tftp:/obsd: Operation not permitted
 failed(1). will try /bsd.old
boot>
booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
 failed(60). will try /bsd
Turning timeout off.

any pointers would be welcome :)

regards, chantal
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Sean-92 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 28-Apr-08, at 9:58 AM, Chantal Rosmuller wrote:
>
> in directory /bsd the files pxeboot and bsd.rd  are stored
>
Here is the clue.

>>>
> open(tftp:/etc/boot.conf): Operation not permitted
> boot>
> booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> failed(60). will try /obsd
> boot>
> booting tftp:/obsd: open tftp:/obsd: Operation not permitted
> failed(1). will try /bsd.old
> boot>
> booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
> failed(60). will try /bsd
> boot>
> booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> failed(60). will try /obsd
> boot>
> booting tftp:/obsd: open tftp:/obsd: Operation not permitted
> failed(1). will try /bsd.old
> boot>
> booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
> failed(60). will try /bsd
> Turning timeout off.

The problem is the boot loader can't find a kernel to run.
In the above you said /bsd contains 'pxeboot' and 'bsd.rd'... Notice  
in the above the bootloader wasn't searching for bsd.rd.
A quick symlink will fix that:
        ln -s /bsd/bsd.rd /bsd/bsd
If that doesn't work (or you don't get the symlink), just rename  
bsd.rd to one of the items in the search list (see above).

--
Sean
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Chantal Rosmuller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 28 April 2008 17:43:14 Sean Cody wrote:

> On 28-Apr-08, at 9:58 AM, Chantal Rosmuller wrote:
> > in directory /bsd the files pxeboot and bsd.rd  are stored
>
> Here is the clue.
>
> > open(tftp:/etc/boot.conf): Operation not permitted
> > boot>
> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> > failed(60). will try /obsd
> > boot>
> > booting tftp:/obsd: open tftp:/obsd: Operation not permitted
> > failed(1). will try /bsd.old
> > boot>
> > booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
> > failed(60). will try /bsd
> > boot>
> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> > failed(60). will try /obsd
> > boot>
> > booting tftp:/obsd: open tftp:/obsd: Operation not permitted
> > failed(1). will try /bsd.old
> > boot>
> > booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
> > failed(60). will try /bsd
> > Turning timeout off.
>
> The problem is the boot loader can't find a kernel to run.
> In the above you said /bsd contains 'pxeboot' and 'bsd.rd'... Notice
> in the above the bootloader wasn't searching for bsd.rd.
> A quick symlink will fix that:
> ln -s /bsd/bsd.rd /bsd/bsd
> If that doesn't work (or you don't get the symlink), just rename
> bsd.rd to one of the items in the search list (see above).

Thanks Sean, unfortunately both methods didn't work, I still get

booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60



_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Dorian Büttner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sean Cody schrieb:
> A quick symlink will fix that:
> ln -s /bsd/bsd.rd /bsd/bsd
>  


Or, at the boot prompt, type 'boot bsd.rd' ;)
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Stuart Henderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008-04-28, Chantal Rosmuller <chantal@...> wrote:
> booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
>  failed(60). will try /obsd
>
> any pointers would be welcome :)

Any better if you add "next-server <tftp-server-ip-address>;" and
restart dhcpd?


_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Kjetil-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hi list,
>
> I am trying to install openbsd but I keep getting an error message,
>
> I use a soekris 4801-50, I use a linux dhcpd server and I want to install
> openbsd 4.2
>
> this is my dhcpd.conf
>
>
>         subnet 10.0.0.0 netmask 255.255.255.0 {
>                     option routers 10.0.0.2;
>                     filename "pxeboot";
>                     range 10.0.0.4 10.0.0.10;
>                     default-lease-time 86400;
>                     max-lease-time 90000;
>             }
>     }
>
> this is /etc/inetd.conf:
>
> tftp            dgram   udp     wait
> nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /bsd
>
> in directory /bsd the files pxeboot and bsd.rd  are stored
>
> The error I get is:
>
> CLIENT MAC ADDR: 00 00 24 C8 FD D8
> CLIENT IP: 10.0.0.10  MASK: 255.255.255.0  DHCP IP: 10.0.0.100
> GATEWAY IP: 10.0.0.2
> probing: pc0 com0 com1 pci pxe![2.1] mem[639K 127M a20=on]
> disk: hd0+*
> net: mac 00:00:24:c8:fd:d8, ip 10.0.0.10, server 10.0.0.100
>>> OpenBSD/i386 PXEBOOT 1.07
> open(tftp:/etc/boot.conf): Operation not permitted
> boot>
> booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
>  failed(60). will try /obsd
> boot>
> booting tftp:/obsd: open tftp:/obsd: Operation not permitted
>  failed(1). will try /bsd.old
> boot>
> booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
>  failed(60). will try /bsd
> boot>
> booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
>  failed(60). will try /obsd
> boot>
> booting tftp:/obsd: open tftp:/obsd: Operation not permitted
>  failed(1). will try /bsd.old
> boot>
> booting tftp:/bsd.old: open tftp:/bsd.old: Unknown error: code 60
>  failed(60). will try /bsd
> Turning timeout off.
>
> any pointers would be welcome :)
>
> regards, chantal

Try add these two options to your dhcpd.conf (i assume your tftp server is
the same as your dhcp server).

next-server 10.0.0.100;
option root-path "/bsd";

You might not need the next-server option, but it does not hurt to add.

Kjetil

_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Karl O. Pinc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 04/28/2008 11:06:44 AM, Stuart Henderson wrote:
> On 2008-04-28, Chantal Rosmuller <chantal@...> wrote:
> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> >  failed(60). will try /obsd
> >
> > any pointers would be welcome :)
>
> Any better if you add "next-server <tftp-server-ip-address>;" and
> restart dhcpd?

If that does not work then use a tftp client to debug your tftp setup.

Karl <kop@...>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Jed Clear-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 28 Apr 2008, Kjetil wrote:
> > I am trying to install openbsd but I keep getting an error message,
> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> >  failed(60). will try /obsd
[snip]
> Try add these two options to your dhcpd.conf (i assume your tftp server is
> the same as your dhcp server).
>
> next-server 10.0.0.100;
> option root-path "/bsd";

Some [not so] obvious things to check:
  Is /bsd and all relevant contents world readable?
  Did you restart inetd after uncommenting tftpd in /etc/inetd.conf?
  Did you set up the tcpd wrapper properly?
  From the linux box can you do manual tftp?
        tftp localhost
        get bsd.rd

-Jed
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Stuart Henderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008-04-28, Jed Clear <clear@...> wrote:

> On Mon, 28 Apr 2008, Kjetil wrote:
>> > I am trying to install openbsd but I keep getting an error message,
>> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
>> >  failed(60). will try /obsd
> [snip]
>> Try add these two options to your dhcpd.conf (i assume your tftp server is
>> the same as your dhcp server).
>>
>> next-server 10.0.0.100;
>> option root-path "/bsd";
>
> Some [not so] obvious things to check:
>   Is /bsd and all relevant contents world readable?
>   Did you restart inetd after uncommenting tftpd in /etc/inetd.conf?
>   Did you set up the tcpd wrapper properly?
>   From the linux box can you do manual tftp?
> tftp localhost
>         get bsd.rd

If these were wrong, the boot loader wouldn't be running.


_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Chantal Rosmuller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 28 April 2008 18:06:44 Stuart Henderson wrote:

> On 2008-04-28, Chantal Rosmuller <chantal@...> wrote:
> > booting tftp:/bsd: open tftp:/bsd: Unknown error: code 60
> >  failed(60). will try /obsd
> >
> > any pointers would be welcome :)
>
> Any better if you add "next-server <tftp-server-ip-address>;" and
> restart dhcpd?
>
>
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech@...
> http://lists.soekris.com/mailman/listinfo/soekris-tech


Thaks everyone for the pointers, I will try them tonight.
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Chantal Rosmuller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 28 April 2008 18:03:48 Dorian Büttner wrote:
> Sean Cody schrieb:
> > A quick symlink will fix that:
> > ln -s /bsd/bsd.rd /bsd/bsd
>
> Or, at the boot prompt, type 'boot bsd.rd' ;)
> _______________________________________________
> Soekris-tech mailing list
> Soekris-tech@...
> http://lists.soekris.com/mailman/listinfo/soekris-tech

Thanks that was it, I didnt realize that I could enter a new command aftre the
error messages :)
this problem is solved but I have a new one. Hope it is as easy to solve as
the last.

I added a file etc/boot.conf to the tftp directory with this content:

set tty com0
stty com0 9600
boot bsd.rd

and now it starts bsd.rd by itself
unfortunately it then starts printing a lot of jibberish, probably something
to do with the serial console settings

when I use a etc/boot.conf with this content

boot bsd.rd

the install just hangs (or appears to hang?) at "entry point at 0x200120"
I tried openbsd 4.1 and 4,2 but that doesn't make a difference
bsd.rd is the right file isn't it?




_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: openbsd install problem

by Stuart Henderson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2008-04-30, Chantal Rosmuller <chantal@...> wrote:
> I added a file etc/boot.conf to the tftp directory with this content:
>
> set tty com0
> stty com0 9600
> boot bsd.rd

I'd recommend "set image bsd.rd" so you can still type commands,
it will then boot bsd.rd after a timeout.

> unfortunately it then starts printing a lot of jibberish, probably something
> to do with the serial console settings

You just forced the port speed to 9600 in boot.conf, change combios
console and terminal emulator speed to match (recommended), or change
the "stty com0 .." line to whatever speed you really use.


_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Parent Message unknown Re: openbsd install problem

by Chantal Rosmuller-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 30 April 2008 13:06:47 Wim Vandeputte - Mailinglists only wrote:

> hey,
>
> On Wed, Apr 30, 2008 at 12:00:26PM +0200, Chantal Rosmuller wrote:
> > I added a file etc/boot.conf to the tftp directory with this content:
> >
> > set tty com0
> > stty com0 9600
>
> stty com0 19200
>
> > boot bsd.rd
> >
> > and now it starts bsd.rd by itself
> > unfortunately it then starts printing a lot of jibberish, probably
> > something to do with the serial console settings
>
> the soekris BIOS is set to 19200 not 9600
>
> > when I use a etc/boot.conf with this content
> >
> > boot bsd.rd
> >
> > the install just hangs (or appears to hang?) at "entry point at 0x200120"
>
> it does not hang, it does work, but outputs the screen output to
> the console (vga) which you can't see


Hi, thanks I changed stty com0  to 19200 and it works now.
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech