r/openbsd

Image 1 — Vmm/Qemu web UI for OpenBSD
Image 2 — Vmm/Qemu web UI for OpenBSD
Image 3 — Vmm/Qemu web UI for OpenBSD
▲ 70 r/openbsd

Vmm/Qemu web UI for OpenBSD

OpenVmctl

A modern, (non-production-ready) Django administration appliance for OpenBSD's vmm(4) hypervisor and QEMU, built on top of vmctl(8)/etc/vm.conf (vm.conf(5)), QEMU system emulators, pf(4) firewall, and relayd(8) proxying.

active development ongoing
not published yet

Anyone is interested in a tool like this for OpenBSD ?

Anyone is interested to help in code review/development ?

u/Own-Permit-9682 — 1 day ago

/etc/login.conf.d/${class}

>In case the /etc/login.conf.d/${class} file exists, it will take precedence over the same login class defined in /etc/login.conf.

What does this file name look like? /etc/login.conf.d/${myclass} ? vi \${myclass} will work or does the name not matter?

man.openbsd.org
▲ 48 r/openbsd

Migrating from Codeberg Pages to an OpenBSD VPS

Hey,

I saw that a lot of people are sharing around their experiences, so I hope this can stay. I recently migrated my websites over from Codeberg Pages' managed hosting to httpd on a tiny OpenBSD VPS, and made a writeup about my experience. It contains some things I found surprising as a beginner and how I solved them, along with a bunch of good links into resources that really helped me out.

I hope some of you may find it interesting.

nemin.hu
u/Nemin32 — 2 days ago
▲ 21 r/openbsd

Dumb question – httpd and the need for relayd

Reading about the newly introduced support for HTTP headers in httpd makes me review the few things I believed I understood about httpd in OpenBSD and self-hosting.

