OpenBSD » History » Version 1
Willy Manga, 03/25/2025 11:33 PM
1 | 1 | Willy Manga | h1. OpenBSD |
---|---|---|---|
2 | |||
3 | Everything we need to know when it comes to this amazing OS. |
||
4 | |||
5 | |||
6 | h2. Typical layout |
||
7 | |||
8 | <pre> |
||
9 | a / |
||
10 | b swap |
||
11 | |||
12 | d: 1000M 3220512 4.2BSD 2048 16384 1 # /tmp |
||
13 | e: 2000M 4932608 4.2BSD 2048 16384 1 # /var |
||
14 | f: 2395.0M 7479264 4.2BSD 2048 16384 1 # /usr |
||
15 | g: 2366.5M 13720480 4.2BSD 2048 16384 1 # /usr/local |
||
16 | h: 2227.0M 18567040 4.2BSD 2048 16384 1 # /usr/src |
||
17 | i: 5478.0M 23127904 4.2BSD 2048 16384 1 # /usr/obj |
||
18 | j: 1000.1M 34346816 4.2BSD 2048 16384 1 # /home |
||
19 | k: 2000M 4932608 4.2BSD 2048 16384 1 # /var/log |
||
20 | ~ |
||
21 | </pre> |
||
22 | |||
23 | |||
24 | h2. Libvirt |
||
25 | |||
26 | |||
27 | To install on a headless debian KVM server (with virt-install ) ... |
||
28 | |||
29 | From https://r0tty.org/blog/headless-kvm-openbsd-install/ |
||
30 | |||
31 | * use a dedicated folder (e.g /tmp/lab ) |
||
32 | * download the install file (iso file) e.g cd72.iso or install72.iso |
||
33 | * install @growisofs@ (and @genisoimage@) |
||
34 | * create a file where you will insert instructions for openbsd to use the serial console @echo 'set tty com0' > boot.conf@ |
||
35 | * update the content of boot.conf with @growisofs -M cd72.iso -l -R -graft-points /etc/boot.conf=boot.conf@ |
||
36 | <pre> |
||
37 | root@man021-truserv-jhb1-001 /tmp/lab $ growisofs -M bsd74.iso -l -R -graft-points /etc/boot.conf=boot.conf |
||
38 | 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' |
||
39 | I: -input-charset not specified, using utf-8 (detected in locale settings) |
||
40 | Rock Ridge signatures found |
||
41 | Total translation table size: 0 |
||
42 | Total rockridge attributes bytes: 2429 |
||
43 | Total directory bytes: 8192 |
||
44 | Path table size(bytes): 48 |
||
45 | Max brk space used 0 |
||
46 | 309172 extents written (603 MB) |
||
47 | builtin_dd: 192*2KB out @ average infx1352KBps |
||
48 | bsd74.iso: copying volume descriptor(s) |
||
49 | </pre> |
||
50 | * your iso will be updated |
||
51 | |||
52 | * launch your installation |
||
53 | |||
54 | <pre> |
||
55 | 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 |
||
56 | </pre> |
||
57 | |||
58 | * it seems for pfSense, you should check this https://www.reddit.com/r/sysadmin/comments/46l9jy/installing_pfsense_on_kvm_cliheadless/ |