-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update OpenBSD.md #12
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,17 @@ Install OpenBSD over PXE | |
For example: | ||
|
||
``` | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/5.9/amd64/bsd.rd | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/5.9/amd64/pxeboot | ||
``` | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/6.1/amd64/bsd.rd | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/6.1/amd64/pxeboot | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/6.1/amd64/SHA256 | ||
wget http://ftp.icm.edu.pl/pub/OpenBSD/6.1/amd64/SHA256.sig | ||
``` | ||
You can verify the signature using `signify`(1): | ||
`signify -C -p /etc/signify/openbsd-61-base.pub -x SHA256.sig` | ||
You can also verify the SHA256 hash: | ||
`sha256 -c f9c2ca96c7fb93d343b4e70ce55ff09fc927f1a0664597170ef408c5a1f398c0 pxeboot` | ||
`sha256 -c 257270c76ecd9bcbf2b2093db1ad04483e85909a6207e3c769be176d3c489e7b bsd.rd` | ||
|
||
By default, those files should be placed directly in tftp server root | ||
directory. In our case it's `netboot` directory, which is mounted inside | ||
container at `/srv/tftp`. They can be also placed in different paths, such as | ||
|
@@ -44,27 +52,27 @@ Install OpenBSD over PXE | |
|
||
``` | ||
label open-bsd | ||
menu label ^OpenBSD-5.9 | ||
menu label ^OpenBSD-6.1 | ||
menu default | ||
kernel OpenBSD/amd64/pxeboot.0 | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pkubaj consider adding some earlyprint over COM. I have no idea if the booting is proceeding or not when I run that menu option. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean the option in PXELINUX or the autoboot option in iPXE? Generally, both load very quickly and it's usually you environment (dhcpd or tftpd configuration) which is bad. |
||
Path to `bsd.rm` is set in `/etc/boot.conf`, which needs to be created. | ||
|
||
|
||
Note that it has to be in tftpd root directory, not the directory where bsd | ||
files are! | ||
|
||
If you don't want to use DHCP, you can use the following commands in iPXE: | ||
``` | ||
boot tftp:/OpenBSD/amd64/bsd.rd | ||
iPXE> ifopen net0 | ||
iPXE> set net0/ip 192.168.0.100 | ||
iPXE> set net0/netmask 255.255.255.0 | ||
iPXE> set net0/gateway 192.168.0.1 | ||
iPXE> chain tftp://192.168.0.1/auto_install | ||
``` | ||
Note that it has to be in tftpd root directory, not the directory where bsd | ||
files are! | ||
|
||
You need to adjust IP's and netmask to your own environment. | ||
3. Boot configuration. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pkubaj add a new line before "3. Boot configuration" because it appends to the previous line. |
||
|
||
Bootloader configuration is set through `/etc/boot.conf` file. In our case we | ||
need at least to enable serial port communication and set it's speed. | ||
OpenBSD bootloader by default loads `bsd` file, so rename `bsd.rd` to `bsd`. | ||
|
||
``` | ||
stty com0 115200 | ||
set tty com0 | ||
``` | ||
4. Installation. | ||
|
||
Installation process is mostly straightforward. Take a look at the choice of | ||
|
@@ -76,3 +84,44 @@ Install OpenBSD over PXE | |
bsd.mp (multi-processor kernel) | ||
baseXX.tgz (OpenBSD base system) - essential | ||
``` | ||
|
||
5. In order to use Autoinstall mode, a few more adjustments need to be made. | ||
|
||
The binary you set to load in "filename" directive in DHCP server needs to | ||
point to `pxeboot`. Example: | ||
|
||
``` | ||
subnet 192.168.0.0 netmask 255.255.255.0 { | ||
option routers 192.168.0.1; | ||
range 192.168.0.4 192.168.0.254; | ||
filename "pxeboot"; | ||
``` | ||
You will be asked after booting: | ||
``` | ||
Could not determine auto mode. | ||
Response file location? [http://192.168.1.1/install.conf] | ||
The configuration file for installation is served by HTTP server passed by | ||
`server-name`, `option tftp-server-name`, or `next-server` directive. | ||
``` | ||
|
||
If the location is true, press Enter. | ||
The file needs to be named `install.conf`. Here's an example: | ||
``` | ||
System hostname = 3mdeb.dev | ||
Change the default console to com0 = yes | ||
Which speed should com0 use = 115200 | ||
Password for root = 3mdeb.dev | ||
Network interfaces = em0 | ||
IPv4 address for em0 = dhcp | ||
Setup a user = emdeb | ||
Password for user = 3mdeb.dev | ||
What timezone are you in = Europe/Warsaw | ||
Location of sets = http | ||
Server = mirror.leaseweb.com | ||
Use Whole disk MBR, whole disk GPT, OpenBSD area or Edit = W | ||
``` | ||
|
||
You need to place it in HTTP root. | ||
|
||
You need to connect APU to the em0 Ethernet port (the nearest port to the RS232 | ||
plug) and provide apriopriate routing and DNS resolver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkubaj please consider adding some earlyprint over COM. Running this option in PXE menu causes no output and restarts apu2 after a while