My concern was regarding getting the "highest marks" on various HTTPS/TLS security assessment web resources (unfortunately I can't find the blog post back that goes over the most of them in details). I used to think that relayd was mandatory for this, then I thought httpd would now do the trick since it supports sending headers, then I realized it's not just about headers (or is it ?).

I had quite a pain trying to understand why/how to configure relayd to get those good marks. Maybe it would be a bit different now. Nevertheless, my question remains : can those best "secure (TM)" marks be obtained simply with the current httpd ? How does this new feature change the required configuration ? Are we to expect that it is going to get simpler and we shall see refreshed web tutorials swarming after the next release of OpenBSD ?

reddit.com
u/sylvainsab — 6 days ago

Trying to make my touchpad working (Chromebook CB3-431 - OpenBSD 7.9)

Hi everyone,

I'm a newbie on OpenBSD and I'm trying to get the touchpad working on a fresh OpenBSD 7.9 install.

Everything else is working fine. The touchpad works when I boot an Artix Linux live ISO, so the hardware itself appears to be OK. A USB mouse also works normally on OpenBSD.

Here some hardware info :

  • OpenBSD 7.9 amd64
  • Google Chromebook Edgar
  • Intel Celeron N3160
  • 4 GB RAM
  • Coreboot / MrChromebox 2606.1

Touchpad Error :

  • dwiic1 at acpi0 I2C6 addr 0xfccdc000/0x1000 irq 37
  • iic1 at dwiic1
  • ietp0 at iic1 addr 0x15, can't establish interrupt

From what I understand, OpenBSD detects the touchpad on the I²C bus and matches it with the ietp driver, but the interrupt cannot be established.

I started looking through sys/dev/i2c/ietp.c and found that ietp_attach() fails when iic_intr_establish() returns NULL.

After following that call further, I found that the I²C controller here is dwiic, and the interrupt eventually goes through dwiic_i2c_intr_establish().

The interesting part is that this touchpad uses a GPIO interrupt rather than a normal IRQ. The ACPI resource for the touchpad (ETPA) points to the GPNC GPIO controller.

I added some debugging and found this ordering:

dwiic1 at acpi0 I2C6 ...
iic1 at dwiic1
ietp0 at iic1 addr 0x15
dwiic: gpio_int_node=... name=GPNC gpio=0x0

...

chvgpio1 at acpi0 GPNC ...
CHVGPIO DEBUG: node=... gpio=... name=GPNC

So when ietp tries to establish its interrupt, the ACPI node for GPNC exists, but its GPIO driver hasn't attached yet. dwiic_i2c_intr_establish() checks:

if (!crs->gpio_int_node->gpio)
    return NULL;

which explains the can't establish interrupt.

I also checked whether the firmware provides an ACPI _DEP dependency for the touchpad:

\_SB_.PCI0.I2C6.ETPA _DEP=0x0

So there doesn't seem to be an explicit dependency from the touchpad to the GPNC GPIO controller.

As an experiment, I made dwiic defer the IETP discovery if its GPIO provider hasn't attached yet. Basically, instead of trying to attach ietp immediately, I call config_defer() and rescan later.

With that change, the ordering becomes:

dwiic: deferring IETP
...
chvgpio1 at acpi0 GPNC ...
...
ietp0 at iic1 addr 0x15 gpio 18
dwiic: gpio_int_node=... name=GPNC gpio=...

and the touchpad works.

So I think I have found the reason for the failure, but I'm not sure what the correct OpenBSD fix should be.

My current workaround rescans the DWIIC ACPI devices after the GPIO driver has attached. It works, but it feels too broad and probably isn't the right way to solve this.

I'm still learning OpenBSD kernel development, so I'd really appreciate pointers on the right way to approach this.

Thanks!

EDIT: Spelling/grammar fixed, and I've found some more information about what's going on.

I've also put my modified sys/ tree in a Git repo here for anyone who wants to have a look:

https://github.com/Grabyy/OpenBSD_src_Chromebook-CB3-431_custom.git

The changes are still experimental, so use them with caution.

reddit.com
u/Grayvyyyy — 6 days ago
▲ 14 r/openbsd

Wifi + Bluetooth help needed

Wifi + Bluetooth help needed

Trying to experiment with openbsd + Freebsd, coming from Linux.

Wifi + Bluetooth (for headphones) doesn't work on my lenova s340.

Would changing my. M2 card to ax200 resolve both issues?

If so great.

If not, what is a better card please?

Thanks

reddit.com
u/Pepe__LePew — 7 days ago
▲ 62 r/openbsd

People that use OpenBSD as their desktop / daily driver...

I wondered whether the lack of ZFS support gives you sleepless nights?

Everything about OpenBSD sounds nigh perfect for my use case, but it's only the file system it supports which is the elephant in the room for me.

Currently I am most used to APFS as an Apple user but want to move to a more reliable, stable and flexible system.

As someone who is big in data hoarding, indexing, archiving and rampant note taking, I wonder if FFS2 being my option should be an unequivocal deal-breaker here for me, or whether i'm overthinking it; overstating the concerns.

Please be honest.

reddit.com
u/Hopeful_Adeptness964 — 11 days ago
▲ 28 r/openbsd

Raspberry Pi 5 OpenBSD installation stuck at U-Boot

I am trying to install OpenBSD on a Raspberry Pi 5, but the system gets stuck during the U-Boot boot stage and cannot continue into OpenBSD.
If anyone has successfully booted OpenBSD on Raspberry Pi 5, I would appreciate any guidance or working steps.

Thank you!

u/SirVast8919 — 9 days ago
▲ 154 r/openbsd

My New High security Laptop

Encrypted Disk. BIOS Password and MFA on OpenBSD… wifi works, too

I had last night and today lot of trouble to get it running. KDE plasma failed so I am on pretty XFCE. Lots to do, but all works.

What works:

- Bootup with encrypted Disk

- Video and Audio (Tested simply with youtube)

- Video Recording with Webcm (tested with vlc)

- Audio Recording (tested with Audacity)

With additional firmware drivers wifi works:

iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 8265"

Got from Ebay for ~ 177 Euro // Problem: Display has little bit ghosting, maybe new thermal paste needed

  • Manufacturer: Lenovo
  • Model: ThinkPad X1 Carbon 6th Generation
  • Display Size: 14 inches
  • Processor: Intel Core i7-8550U
  • Processor Cores: 4 Cores / 8 Threads
  • Clock Speed: 1.80 GHz
  • Turbo Speed: Up to 4.00 GHz
u/Majestic_Department7 — 12 days ago

This is what I want to do...

I'm switching from lifetime chromebook user. I bunked CS in middle school but I want to become more Computer Literate now.

I want a system that is versatile enough to be used as a firewall/endpoint router, NAS and also base OS for me to learn Emacs in depth, with proper EXWM support without dealing with a bajillion different platforms or forks. I like ARM so ideally it should work flawlessly on ARM. And that's it really, i'm not going to be meddling with intensive graphics and stuff like that.

Would OpenBSD be ideal? had narrowed it down to Open / Net / Free BSD anyway. Linux ecosystem seems way too convoluted.

Edit: If it can work on bare metal cloud through iPXE then that would be a dream

reddit.com
u/Hopeful_Adeptness964 — 12 days ago
▲ 10 r/openbsd

Good de or wm for openbsd

I have open for two week . I tried i3 and it is good ,and i added wallpaper and persian layout but it was very hard. I tried to install xfce but it got wrong.i want a good wm for it.my laptop is toshiba portage r930

reddit.com
u/pooya_ildar — 13 days ago
▲ 12 r/openbsd

Trouble with disk space on fresh install

Hi!

I'm in the process of re-installing OpenBSD on my APU router and I'm having some trouble with diskspace.

I generally go with the defaults since I assume the devs know better than me how to partition my drive. This is the auto-allocated layout for my 15gb drive:

# size offset fstype [fsize bsize cpg]

a: 183.5M 64 4.2BSD 2048 16384 1 # /

b: 147.0M 375872 swap

c: 15272.1M 0 unused

d: 173.6M 676960 4.2BSD 2048 16384 1 # /tmp

e: 167.1M 1032448 4.2BSD 2048 16384 1 # /var

f: 1567.0M 1374656 4.2BSD 2048 16384 1 # /usr

g: 404.1M 4583872 4.2BSD 2048 16384 1 # /usr/X11R6

h: 1124.5M 5411456 4.2BSD 2048 16384 1 # /usr/local

i: 2061.4M 7714432 4.2BSD 2048 16384 1 # /usr/src

j: 8218.8M 11936160 4.2BSD 2048 16384 1 # /usr/obj

k: 1225.1M 28768256 4.2BSD 2048 16384 1 # /home

I've taken a quick look at the hier man page to see if I for example could make /usr/obj smaller, but I don't really understand what it's used for and as I understand it OpenBSD should be able to run with way less disk space than I have here.

Since all the sets are so small I've opted to again go with the default and install all of them.

But at the end of the install I'm met with:

Relinking to create unique kernel...uid 0 on /mnt/usr: file system full

/mnt/usr: write failed, file system is full

uid 0 on /mnt/usr: file system full

And after a reboot:

reorder_kernel: failed -- see /usr/share/relink/kernel/GENERIC.MP/relink.log

and the relink.log file says:

(SHA256) /bsd: OK

make: don't know how to make newbsd

Stop in /usr/share/relink/kernel/GENERIC.MP

Should I change the disk layout or is there something else I can do to solve this?

reddit.com
u/LapsangWithMilk — 12 days ago

Thinkpad T42 support

I found a ThinkPad T42 in pretty good condition and I’m thinking of getting it mainly for OpenBSD in console/TTY mode so no desktop, just vim/tmux for distraction-free writing.

Does anyone here use a T42 with OpenBSD? How’s the hardware support these days? Anything I should watch out for?

reddit.com
u/muminoff — 12 days ago