Skip to content

Instantly share code, notes, and snippets.

@kmonticolo
Created December 17, 2018 15:23
Show Gist options
  • Save kmonticolo/f12d6ff92c77edf26a36476af44fd52f to your computer and use it in GitHub Desktop.
Save kmonticolo/f12d6ff92c77edf26a36476af44fd52f to your computer and use it in GitHub Desktop.
OpenBSD autoinstall on vps with centos7
on centos 7 (tested on centos7 vagrant)
1. wget http://ftp.fr.openbsd.org/pub/OpenBSD/6.4/amd64/bsd.rd -o mv bsd.rd /
2. vi /etc/grub.d/40_custom
add at the end:
menuentry "OpenBSD" {
set root=(hd0,msdos1)
kopenbsd /bsd.rd
}
3. vi /etc/default/grub
add at the end:
GRUB_HIDDEN_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
4. grub2-mkconfig -o /boot/grub2/grub.cfg
5. put install.conf content below on webserver and point to it during openbsd autoinstall
content of install.conf file:
System hostname = openbsd1
Password for root = 123456
Network interfaces = em1
IPv4 address for run0 = dhcp
Setup a user = kmonti
Password for user kmonti = zzzzzz
Public ssh key for user = ssh-ed25519 XYZ123... [email protected]
Which disk is the root disk = wd0
What timezone are you in = US/Eastern
Unable to connect using https. Use http instead = yes
Location of sets = http
Server = ftp.icm.edu.pl
Set name(s) = -all bsd* base* etc*
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment