OpenBSD » History » Revision 3
Revision 2 (Willy Manga, 03/26/2025 01:05 AM) → Revision 3/4 (Willy Manga, 03/21/2026 06:42 PM)
h1. OpenBSD
Everything we need to know when it comes to this amazing OS.
h2. Typical layout
Caution: For any upgrade /usr must have at least 1.1G available space!.
<pre>
a /
b swap
d: 1000M 3220512 4.2BSD 2048 16384 1 # /tmp
e: 2000M 4932608 4.2BSD 2048 16384 1 # /var
f: 4000.0M 7479264 4.2BSD 2048 16384 1 # /usr
g: 2366.5M 13720480 4.2BSD 2048 16384 1 # /usr/local
h: 2227.0M 18567040 4.2BSD 2048 16384 1 # /usr/src
i: 5478.0M 23127904 4.2BSD 2048 16384 1 # /usr/obj
j: 1000.1M 34346816 4.2BSD 2048 16384 1 # /home
k: 2000M 4932608 4.2BSD 2048 16384 1 # /var/log
~
</pre>
After genuine install, how it looks like
<pre><code class="shell">
rr01# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 1.6G 100M 1.4G 7% /
/dev/sd0j 989M 2.0K 940M 1% /home
/dev/sd0d 989M 8.0K 940M 1% /tmp
/dev/sd0f 2.3G 1.4G 728M 67% /usr
/dev/sd0g 2.2G 144K 2.1G 1% /usr/local
/dev/sd0i 3.9G 2.0K 3.7G 1% /usr/obj
/dev/sd0h 2.1G 2.0K 2.0G 1% /usr/src
/dev/sd0e 1.9G 13.9M 1.8G 1% /var
/dev/sd0k 1.9G 24.0K 1.8G 1% /var/log
</code></pre>
h2. Libvirt
To install on a headless debian KVM server (with virt-install ) ...
From https://r0tty.org/blog/headless-kvm-openbsd-install/
* use a dedicated folder (e.g /tmp/lab )
* download the install file (iso file) e.g cd72.iso or install72.iso
* install @growisofs@ (and @genisoimage@)
* create a file where you will insert instructions for openbsd to use the serial console @echo 'set tty com0' > boot.conf@
* update the content of boot.conf with @growisofs -M cd72.iso -l -R -graft-points /etc/boot.conf=boot.conf@
<pre>
root@man021-truserv-jhb1-001 /tmp/lab $ growisofs -M bsd74.iso -l -R -graft-points /etc/boot.conf=boot.conf
Executing 'genisoimage -C 16,308992 -M /dev/fd/3 -l -R -graft-points /etc/boot.conf=boot.conf | builtin_dd of=bsd74.iso obs=32k seek=19312'
I: -input-charset not specified, using utf-8 (detected in locale settings)
Rock Ridge signatures found
Total translation table size: 0
Total rockridge attributes bytes: 2429
Total directory bytes: 8192
Path table size(bytes): 48
Max brk space used 0
309172 extents written (603 MB)
builtin_dd: 192*2KB out @ average infx1352KBps
bsd74.iso: copying volume descriptor(s)
</pre>
* your iso will be updated
* launch your installation
<pre>
virt-install -n openbsd0 --memory 512 --vcpus 1 --cdrom /var/lib/libvirt/images/cd72.1.iso --os-variant openbsd7.0 --disk size=10 --network bridge=br899 --graphics none --console pty,target_type=serial
</pre>
* it seems for pfSense, you should check this https://www.reddit.com/r/sysadmin/comments/46l9jy/installing_pfsense_on_kvm_cliheadless/
h2. ntp
if time drifts alot , use @rdate@ to catch ... my research on that
https://search.brave.com/search?q=ntp+drift+openbsd&source=desktop&conversation=08df472d509315325a2d131731b2ae5cb830&summary=1