LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Openbsd & pxe installation (https://www.linuxquestions.org/questions/%2Absd-17/openbsd-and-pxe-installation-4175547531/)

atux_null 07-08-2015 12:54 PM

Openbsd & pxe installation
 
Hello everyone. My first steps with openbsd.
I have an Alix 2d13 and I would like to install pure openbsd. It is just for fun and learning.
I have a running Linux (Debian) which acts as a pxe server and the internet router. The dhcp,tftp and pxe are on dnsmasq.conf configured. I have a folder /srv/tftp where I have bsd.rd and pxeboot form the local openbsd mirror.
I have started the installation and I have gone through all the questions about setting the system. Then after a while I came with a success message and that I have to reboot the system in order to complete the installation. During reboot I disable the pxe from the installation machine. When the machine comes up it hangs at boot >
I am afraid I have no idea what to do to fix that and have a fully working system.
Please some help since I am a newbie in the area

cynwulf 07-09-2015 04:39 AM

Not much idea, I've never installed OpenBSD via PXE.

It looks like the bootloader can't find any kernel, which usually means that it can't find a root file system. Did you select to use DUIDs during setup? Do you have more than one disk? Was something like a flash memory stick plugged in or removable disk at the time?

You say it hangs at "boot>"? Do you see any error? Can you type at the prompt? Have you tried just hitting enter?

Have you tried e.g.
Code:

boot> boot sd0a:/bsd
?
"sd0a" assumes SCSI disk 0 partition a. Your root file system may be installed on a different disk. If you have more than one disk, then try sd1a. If for some bizarre reason the root file system is on the second partition or the third, try e.g. "sd1b" or "sd1d". (or "sd0b"/sd0d")

//Edit: In your case it may be wd0 rather than sd0 so substitute as necessary.

//Edit2: Also may be of interest: http://daemonforums.org/showthread.php?p=46452

fatmac 07-11-2015 12:55 PM

Quote:

When the machine comes up it hangs at boot >
That usually means an O/S can't find its boot partition.
Sounds like it was installed as the 2nd partition, but needs to be the first one to be seen by your computers BIOS to be able to boot.
I, personally, haven't had any booting problems with OpenBSD, but I have with FreeBSD & the solution was to type a ? at the boot > which then gives a list of drives; (maybe it will work on OpenBSD as well).

Edit: Most BSD will only install to a 'primary' mbr partition.

cynwulf 07-11-2015 03:51 PM

Quote:

Originally Posted by fatmac (Post 5390125)
That usually means an O/S can't find its boot partition.

That would certainly be true of a Linux system. OpenBSD, FreeBSD DragonFly and as far as I know, other 'BSDs do not have a /boot directory or partition. In OpenBSD /boot is the second stage bootstrap code.

So I would still suggest that it's the root file system which the first stage bootloader cannot find.
Quote:

Originally Posted by fatmac (Post 5390125)
Sounds like it was installed as the 2nd partition, but needs to be the first one to be seen by your computers BIOS to be able to boot.

Likely.
Quote:

Originally Posted by fatmac (Post 5390125)
I, personally, haven't had any booting problems with OpenBSD, but I have with FreeBSD & the solution was to type a ? at the boot > which then gives a list of drives; (maybe it will work on OpenBSD as well).

Good point, haven't tried that one on OpenBSD either.
Quote:

Originally Posted by fatmac (Post 5390125)
Edit: Most BSD will only install to a 'primary' mbr partition.

Well that and a GPT for some.


All times are GMT -5. The time now is 06:31 AM.