-
rwp
kevans, I admit not to being very familiar with postgresql. Not for any reason except that other people direct me to I have always run MySQL now MariaDB.
-
rwp
Most of the time those will upgrade in place. But sometimes notable versions will just fail to upgrade. Therefore I always make an SQL backup dump before the upgrade. Then either upgrade or purge and install. Then load the backup. That's a guaranteed way to success.
-
lw
rwp: minor versions can upgrade in place, e.g. 16.0 to 16.1. major versions cannot upgrade in place, you have to run pg_dumpall
-
lw
this is well documented in the manual and, i would assume, familiar to any postgres operator
-
lw
do you ever start a buildworld and by the time it's done you can't remember what you were trying to test?
-
rwp
All of the time! All of the time.
-
rwp
I must keep notes about what I am doing or I lose the juggle. Especially for things which take a while and therefore I try to do multiple things timeslicing.
-
james
-
VimDiesel
Title: bhyve - A solid HOWTO with BHYVE on FreeBSD 14 and Windows 11 | The FreeBSD Forums
-
gp5st
I messed up. I tried updating a machine while it was updating (I thought I was logged into another machine.). Now I get some version of "ld-elf.so.1: Shared object "libutil.so.9" not found, required by "sudo"" when I try to run anything
-
gp5st
I'm a bit beyond what I know to recover from this
-
gp5st
trying to login from the console gives the same (but with login instead of sudo in the error, unsuprisingly)
-
gp5st
If I can boot the vm from a cd image, can I repair?
-
lw
gp5st: sometimes this kind of issue can be fixed with 'pkg -f upgrade' to reinstall everything
-
gp5st
I can't run pkg or sudo because it complains about missing libraries
-
lw
ah you can't log in at all? that's unfortunate
-
lw
what version were you previously running and what did you upgrade to?
-
gp5st
I'm going to try to copy /lib /lib64 and most of /usr and see if I can get something working
-
gp5st
13.2 to 13.3 but I think I ran freebsd-update install at the same time as another one was running
-
gp5st
otherwise I'm not sure what I did :-\
-
lw
i suggest booting from install media, if you can, and use freebsd-update -r to complete the upgrade
-
gp5st
OK
-
lw
you may need to mount your existing system on /mnt or whatever to do that
-
lw
gp5st: but wait, if you can get a root shell, try pkg-static
-
gp5st
i can't get a root shell since I can't sudo, su, or login :/
-
lw
e.g. reboot, at the loader prompt type 'boot -s', get single user root shell, run pkg-static upgrade -f
-
gp5st
ah, ok, let me see
-
targetdisk
can I boot on a microvm on Qemu KVM???
-
targetdisk
-
VimDiesel
Title: ‘microvm’ virtual platform (microvm) — QEMU documentation
-
targetdisk
but like on x86 64
-
targetdisk
so ignore URL
-
targetdisk
actually noo URL is good
-
targetdisk
aaaaa
-
gp5st
it's a digitalocean vm
-
targetdisk
I want to run on my Thinkpad locally
-
gp5st
oh sorry, I misread
-
targetdisk
with minimal amount of motherboard emulation
-
targetdisk
it's okay
-
targetdisk
typed it like a shitstorm, but we got there
-
targetdisk
sry
-
targetdisk
lmao
-
targetdisk
mmmm virtiofs
-
targetdisk
can I build FreeBSD from Linux?
-
targetdisk
I want to hack on the kernel from the Linux side until I can virtio all the things
-
targetdisk
yay I got a cool thingy to do the happy dance
-
targetdisk
Got the nographic installer looking hella pretty
-
targetdisk
love the EFI boot menu on FreeBSD
-
targetdisk
it's so preeettttyyyyy
-
targetdisk
O.o
-
targetdisk
qemu goes brrr
-
targetdisk
installing git on FreeBSD :)
-
targetdisk
can I plan9 share myself or something???
-
targetdisk
that'd be really really nice
-
targetdisk
frfr
-
targetdisk
I'd love y'all forever if that was like a thing
-
xin3qu
What -exactly- is the difference between the -memstick and the -disc images?
-
remiliascarlet
The one is flashable to USB, and the other is burnable to DVD or usable on VMs.
-
xin3qu
remiliascarlet: Yes, that's what I'm thinking, too. But - e.g. the proxmox image does not diffeentiate between those two.
-
xin3qu
OK, seems that it does not make a difference for amd64, but for any other architecture. From /14.0R/announce/ "Additionally, this can be written to a USB memory stick (flash drive) for the amd64 architecture"
-
adilix
hi all
-
Jadi
hi there adilix
-
» meena builds lw's new MINIMAL kernel to see if it'll boot
-
meena
wy isn't there a way of saying: don't build the modules
-
sfox
my laptop consistently gpu crashes every 2 days
-
sfox
only the mouse cursor still works
-
sfox
and audio
-
meena
oh, the VM has 4 vCPU / 4 GB RAM… that's why this is taking forever
-
meena
sfox: you getting any dumps?
-
sfox
no
-
sfox
it doesn't dump. i have to hold the power button
-
voy4g3r2
does anything appears in /var/log/messages BEFORE you do the power button check?
-
sfox
lots of complaints about the atheros wireless driver
-
sfox
some gpu stuff
-
sfox
-
sfox
www.nuegia.net/dist/messages
-
polarian
So the wifi guide for FreeBSD involves editing /etc/rc.conf to provide ifconfig flags, and also editing wpa_supplicant for adding entries, this is all well and good apart from when you are on the move and switching between networks... I don't want to be broadcasting saved networks (no autoconnect) as that will leave me vulnerable to evil twin attacks, secondly, switching between WPA at home, and
-
polarian
public unencrypted networks at university is troublesome as I keep needing to change /etc/rc.conf, I am aware this is a role of a network manager... but I don't want to use something really heavy... is there any simple network managers... or even a simple way to handle this with less mental overhead?
-
V_PauAmma_V
If you're looking for a GUI network manager, there's wpa_supplicant_gui. Otherwise, there's wpa_cli.
-
V_PauAmma_V
(wpa_supplicant_gui is a package. wpa_cli is installed with the base system.)
-
dch
just got a 2nd person reporting weirdness with rc.d scripts in jails in 14.0-RELEASE that only start if run manually
-
dch
I can reproduce this, but .. maybe I am doing this completely wrong?
-
SKull
dch: works fine here. maybe you are doing it wrong, or maybe I'm just lucky :)
-
dch
SKull: yea I am making a minimal rc.d script in the hope of finding some insight
-
dch
this example
docs.freebsd.org/en/articles/rc-scripting doesn't run at startup for me
-
VimDiesel
Title: Practical rc.d scripting in BSD | FreeBSD Documentation Portal
-
V_PauAmma_V
dch, can you be more specific? Which example are you trying? (Also, I suspect that article needs a refresh. Going by the copyright years, it hasn't been substantially updated for 12 years.
-
V_PauAmma_V
)
-
dch
V_PauAmma_V: take the very first example script, #3 a dummy script, it doesn't work.
-
babz
it's not supposed to do anything...
-
dch
babz: it is supposed to execute, which it doesn't.
-
babz
what do you count as workng ?
-
dch
running rc_startmsgs=YES rc_debug=YES dummy_enable=YES dummy_flags=flagging
-
dch
I would expect to see something in syslog from it
-
dch
a slightly fancier one also isn't executed
-
dch
-
VimDiesel
Title: Snippet | IRCCloud
-
dch
when the jail is restarted, this script is never run
-
dch
and yet, `jexec wtf service dummy start` shows it executing happily
-
dch
I think it has to have the `# PROVIDE: dummy` to run at boot
-
V_PauAmma_V
OK, that article definitely needs a refresh. The examples don't include the magic lines specified in rcorder(8), including the one you just mentioned.
-
babz
it does ?
-
babz
are we reading the same page ?
-
babz
-
VimDiesel
Title: Practical rc.d scripting in BSD | FreeBSD Documentation Portal
-
V_PauAmma_V
Oh, I was looking at the same early examples dch mentioned.
-
dch
babz: if we're going to have tutorials then they should work OOTB
-
llua
how do you stop a process supervised with daemon(8) from restarting? a simple example: daemon -r -R 3 ls /
-
llua
outside of sigkill to the daemon process
-
dch
llua got to kill the daemon itself, signals aren't propagated to the child
-
llua
ok, thank you
-
dch
-
dch
I logged it only 8 years ago
-
otis
llua, dch: i've put togehter
reviews.freebsd.org/D44944
-
VimDiesel
Title: ⚙ D44944 daemon: Add -C (--restart-count) option
-
dch
meena: ^^ otis has a thing, I think you looked at this a while back
-
alepzi
favorite stack for freebsd observability? already heard grafana, prometheus, netdata, and collectd. what else are ppl using and liking?
-
ridcully
alepzi: munin
-
alepzi
added to list ty ridcully
-
rtprio
polarian: broadcasted out of the house? what?
-
polarian
rtprio: I am not a wifi expert, but what I know of it is when you attempt to join a wifi network you are broadcasting a request for a specific SSID
-
polarian
this can then be intercepted by a malicious user, and then a fake network can be broadcasted, your device then automatically connects to this
-
polarian
Evil twin attack...
-
polarian
I don't want to keep wpa_supplicant from looking for saved networks
-
rwp
I think WiFi networks can only ever be treated as untrusted networks. Don't let it fool you that it includes some weak encryption into thinking it is secure.
-
rtprio
do you do that for all your devices? that sounds incredibly inconvenient
-
rtprio
but, sure, ok
-
alepzi
maybe you can set up wifi with public key auth?
-
alepzi
so evil twin won't have the key you set it up with?
-
rwp
alepzi, WiFi is a product of the Wi-Fi Alliance a consortium of equipment vendors who make money licensing devices.
-
rwp
They operate behind closed doors. They are notorious for creating brand new standards with design flaws.
-
rwp
Every time they release a new generation and standard then security researches look at it and go, "Oh man... If you had only let us comment on this awful thing before you make it a hard requirement. Here's the list of problems with it."
-
rwp
WiFi is the available radio network but I would never treat it as a trusted network. WiFi is always going to be an untrusted network. Which is okay if you treat it that way.
-
alepzi
so no pub key auth? lmao wifi
-
polarian
rwp: thats not what I mean
-
polarian
rtprio: I disable autoconnect... and turn off the antenna when I am not using it
-
rwp
The Wi-Fi Alliance is really meant as a way to make money licensing the logo that vendors put on retail packaging.
-
polarian
Its how I run a Linux laptop, I manually connect when I want to... other than that it shouldn't connect.
-
polarian
alepzi: that would require compatible APs
-
polarian
and off the shelf consumer APs aren't going to cut it
-
rwp
polarian, If my machine connects to an Evil Twin that's going to be annoying but I won't be worried about security.
-
polarian
also theres one additional issue leaving an antenna broadcasting...
-
polarian
its constantly draining power trying to find a AP
-
rwp
Basically if I ma connected to an Evil Twin then I will start to see network failures as certificates fail to validate and connectivity is rejected.
-
polarian
rwp: I heard from someone that without TLSv1.3 channel bindings this can be bypassed too
-
polarian
how? they never gave me a reference to how you can
-
polarian
but TLSv1.3 channel bindings are not widespread supported currently (at least I know it isn't for the XMPP community)
-
rwp
There are also various attacks against the various TLS versions too. But again those are at the layer below. Those attacks do not void things like https or ssh connections.
-
rwp
I am not a fan of the centralized Certificate Authority model of https but regardless that is the security model that has been adopted to keep connections secure. And of course ssh has Trust On First Use which protects the 2nd connection.
-
polarian
rwp: you are free to make your own trust store :)
-
rwp
And of course for OpenVPN connections we do make our own trust store.
-
rwp
I am just saying that when I take my mobile device to a coffee shop or airport I always assume that I am operating in a hostile environment. Trust No One!
-
alepzi
maybe we could set something up so you can allow anyone open wifi connection, but they can't pass any data unless they use pub key auth to a sidecar?
-
concussious
can I use dma to fetch imap mail?
-
alepzi
-
VimDiesel
Title: FOSDEM 2024 - Soft Reboot: keep your containers running while your image-based Linux host gets updated
-
alepzi
wonder if freebsd could do that with jails?
-
souji
concussious: I dont think so, since it's a MTA
-
souji
-
VimDiesel
Title: dma(8)
-
last1
I have a text file that somehow became corrupted or it contains some unprintable chars or something
-
last1
not sure how that might have happened
-
last1
is there a way to clean it ?
-
last1
for some reason file patch.diff thinks it's a binary file
-
concussious
souji: I didn't either, and didn't see anything that seemed appropriate in dma(8), but I just wanted to check here. thanks!
-
souji
concussious: no worries :)
-
meena
what do I have to put into loader.conf for a verbose boot?
-
kevans
boot_verbose=YES
-
crest
i'm running into problems with my locally compiled pkgbase repo
-
crest
the kernel (+ its -dgb) package have FreeBSD_version: 0 as annotation instead of the true kernel ABI version number
-
crest
which causes pkg(8) to refuse the repo
-
meena
crest: wow, how'd you do that?
-
crest
meena: no idea
-
crest
about why it broke
-
meena
kevans: now I just need to figure out howto scroll in the qemu(?) window… or maybe switch to serial console to do that??
-
crest
let me check the older versions maybe it's only that the latest pkg 1.21.x notices this?
-
crest
nope my 14.0p5 repo has a valid ABI version
-
meena
kevans:
freebsd/freebsd-src #1199 in case you know any better
-
VimDiesel
Title: sys/amd64/conf/MINIMAL: remove virtio by llfw · Pull Request #1199 · freebsd/freebsd-src · GitHub
-
kevans
meena: probably need virtio_blk as well
-
kevans
maybe
-
kevans
ideally we wouldn't be removing virtio at all until loader can actually autoload beyond fdt
-
crest
why not remove the ahci driver while you're at it
-
crest
and nvme
-
crest
how much code size do the virtio_* drivers add to the resulting kernel (assuming you don't rip out all of pci)?
-
kevans
removing virtio is well within the scope of the ultimate design of MINIMAL
-
kevans
it's just that we're not there yet
-
crest
isn't it more imporant to boot in common hypervisors without having to load moduls on the loader prompt to even add the device drivers back in via loader.conf?
-
crest
because i suspect small virtual machines are the most common usecase for MINIMAL other using it as a starting point for custom kernel configs
-
crest
meena: even more curious the FreeBSD-kernel-generic-14.0p6 package already installed from the repo has a valid FreeBSD_version annotation
-
kevans
there is no most common usecase for MINIMAL right now
-
crest
wtf?!? how did i get into this state
-
crest
lets try make cleankernel buildkernel followed by building the (kernel) packages again
-
crest
did i do something stupid? maybe upgrade the pkg package from 1.20.* to 1.21.* while building the kernel packages?
-
crest
strange
-
crest
kevans: is there a usecase/goal for the MINIMAL config other than the smallest build artefact that still gets to the missing rootfs prompt?
-
kevans
the goal is GENERIC - all the crap that can autoload
-
crest
e.g. what about removing IPv4/IPv6? what about SMP or ACPI support?
-
kevans
i'm not going to continue to entertain this conversation if you're not going to read what I've already written
-
crest
i did read it and i don't understand why it's considered an acceptable trade-off
-
kevans
16:33 < kevans> it's just that we're not there yet
-
kevans
I said it's not a trade-off, we're not ready but it's within the scope of what it was meant to do
-
kevans
acceptable trade-off
-
crest
okay so until the automatic loading of kernel modules by vendor + device id works removing those drivers isn't a valid option?
-
kevans
imo yes
-
crest
sorry. in that case i misunderstood you the first time around
-
kevans
if it's needed to get to multi-user because loader can't do it on its own yet, then it needs to stay imo
-
kevans
once it can be autoloaded it's fair game
-
crest
at least those other than virtio_blk and virtio_scsi can be loaded later already by devmatch
-
lw
crest: ahci and nvme have already been removed from minimal
-
lw
virtio_blk is the only block device driver included
-
lw
actually that's not quite true, the xen block driver is still there but that's because you can't remove that, i don't think it even comes as a module
-
lw
i wish we could remove uart, that means fixing the console init stuff to allow the console to be a module
-
lw
(which might also help with console on usb serial)
-
lw
meena: sorry, only just saw your comments, in the middle of setting up a new system...
-
lw
which had a really weird bug: it worked fine except reboot and shutdown would hang. turns out that was caused by killing the getty on ttyu2, but i'm confused about why... maybe it generates a serial break that drops into kdb?
-
lw
meena: are you deliberately using virtio_scsi rather than virtio_blk? i'm not that familiar with virtio so not sure what the difference is (i guess scsi is to pass through a raw scsi device?)
-
meena
lw: no change when I add blk
-
dstolfa
lw: i haven't looked at the code but i imagine virtio-scsi is still just virtio, but talking the scsi protocol
-
dstolfa
i don't think it does any kind of passthrough, it just emulates a scsi device
-
lw
oh. weird
-
lw
meena: also if you want to scroll up, just start qemu with -nographic and use the serial console
-
lw
oh wait is this bhyve
-
dstolfa
lw: oh nevermind, i've just looked at the code and it seems to bridge directly to scsi devices
-
lw
yeah, i guess it's so you can attach an iscsi lun to the vm directly
-
dstolfa
yep
-
dstolfa
looks that way from the code, anyway
-
lw
(or any kind of lun, but iscsi seems like the most obvious application)
-
» dstolfa finds virtio-scsi to be a bit of an odd name for that
-
crest
virtio-scsi hooks into the CAM target layer
-
crest
CTL (CAM Target Layer) allows the kernel to act as both target and initiator
-
crest
bhyve's virtio-scsi paravirtualised driver uses a CTL port (think of it as a virtual HBA) on the host to access the hosts CAM internal "virtual" scsi bus
-
crest
and allows the guest to act as initiator through the virtio-scsi device
-
crest
the big advantage over other block storage backends is that you need just one pci device in the guest for multiple block devices
-
crest
it's also the only bhyve block storage implementation that supports hot plugging/unplugging (and resizing) of storage devices
-
crest
the downside is that its complex to configure (correctly)
-
crest
each bhyve guest needs its own CTL port and LUN mapping table (from per port LUNs -> global LUNs) for secure isolation
-
crest
but afaik there exists no tooling to make it approachable for mere mortals^^
-
crest
but as of FreeBSD 14.0 it correctly passes through the scsi command tags (they're no longer truncated to 32bits)
-
crest
the UEFI BootROM can boot of virtio-scsi devices
-
crest
and in theory you could "passthrough" other scsi device types than block devices
-
crest
if you have a streamer give it a try ;-)
-
crest
but i doubt anyone is able to find working hardware and drivers to hook up the crazier types of devices that used to exist for the scsi bus e.g. NICs, eGPUs, flatbed scanners, etc.
-
alepzi
kevans: is removing virtio part of pkg base?
-
crest
afaik its unrelated