-
rwp
longword, I just wanted to say that I found your tale of small memory booting fascinating and very cool that you were able to tune it to do it!
-
nimaje
hm, a simple way to make it settable would be guarding it with a #ifndef so that one could add -DHEAP_MIN=$(( 16 * 1024 * 1024 )) to CFLAGS, but no idea if it should really be exposed as settable
-
jb1277976
anyone know how to resize a vm where freebsd is the guest ?
-
jb1277976
using virtualbox on linux
-
Halian
Hi
-
jb1277976
yo
-
jb1277976
late!
-
unixwitch
does anyone have a kerberized NFSv4 export working with a FreeBSD server and macOS client? i'm having endless problems with this (random errors, or the mount completely hangs), and i'm pretty sure it's macOS's fault, but i wonder if there's anything on the FreeBSD side that can be changed to make it work better
-
Nematocyst
I'm having a problem with a package, opensmtpd binary install in FreeBSD release 14 p4. There is a fix available with a more recent version. I'm wondering if just waiting will eventually upgrade the version as I do normal pkg maint, or if I have to use ports to achieve the upgrade from 6.8.0,1 to 7.3.0,1
-
unixwitch
Nematocyst: the short answer is yes. the longer answer is that several things need to happen: 1) the port maintainer needs to update it to the latest upstream release in the ports tree; 2) that update needs to make it a quarter package release (assuming you're using quarterly, which is the default); 3) the quarterly package build needs to run after the update is available to build the package; 4) once all that has happened, pkg upgrade will pull in
-
unixwitch
if you're using quarerly and the issue isn't serious enough to merit backporting to quarterly, this could take several months to happen since the new version won't appear until the new quarterly is out
-
Nematocyst
thx. I can probably wait. it's nothing earth shattering, just doesn't support TLS incoming. not a big concern outside wanting to correct it eventually
-
ngortheone
I might be having a brain fart. I have a networking interface that has wan 2 ip addreses. Can I give one of the addresses to a vnet jail?
-
unixwitch
ngortheone: not directory, a VNET jail needs a dedicated network interface. you should create an epair interface, assign one part to the jail, create a bridge on the host, add the WAN interface to the bridge, put *one* address on the bridge interface on the host, and then put the other address on the epair interface inside the jail (*not* on the host)
-
unixwitch
s/directory/directly
-
unixwitch
this may not work if your WAN interface is something like a cable (DOCSIS) bridge that filters by MAC address, but it should work on a normal Ethernet network
-
rwp
If it is MAC address filtered then I think you can assign the hardware ethernet address to the vnet jail. Pretty sure.
-
unixwitch
i forgot a step: the other end of the epair interface (the host end) also needs to be added to the bridge, and remove all IP addresses from the WAN interface on the host (they should be on the bridge interface instead)
-
unixwitch
if you can't get past MAC address filtering (i've never had to attempt this) you could also leave both addresses on the host, assign a ULA/RFC1918 address to the jail and have the host be a router instead of a bridge, with NAT for incoming connections
-
unixwitch
in that case you also don't need a bridge
-
unixwitch
(i'm so glad we just have a v4 /28 at home now so there's no need to mess with this, i just put the public jails on a dedicated vlan)
-
ngortheone
thanks unixwitch. This is Vultr cloud, I think it should work!
-
ngortheone
> and remove all IP addresses from the WAN interface on the host (they should be on the bridge interface instead)
-
ngortheone
this bit is confusing, do you know why this is needed?
-
unixwitch
ngortheone: it's just how it works (Linux is the same way, as are all other software bridging platforms i've seen) - if you have multiple interfaces in a bridge, the IP address goes on the bridge
-
unixwitch
if you put the IP address on a bridge member interface, it may cause issues with things like ND/ARP or other strange problems where things randomly don't seem to work properly
-
unixwitch
(for example because if the host receives an ARP for 10.1.1.1 on epair0a, then bridge0 sees that ARP, but 10.1.1.1 i assigned to ix0... what should the host do?)
-
unixwitch
if you put 10.1.1.1 on the bridge, the ARP arrives on epair0a, then it arrives on the bridge, then the bridge replies because 10.1.1.1 is assigned to the bridge interface, no confusion
-
unixwitch
ngortheone: this might be more clear with a real example:
dpaste.com/HSUJVTZ2T - so here i have bridge0, which has various member interfaces (ix1, epair0a, epair1a, tap0, ...) - the IP address could go on any of those interfaces. i could put it on ix1, but i could also put it on epair3a. but the most sensible approach is to put it on the bridge, so none of the member interfaces are "special".
-
VimDiesel
Title: dpaste: HSUJVTZ2T
-
» ngortheone reads
-
» unixwitch concludes (re: earlier question) that macOS NFS simply doesn't work
-
unixwitch
wonder how FreeBSD arm64 for Apple Silicon is coming, maybe i can use this Mac Mini for a server...
-
parv
unixwitch, Don't know about FreeBSD, but OpenBSD seems to be working there
-
kevans
unixwitch: I need to go assemble these serial devices so I can get back to it a little easier
-
kevans
in my local tree we can boot all the way to multiuser as long as you're okay not having the disk (usb only)
-
parv
kevans, Is FreeBSD-on-Apple arm64 progress being reported on -arm64@ mailing list? Elsewhere?
-
kevans
nah
-
kevans
it's been stalled for a wwhile, I'll throww in a status report when I get back to it
-
parv
Thanks
-
kevans
the new year is looking a little bit better for having time for stuff like this again
-
unixwitch
kevans: i would need the disk but that sounds promising (at least much better than the wiki page). is Ethernet working? (10G in my case, i don't know if that's a different driver from the 1G version)
-
kevans
I don't recall if wew had gotten ethernet functional or not; we at least didn't have what wew needed to pull the mac address, but bge was at least visible
-
» kevans goes to price a new keyboard for his laptop
-
unixwitch
oh it's just a bge(4)? i guess that makes sense, for some reason since this is Apple i assumed they had custom hardware or something for it
-
unixwitch
(well i guess the 10G version is not a bge, but maybe it's something else common)
-
unixwitch
kevans: ooi if i do end up with a spare M1 Mini, is there anything i could help with? i do know C but i've never done FreeBSD kernel development before
-
mason
unixwitch: You might want to track down a copy of The Design and Implementation of the FreeBSD Operating System (second edition).
-
mason
Or one of the earlier iterations, either D&I/FreeBSD or D&I/BSD would be a good start
-
kevans
unixwitch: not a lot until I start getting what we have into a more shareable state
-
kevans
you might be able to do something on that 10G hardware once we have it into a reasonable state
-
kevans
if you could, for example, survive with a USB NIC if some work is needed to get the 10G NIC up
-
kevans
not ideal, but it would be better than no connectivitmy
-
unixwitch
mason: i've actually read The Design and Implementation of 4.4BSD, but not the newer one...
-
kevans
I do plan on picking up an M3 Mini when they refresh those again, I might pick up the 10G option just to have a local sample
-
rwp
ngortheone, unixwitch, Just to voice a counter example, On FreeBSD all of my IP addresses are assigned to the epair devices and none to the bridge devices.
bsd.to/JUS8/raw
-
VimDiesel
Title: JUS8
-
rwp
However on Linux systems the IP address is always assigned to the bridge there. It's a different system there.
-
unixwitch
rwp: if i'm understanding your example correctly, you have 192.168.230.41 assigned to the epair interface *inside* the vnet jail? that's fine and agrees with what i said
-
unixwitch
but you do not have an IP address on "ja0a" in the host, right?
-
rwp
Yes. But I don't have an address assigned to the bridge.
-
unixwitch
well, that's also fine, if the bridge is a pure L2 switch and the host control plane is accessed some other way (like a different interface)
-
unixwitch
my point was you shouldn't have an interface which is both a bridge member and also has an IP address assigned, which you don't in your case
-
rwp
In this example it is a separate NIC for the host. But I could look at a different example where the host is also bridged in on the same bridge.
-
rwp
Your example has an IP address 10.1.6.13 assigned to your bridge0 interface though. I don't ever assign an IP address to the bridge.
-
rwp
(However on Linux systems I would have to do it that way.)
-
rwp
FreeBSD has a rich set of software-defined-networking features. There are many ways to do things.
-
unixwitch
rwp: you shouldn't do this, see
docs.freebsd.org/en/books/handbook/…vanced-networking/#network-bridging "If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces."
-
VimDiesel
Title: Chapter 34. Advanced Networking | FreeBSD Documentation Portal
-
unixwitch
i mean, if you want to do this, and it works, that's up to you. but the documentation explicitly says not to do it this way.
-
rwp
Okay. I think I understand the point you are making. If I have a NIC say em0 and bridge it to epairs then it says don't assign an IP address to em0, assign it to the bridge instead. That's fine. But what I am doing is attaching an epair to it and assigning the IP address to the epair.
-
unixwitch
if you look at bridge(4), the DHCP example also shows the DHCP client running on the bridge interface, not the member interface
-
rwp
Both of us are in agreement not to assign the IP address to the em0 interface if it is attached to a bridge.
-
unixwitch
rwp: no, you shouldn't add an epair to a bridge and assign an IP address to the epair. i think what you mean is you assign epair0a to the bridge and then assign an IP address to epair0b, which is fine, because those are completely different interfaces and epair0b is not in the bridge.
-
rwp
I think you just accidentally said the opposite thing in that sentence between the beginning and the end. Don't assign to an epair, do assign to an epair. But let's not argue about it. I think we are generally in agreement. And there is more than one way to do it.
-
unixwitch
well, to be clear, my point is that an interface which is a bridge member should not have an IP address assigned to it
-
rwp
And I agreed with that.
-
rwp
Except for what is the definition of an interface. Both an em0 NIC and an epair are interfaces. I think that may be where we are talking past each other.
-
unixwitch
an epair is two interfaces
-
unixwitch
ifconfig epair0 create; ifconfig bridge0 addm epair0a; ifconfig epair0b inet 10.1.1.1/64 up
-
rwp
And you can't both assign an address there and not assign an address there.
-
unixwitch
now epair0a is a bridge member and does not have an IP address, epair0b is not a bridge member and does have an IP address, so no problem
-
rwp
Hey you showed your configuration which is working for you and I showed my configuration which is working for me. It's all good!
-
unixwitch
on a completely different topic, how does FreeBSD handle audio interfaces with a large number of I/Os? is it possible to have normal applications (that don't understand such interfaces) just use the first two channels for stereo I/O?
-
unixwitch
or like, if i want channels 0+1 to be stereo output and treat input 0 as a single mono mic input
-
kevans
yuripv: oh dear, the atf_check piping problem is all over that file
-
ngortheone
thanks rwp, unixwitch
-
yuripv
kevans: yeah, will fix that separately
-
yuripv
but without using pipes it looks uglier, wonder if atf_check (or atf itself) could be "fixed" instead :D
-
kevans
yuripv: unfortunately not, it's a shell thing
-
kevans
as soon as we get thrown into a subshell hell breaks loose and that's not easy to solve
-
unixwitch
what's the difference between bootonly and memstick images?
-
unixwitch
is bootonly ISO9660 while memstick is UEFI?
-
parv
My understanding: "memstick" have the base system files to be installed via USB flash disk. With "bootonly" image you would have to fetch everything over network. For the reality check freebsd.org; would have thought
freebsd.org/where would have listed but does not
-
VimDiesel
Title: Get FreeBSD | The FreeBSD Project
-
parv
Well, there is a small blurb under "Choosing an image" without reference to terms used for the images
-
unixwitch
parv: i think you're right, i assumed memstick also didn't have the base files, but it's significantly larger so perhaps it does
-
unixwitch
i suppose this differs from "dvd1" in that dvd1 also includes a few packages that memstick doesn't
-
parv
... also "disc1"
-
unixwitch
hm, right. i wish the documentation was more clear about this
-
unixwitch
memdisk and disc1 seem to include the same things, so i assume the difference is just the filesystem/partition type
-
unixwitch
s/memdisk/memstick
-
parv
Right
-
unixwitch
hmm, this motherboard's alc(4) apparently doesn't work...
-
unixwitch
-
VimDiesel
Title: 230807 – if_alc(4): Driver not working for Killer Networking E2200
-
» unixwitch wonders how to increase vt(4) font size with drm-kmod, the default is rather unreadable on a 4k display
-
yuripv
select bigger font using vidfont?
-
meena
would be nice if autoscaled that…
-
unixwitch
meena: yeah, agreed. although i remember linux has this issue too...
-
unixwitch
does anyone have an appropriate example using vidfont for a 4K display?
-
unixwitch
it's kind of weird since (in my case) amdgpu.ko only loads halfway through /etc/rc, so i guess you'd need a setting that works both before and after?
-
meena
that now makes me wonder if you could do it in a devd trigger
-
tsoome
unixwitch which one is picked by default?
-
unixwitch
tsoome: which what? font? i have no idea
-
meena
unixwitch: basically, if it's picking up the wrong don't, it's tsoome's fault
-
unixwitch
it seem like a font that would look nice on a 1920x1080 display but on a 3840x2160 display it's bare readable
-
tsoome
I would expect you get 16x32
-
tsoome
you can check with kenv
-
unixwitch
which kenv variable is relevant here?
-
unixwitch
ilythia% kenv|grep -i font
-
unixwitch
screen.font="6x12"
-
unixwitch
ilythia%
-
tsoome
ou, why do you get 6x12?
-
unixwitch
i don't know!
-
unixwitch
the system boots in the default EFI vt(4) config which is 1920x1080 and that looks fine, i guess that's what it selects the font?
-
tsoome
hm, well, you can try on loader prompt: set screen.font=
-
unixwitch
halfway through boot, /etc/rc.d/kld loads the amdgpu.ko module which doubles the resolution
-
tsoome
without value, you should be presented with list of options
-
tsoome
so you can try different ones to see which is best for you
-
unixwitch
ic, i will try that in a while, thanks
-
tsoome
but, I'd start with setting gfx resolution first
-
unixwitch
what do you mean
-
unixwitch
if i could get loader(8) to start in 4K that would be awesome (as long as it had the right font...) but from what i understand this depends a lot on my system's UEFI implementation and the GPU's UEFI driver
-
tsoome
I mean, if you want to have 3840x2160, you can set it and it may do
-
unixwitch
or the GPU's, uh... is it called a GOP?
-
unixwitch
tsoome: how would i set that to try it?
-
tsoome
yes, if firmware does not allow to change to better resolution, then you can not change it
-
tsoome
yes, gop is the command there
-
tsoome
gop list, gop get, gop set
-
unixwitch
that's a loader(8) command?
-
tsoome
yes
-
unixwitch
interesting. i will test that too
-
unixwitch
is there a list of valid values for loader.conf's screen.font=?
-
tsoome
if you use set screen.font= without value, it will show the list
-
tsoome
if the resolution change does not work, you can just set screen.font=... in loader.conf, the other option is to leave boot screen as is and load console font from rc
-
tsoome
you can find fonts used by boot loader from /boot/fonts
-
» unixwitch wonders how to change the title font in fvwm3
-
unixwitch
tsoome, meena: so "screen.font=12x24" seems to fix the problem, except the font is far too large before amdgpu is loaded... but i guess i can put up with that
-
tsoome
yes, thats why I suggested to use method from rc scripts - then you have good screen at boot time and larger font once the system is running
-
tsoome
of course, if you get X running, then the console does not matter too much anyhow
-
tsoome
gop command did not allow to set better resolution?
-
unixwitch
oh, i didnt try gop, will try that next time
-
unixwitch
okay, seems like 'exec="gop set 0"' in /boot/loader.conf fixes the problem, although it adds a surprisingly long delay (~10s) to booting
-
debdrup
unixwitch: the 10 second delay comes from autoboot_delay which you can also set in loader.conf(5)
-
unixwitch
debdrup: i don't think that's where it comes from, i get the normal 10s countdown after it switches to the new resolution
-
debdrup
oh, hm.
-
unixwitch
i mean, 10s is not a huge issue. it might be just how the GPU's GOP driver works...
-
unixwitch
oh ffs, Firefix has broken X selections?
-
unixwitch
if i wanted to use Windows i'd use fucking Windows, what the fuck
-
yuripv
ugh
-
Remilia
Firefox needs to stop reinventing UI tbh
-
unixwitch
turns out it's actually vim (???) which broke this by turning on 'mouse' by default
-
Remilia
I really dislike their owner-drawn menu
-
dch
is there a per-user equivalent of kern.ipc.somaxconn / kern.ipc.soacceptqueue ?
-
dch
mmm maybe something in login.conf ...
-
dch
openfiles is already set to unlimited, I wonder what else sets it
-
dch
I'm trying to get my webserver to do more than 1024 somaxconn
-
unixwitch
ok, next problem, Nextcloud requires a new sign-in every time i log in... am i missing some sort of gnome-keyring shit?
-
norrland
stupid question. in rc.conf, cloud-init on one machine writes 'ifconfig_ens1=DHCP' for example. Will this mess up parsing? not sure if "" around DHCP is needed or not.
-
Remilia
norrland: rc.conf is sourced as a shell script, thus shell syntax is valid
-
Remilia
you need quotation marks if there are unescaped whitespaces
-
mvee
Hello all. New FreeBSD user here, very limited knowledge. Trying to create a jail via bsdinstall. base.txz fetches fine but it keeps failing at lib32_dbg.txz. Any advice on how to get this resolved?
bsd.to/YZeu
-
VimDiesel
Title: dpaste/YZeu (Plain Text)
-
meena
norrland: i should fix that
-
meena
I don't like the inconsistency
-
meena
Also, i need to update the cloud-init ports…
-
meena
norrland: I've got a few good patches in some of which are not yet in 23.4.1
-
meena
codeberg.org/meena/openbsd-ports/sr…d-init/sysutils/cloud-init/Makefile here's the OpenBSD port I've been working on. Those runpath patches are useful to all BSDs
-
VimDiesel
Title: openbsd-ports/sysutils/cloud-init/Makefile at add/cloud-init - meena/openbsd-ports - Codeberg.org
-
polyex
why would bsdinstall installerconfig have cap_mkdb /etc/login.conf in it? i know that builds the db there but not why it's needed
-
polyex
to inject it?
-
dch
polyex: I guess there's some machine-dependent settings/config in there? your guess is as good as mine
-
polyex
it's after export PATH... could it be that?
-
dch
mvee: welcome! I would use the default freebsd mirror on the list for the install; its also over http and not ftp
-
dch
this should get you to a url like
download.freebsd.org/ftp/releases/amd64/amd64/14.0-RELEASE which has lib32-dbg.txz
-
VimDiesel
Title: Index of /ftp/releases/amd64/amd64/14.0-RELEASE/
-
dch
note thats lib32- and not lib32_ which is what your URL shows. weird.
-
dch
the paths come from MANIFEST file in that same direcory, mvee, so I speculate that:
-
dch
- columns represent the filename, then checksum, size, then the local name to save as? etc. ?
-
polyex
what's the term for injecting a var into my current terminal's env?
-
polyex
like how would you say "then ____ FOO=bar to ..."
-
mvee
dch: Appreciate the welcome and advice! I was able to install by not selecting lib32_dbg.txz but ran into other issues, too many to list...Followed the steps here and install seems to work.
docs.freebsd.org/en/books/handbook/jails
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
dch
polyex: I don't understand the question, but its' probably "export" for the word, and "env FOO=BAR ... command" just to change it for one.
-
V-T60
Hello. How do I add secondary HDD to my ZFS?
-
V-T60
i want redundancy. now i have only single drive
-
dch
V-T60: basically you need to install the drive, of same or bigger size, then partition it manually, update boot loaders etc, and then finally add the partitioned drive portion to the mirror
-
dch
for the partitioning, man gpart, and use gpart backup|recover from old-> new disk is a great trick
-
mvee
dch: also, not sure if it matters but when using bsdinstall, I used the default freebsd mirror each time.
-
_xor
What's ipfw-equivalent to pf's syntax of selecting a specific interface IP via `(re0:0)`?
-
_xor
My WAN interface has two IPs, the primary one that is set via DHCP and then a secondary one that is statically set. The DHCP-assigned IP is used for client NAT (outbound-created states). The static IP is used for redirects (inbound states for redirects to internally hosted services).
-
mane
any clues why my apache wont listen on 443?
-
thumbs
mane: You need a Listen 443 directive.
-
mane
in which file?
-
thumbs
mane: Any.
-
thumbs
mane: The context matters, not the config file name.
-
thumbs
mane: Listen is only to be used in the Server context.
-
unixman_home
mane, does "sockstat -l" show it is not listening on 443?
-
mane
ok got it working
-
mane
<33
-
mane
now why pf wont be executed at boot despite having pf enabled in rc.conf and why rc.local wont get executed
-
Zyxer
Why you think pf not executed?
-
dautor
Has something major changed between 13 and 14 with unionfs? It is so buggy now... While trying to build a minimal repro for a filesystem corruption bug i ran into a kernel panic bug. (both now reported)
-
dautor
Also, now one of my favorite tools is unusable on 14 because of the corruption bug.
-
kevans
unionfs saw a lot of bug fixes from 13 -> 14 :-)
-
dautor
lol... makes sense
-
dautor
interesting thing is that the corruption bug does not happend when using ufs
-
meena
dautor: why is that interesting? i would expect a filesystem corruption bug to be filesystem specific
-
dautor
meena: I assumed it would be independent of the underlying fs but rather a bug in the interaction of unionfs and nullfs.
-
meena
oh
-
meena
so, a VFS issue then maybe?
-
dautor
yeah :)
-
dautor
and also, it is not reproducable in 13
-
dautor
here's the issue if you want to take a look at the repro steps:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=275871
-
VimDiesel
Title: 275871 – [unionfs] [nullfs] [zfs] corrupt filesystem
-
dautor
I felt really disturbed when I first saw readdir return files with slashes in names - it felt so alien.
-
meena
dautor: i think that's one of the very few characters not allowed file names
-
dautor
Yeah, are there any other characters apart from '/' and '\0' that aren't allowed?
-
meena
dautor: dunno?
-
meena
i honestly think that's it
-
meena
dautor: this caveat is what's really interesting: IMPORTANT: If you 'ls' /var/repro/x/a/b before executing it everything works fine.
-
dautor
meena: Yeah, that tripped me up quite a bit. I inserted 'ls' between each step (in program - not in the repro script) to see where it breaks and couldn't find anything weird so I assumed it was something timing specific.
-
jb1277976
Anyone here use wifibox ? if so how do you make the speed faster ?
-
meena
jb1277976: how slow is it rn? how fast should it be?
-
jb1277976
don't know. takes a while to load some pages. once it loads its fine. looking at
xyinn.org/md/freebsd/wifibox there is a part about increating the memory which i did to 512M but some pages are really slow. im chatting right now on wifibox
-
VimDiesel
Title: Fast & Stable WiFi with wifibox on FreeBSD | @fearedbliss
-
jb1277976
im gonna try to reach out to the maintainer