Skip to content

Instantly share code, notes, and snippets.

@uebayasi
Last active June 7, 2016 07:43
Show Gist options
  • Save uebayasi/6837055 to your computer and use it in GitHub Desktop.
Save uebayasi/6837055 to your computer and use it in GitHub Desktop.

Preparation and configuration

Host

dhcpd

/etch/dhcpd.conf
option  domain-name "my.domain";
option  domain-name-servers 192.168.185.1;
    
subnet 192.168.185.0 netmask 255.255.255.0 {
        option routers 192.168.185.1;
        range 192.168.185.2 192.168.185.254;
        host obtest {
                hardware ethernet 00:0c:29:25:12:fe;
                filename "pxeboot";
                next-server 192.168.185.1;
                fixed-address 192.168.185.2;
        }
}

bootparams

obtest.test \
root=192.168.185.1:/src/root.openbsd.src.amd64 \
swap=192.168.185.1:/src/swap.openbsd.src.amd64

pf

set skip on <yourlocalif>

NFS root

Files
  • ${rootdir}/bsd
  • baseXX.tgz extracted and configured (see openbsd-minimal-install.md)
Configuration
  • ${rootdir}/etc/boot.conf
    • set tty com
    • stty com0 115200
    • boot bsd
  • ${rootdir}/etc/fstab
    • 192.168.185.1:${rootdir} / nfs rw
  • ${rootdir}/etc/rc.conf.local
    • XXX
  • ${rootdir}/etc/sysctl.conf
    • XXX
  • ${rootdir}/etc/ttys
    • XXX

Target

  • BIOS configured to do PXE
  • With a network I/F

Step

XXX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment