-
dvl
aic: thanks, I'll try that in the morning.
-
kerneldove_
if i'm only adding 1 ip to a system do i need the "alias" in "ifconfig_em0_alias0" or can i just use "ifconfig_em0"?
-
ivy
kerneldove_: the primary IP address on an interface is not an alias, so you should not use ifconfig_em0_alias0
-
V_PauAmma_V
That's not what rc.conf(5) says - ..._alias<n> starts at n=0.
-
kerneldove_
so who's right? :/
-
ivy
the primary IP address goes in ifconfig_em0. you only use the alias entries for the second and subsequent IP addresses, which are called aliases
-
ivy
a system with only a single IP address does not have any aliases
-
kerneldove_
ok that's what i thought. would be helpful if rc.conf included an example of that no?
-
ivy
there is an example in rc.conf(5), but for whatever reason it's documented under the entry for network_interfaces. search for ifconfig_
-
V_PauAmma_V
kerneldove_, I think both are right. I misunderstood what ivy meant, I believe.
-
V_PauAmma_V
(The first alias, which is the second IP address, is _alias0. This is admittedly confusing.)
-
ivy
if this was being designed from scratch i think there are several much less confusing ways to do it, but unfortunately it dates from when aliases were a new and fancy thing
-
kerneldove_
iirc someone told me once to always use the _alias# syntax because that's easier to change than if you have an ip directly on the interface itself is that true?
-
V_PauAmma_V
I have no idea how that would be easier.
-
ivy
aliases *are* directly on the interface, they're just configured with the 'alias' keyword, so i don't see how that's true
-
ivy
on some systems i assign addresses to lo0 rather than the interface, in which case they have to be aliases, but this only works for ipv6
-
kerneldove_
ok ty
-
kerneldove_
what would happen if i used the igb driver for an intel nic capable of using the ixl driver? less performance or?
-
ivy
i would expect the card to not work at all, unless the hardware has some sort of backward compatibility system
-
ivy
if you mean em instead of igb, they are the same driver, the interface name is just different for historical reasons
-
kerneldove_
no ive been using igb0 on this rented server but i just noticed it has ixl0 too
-
ivy
that is a different network port
-
crb_
V_PauAmma_V: This computer has an externally visible IP that I want to assign statically, and an IP on my internal network that I want it to get via DHCP
-
V_PauAmma_V
On the same interface? You like living dangerously.
-
crb_
V_PauAmma_V, why is that so dangerous
-
V_PauAmma_V
Because if that server (or anything else on that network segment, really) is compromised, the attacker may get to observe traffic on your internal subnet as well. Unless I'm missing something of your setupn that's something you definitely don't want to happen.
-
V_PauAmma_V
s/setupn/setup,/
-
kerneldove_
i make a lagg0 with 2 physical nic ports in it. the lagg0 is then a member of bridge0, and bridge0 has the ip assigned to it. but i see in pf it's seeing traffic come in on lagg0, not bridge0. is that normal and expected?
-
lessless
folks, I'm moving to terminal-based email client, because that's where I spend most of my time. Any suggestions on a good email client?
-
carneous
mutt
-
paulf
In the days before e-mail was filled with MIME crap I used to like elm
-
ridcully
mutt
-
MelMalik
by mime crap do you mean attachments
-
paulf
anything other than plain text e-mail
-
paulf
e-mail wasn't designed for file transfer, that's what FTP is for
-
kerneldove_
i make a lagg0 with 2 physical nic ports in it. the lagg0 is then a member of bridge0, and bridge0 has the ip assigned to it. but i see in pf it's seeing traffic come in on lagg0, not bridge0. is that normal and expected?
-
kerneldove_
and is it right to put the ip on the bridge and not the lagg?
-
kerneldove_
just wanna make sure
-
divlamir
Sounds fine, lagg0 is a bridge port, so of course you can see traffic there. You can filter on the bridge, but also on and between the bridge ports
-
divlamir
Think there was some caveats for rules on bridge ifaces, check the man pages
-
mzar
kerneldove_: plase do it
-
kerneldove_
mzar do what?
-
mzar
move address to the bridge
-
kerneldove_
ya it's on there
-
kerneldove_
i think i read in freebsd 15 it's not even allowed any more to put ip on member of bridge
-
nimaje
lessless: I heard mmh is good, but I have yet to test it myself
-
ivy
mmh looks unmaintained, the last release was in 2019
-
ivy
although nmh (which it was forked from) is also barely maintained nowadays...
-
jan0sch
lessless: aerc, alpine, mutt, neomutt... I use aerc for a couple of years now.
-
divlamir
First time I hear abou aerc, thanks! Been using mutt for hm forever, but this one seems worth a try
-
dango
Seconding aerc. I think it's also common to pair it with mbsync/isync to download the emails as local files ("maildir" format), and then read the email from those files.
-
cracauer
When sysctling to use kernel gdb in 16-current I get
-
cracauer
sysctl: debug.kdb.current=gdb: Invalid argument
-
cracauer
I checked, option GDB is in. That is the GENERIC kernel.
-
[tj]
hey! what hardware do you expect to back this?
-
cracauer
bhyve
-
[tj]
I think there is an issue with port detection for gdb and it might be that no module is loaded early in boot to register itself
-
[tj]
so a uart?
-
cracauer
yes
-
[tj]
can you create a bug I'd like to add this to my todo list
-
cracauer
will do
-
[tj]
as a work around you can use gdb on the bhyve process (bhyve(8) -G flag)
-
[tj]
let me know the bug and I'll take it, unless you can assign it to me
-
cracauer
Need a moment, my bugzilla password seems to have changed.
-
cracauer
-
[tj]
to be clear, using the -G flag you just attach gdb to the tcp remote on the vm host
-
[tj]
you won't get gdb listed in the available debugger backends
-
josephholsten
okay, dch & divlamir got my podman setup completely unblocked. Anyone got a preference among
docs.linuxserver.io/images-by-category of which to port first? I'm starting with smokeping since I've used it a bunch and it's one of their oldest images.
-
leah2
what's the easiest way to test boot a custom built kernel in qemu? can i use -kernel somehow?
-
llua
yeah
-
llua
-kernel file -initrd file -append 'console=ttyS0 root=...' ...
-
llua
oh. thought this was #qemu
-
llua
actually unsure of -kernel works with kernels other than linux
-
ivy
don't quote me on this, but i think for some platforms (arm64, riscv64?) we have a build option to generate a kernel that Linux boot loaders can load
-
Retrofan
Hi guys
-
Retrofan
I had some trouble connecting to my IRC
-
Retrofan
I am mosaid
-
Retrofan
I successfully install Ubuntu jammy in jail, but can't run wine on it..
-
Retrofan
I get back Segmentation fault, I this related to needed gpu drivers or something?
-
leah2
ivy: well i'd need amd64...
-
ivy
leah2: you might find it easier to use bhyve with bhyveload(8), if that's an option, it's specifically designed to load a freebsd kernel directly
-
ivy
i feel like this should be possible with qemu too, but i don't know how off hand
-
leah2
hm, problem is my kvm host is linux and i'd need nested virtualization then
-
dch
huh that url from josephholsten with a bazillion linux containers is interesting
docs.linuxserver.io/images/docker-hedgedoc/#environment-variables-e
-
dch
it has all the containerfiles used to build them e.g.
github.com/linuxserver/docker-hedgedoc.git
-
leah2
ivy: so i see a menu, but then it fails with can't find '/etc/hostid' can't find '/boot/entropy'
-
nimaje
pretty sure those two files should get created at first boot and not be required for booting
-
leah2
i'm just trying the example in the manpage...
-
kevans
those aren't actually errors
-
leah2
but then it quits afaics
-
kevans
er, sorry, didn't read the next line quickly enough
-
Retrofan
could I install GPU drivers on debbootstrap jail?
-
ivy
Retrofan: drivers, no. you can install userland software that *uses* the FreeBSD drm drivers, which may work since they're ported from Linux and the interface is compatible. you may need to create /dev nodes
-
Retrofan
Already created nodes, x11 and sound is working well.. but wine can't really know why it's fail
-
ivy
i would be surprised if Linux WINE works in Linuxlator to be honest, it does some very low-level things with memory management
-
Retrofan
oh
-
Retrofan
never know thta
-
Retrofan
*that
-
Retrofan
but it's a full userland..
-
ivy
is there a particular reason you're using Linux WINE rather the native FreeBSD version?
-
Retrofan
Bec I am running an linux browser
-
Retrofan
and I need a wrapper called pipelight to run windows plugins there
-
Retrofan
and honestly that wrapper never works well on freebsd
-
ivy
frankly at this point i would probably just use Linux, or at least a Linux VM
-
Retrofan
No, I am using that as my main one
-
Retrofan
browser
-
Retrofan
until the dev make a freebsd port
-
Retrofan
he promised of one very near.. but I will get back to the same problem, piplight never works on freebsd
-
Retrofan
could I create somewhat connection between native wine and the warpper?
-
Retrofan
in the linux jail
-
Retrofan
or something like modified version of wine?
-
nxjoseph
Retrofan: which one?
-
nxjoseph
i don't see your previous msgs
-
Retrofan
I successfully install Ubuntu jammy in jail, but can't run wine on it..
-
Retrofan
I get back Segmentation fault, I this related to needed gpu drivers or something?
-
Retrofan
this my first msgs
-
nxjoseph
why don't you try native wine?
-
nxjoseph
ty
-
Retrofan
Bec I am running an linux browser
-
Retrofan
and I need a wrapper called pipelight to run windows plugins there
-
Retrofan
and honestly that wrapper never works well on freebsd
-
flatdog
like scratching my left ear with my right hand
-
Retrofan
heh, why?
-
kevans
it's hard to say if it's related to gpu drivers without understanding what caused you to jump to gpu drivers as a suggestion
-
Retrofan
Bec. I read somewhere that opengl in wine needs drivers
-
Retrofan
and I thinked linux jail uses it's own drivers
-
kevans
i guess i'd expect a better failure mode than random segfault if that was your problem
-
Retrofan
but it even fail to run any exe
-
Retrofan
kevans: ah, that happen when I use wine 7
-
Retrofan
but wine 10
-
kevans
linux jails also don't really run their own drivers? it's a freebsd kernel running whatever the host is running, with these applications running through a linux abi layer
-
Retrofan
says could not exec wineserver
-
Retrofan
but wineserver is their
-
Retrofan
*there
-
Retrofan
kevans: could I combine native and linuxjail apps like what happens with centos?
-
Retrofan
I also can't use centos; bec. flash is not working there, also the browser
-
Retrofan
winedbg says: "sh: 0: getcwd() failed: No such file or directory"
-
nxjoseph
i don't think there's much luck in running wine in a linux compatibility layer
-
nxjoseph
what's the browser?
-
Retrofan
fork of seamonkey
-
Retrofan
but supports Npapi
-
Retrofan
and JS very well
-
Retrofan
but fails in building on freebsd, needs tons of patches
-
nxjoseph
what's the actual name of it so i can search it
-
Retrofan
and the dev promised for a freebsd release very soon
-
Retrofan
nxjoseph:https://github.com/wicknix/brass-monkey
-
Retrofan
It's originally for macos (Darwin) so I think it will be easy mission for bsd port
-
Retrofan
the patches is needed is for building system, but I have no time for that
-
Retrofan
-
Retrofan
But be away from the newest one is so buggy due to the new UXP palemoon update
-
nxjoseph
distributed linux build may work in a linux compat
-
nxjoseph
i need to build the meta-port linux-rl9 to test it
-
Retrofan
yeah, I know
-
Retrofan
but upgrading centos to rl scares me
-
Retrofan
no 32-bit = no XMMS and alot of other stuff
-
Retrofan
Gtk1 even works there
-
Retrofan
also I don't know if flash will work there or not
-
kerneldove_
there any problem not having a search domain set in resolv.conf? just nameservers and options edns0
-
ivy
kerneldove_: no, 'search' is entirely optional
-
kerneldove_
ok that's what i thought. tyvm!!
-
Retrofan
ivy: Will a portable version of wine make things better.. I will try
-
Retrofan
it's the same error :(
-
Retrofan
I think there's no luck other that trying to make pipelight use native one
-
Retrofan
or rl9
-
Retrofan
Could I run freebsd software in the Linuxjail?
-
flatdog
nope
-
Retrofan
but why that workers for centos and full userland no?
-
nimaje
hm, should work if you install a freebsd userland in that jail, but it would probably conflict with the linux userland, why do you want to have it jailed instead of only running it via linuxemu?
-
leah2
ivy: using "poudriere image" now, but it's not the fastest approach
-
Retrofan
I mean debbootstrab jail
-
Retrofan
nimaje: I am using the full ubuntu userland
-
Retrofan
and want to connect software inside it to outside
-
nimaje
is it really a jail? or did you create a userland and configured linuxemu to use that for linux software?
-
Retrofan
yeah a real jail
-
Retrofan
you can't run any software in it from outside
-
Retrofan
-
Retrofan
"Well, thanks ;) Quick explanation: A jail is just a jail, no matter what's running inside, and the FreeBSD kernel can execute both native and Linux binaries, no matter what."
-
Retrofan
here I go
-
Retrofan
let's test thta
-
Retrofan
*that
-
Retrofan
So I could run native wine there but only If succeed in mounting it's files there..
-
nimaje
it doesn't read like you want a jail in your use case, how about setting compat.linux.emul_path?
-
Retrofan
Back
-
nimaje
it doesn't read like you want a jail in your use case, how about setting compat.linux.emul_path?
-
Retrofan
nimaje: do you understand how linuxjails work?
-
Retrofan
*understood
-
Retrofan
it's not like centos
-
Retrofan
you can'r run any binary with it outside the jail
-
Retrofan
look like it's only works with rescue stuff.. need to mount /libexec
-
Retrofan
is that safe? or will mess up my system...
-
nimaje
that's why I suggesting to ignore the jail part and only use linux emu, as you don't want it to be jailed away from your host (ok, the wiki does just a chroot, but that doesn't make a diffrence here)
-
Retrofan
Centos can't run browser nor flash so it's useless for that
-
Retrofan
I need to upgrade to rl9
-
nimaje
where did I suggest centos? you have a linux userland, point compat.linux.emul_path to it
-
Retrofan
and I don't know if the flash works there.. and can't use Ubuntu flash in same time with another Linux userland
-
Retrofan
compat.linux.emul_path="/compat/ubuntu"
-
Retrofan
makes the jail to work
-
Retrofan
*gets
-
nimaje
after that sysctl try to run a binary from inside that linux userland directly (so without doing a chroot or jail)
-
Retrofan
nimaje:ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
-
nimaje
but /compat/ubuntu/lib64/ld-linux-x86-64.so.2 is there?
-
Retrofan
yeah
-
Retrofan
ln -s ?
-
Retrofan
symlink it?
-
nimaje
why would you symlink it? and to where? it is exactly where linux emu should look for it
-
Retrofan
system need to mounted to run
-
Retrofan
can't find paths
-
rtprio
has anyone passthru'd a usb adapter to a bhyve vm?
-
nimaje
as sanity check, sysctl compat.linux.emul_path
-
flatdog
brandelf(1), perhaps
-
Retrofan
man it's /compat/ubuntu
-
Retrofan
already
-
Retrofan
this never works only in jails (mounted)
-
Retrofan
It will try to search for paths without "/compat/ubuntu"
-
Retrofan
it thinks thats a full system
-
Retrofan
*itself
-
Retrofan
only freebsd binaries could be run in the jail, not the opposite
-
Retrofan
My only question now is there is any danger of mounting libexec?
-
Retrofan
to ubuntu jail.. will it mess it up?
-
flatdog
you're not listening (reading)
-
Retrofan
read only?
-
Retrofan
so I will need to copy freebsd needed libs inside then...
-
Retrofan
to be writable.. heh it's going weirder and weirder
-
Retrofan
lets try copying..
-
Retrofan
oh. heh works
-
nimaje
hm, if the binary isn't branded as linux binary (ok, or sysv binary) it shouldn't work even in the jail, as linux emu isn't used and diffrences in the syscall interface would likely trip it up, but no idea why the path translation feature of linux emu doesn't work for you or how to debug it
-
Retrofan
need now to copy all the libs to make big program like wine to work XD
-
Retrofan
nimaje: Please read more about it.. that's the normal it's an full separated userland
-
Retrofan
it's not mine problem
-
Retrofan
if there was a path translation for stuff like that, every thing will mess up
-
Retrofan
it's have own bin and libs and other stuff will mess up with freebsd ones
-
Retrofan
so making native wine runs there, installing partial FreeBSD system over the Ubuntu user land that runs over FreeBSD kernel..
-
Retrofan
nevemind.. that's crazy I will find fix for linux wine or just no windows plugins..
-
Retrofan
or rl9
-
nimaje
Retrofan: path translation is how linux emu works if you run linux binaries directly on the host, see man linux as the linux userland is under compat.linux.emul_path (which is /compat/linux by default (because linux- pkgs get installed there))
-
Retrofan
but not for debbootstrab full userlan
-
Retrofan
*userland
-
nimaje
yeah, you debootstrapped to somewhere else (probably a good idea to not conflict with stuff installed via pkg), that's why you have to change the compat.linux.emul_path sysctl, so that the path translation looks there
-
Retrofan
Did you done that?
-
Retrofan
on your machine
-
Retrofan
nimaje: please try it first
-
Retrofan
back
-
nimaje
ok, tested, for some reason linux emu seems not to like absolute symlinks for ELF interpreter, when I changed /lib64/ld-linux-x86-64.so.2 to be a relative symlink it works, not sure why that bug wasn't already found
-
Retrofan
O_o
-
Retrofan
crazy
-
Retrofan
so it worked?
-
nimaje
after using file on the ld-linux-x86-64.so.2 and then changing that to be a relative symlink instead of an absolute one it did work
-
Retrofan
but will break the jail
-
nimaje
why would it break the jail? it would still point at the same file inside a chroot and the goal was to get it to work without a jail or chroot
-
Retrofan
nimaje: it still not working :(
-
Retrofan
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
-
Retrofan
after symlink
-
josephholsten
apparently, the first thing I need to get running for myself is znc
-
nimaje
what did file tell you where /lib64/ld-linux-x86-64.so.2 pointed to and what was the ln command you used and what does file tell you now?
-
Retrofan
"/compat/ubuntu/usr/lib/x86_64-linux-gnu"
-
Retrofan
josephholsten: use IRCnow one
-
nimaje
that's another absolute symlink, you should have used ../usr/lib/x86_64-linux-gnu
-
nimaje
(but I would expect that one to work directly on the host)
-
Retrofan
not working
-
Retrofan
ah fixed it
-
Retrofan
and this nice
-
Retrofan
and the jail is not working XD
-
Retrofan
ah fixed the jail
-
Retrofan
nimaje: Thank you, look like I am still so stupid XD
-
Retrofan
BYE
-
josephholsten
I notice the smokeping linuxserver.io has
github.com/heistp/irtt, but we don't have a package for that. Anyone used it on *BSD? Is it worth volunteering to maintain in ports?
-
josephholsten
dch: do you remember what foo was saying about python in podman during the jails call-for-testing? I'm getting "pkg: cached package python311-3.11.13: missing or size mismatch, fetching from remote" that's surprisingly resistant to my normal fixes
-
dch
I'm guessing your containerfile has a pkg cache / data from an older layer
-
dch
try nuking your /var/db/container entirely and let it repopulate
-
dch
this would happen if you're using latest package repos i guess
-
» dch heads to bed