-
hodapp
rwp: so AFAIK this isn't specific to QEMU - it only uses mechanisms bhyve also supports
-
hodapp
-
rwp
Cool! TIL!
-
hodapp
yeah, I just learned it recently too
-
rwp
tmux users FYI and warning, today's quarterly pkg upgrade breaks client server compatibility. Must kill the old server and restart with the new one.
-
moviuro
Hi all, I'm trying to use jail.conf(5) which supposedly supports "Wildcards". Are there examples? because the following just fails with: jail: /etc/jail.conf.d/99-external.conf line 1: *: syntax error --
x0.at/iKy_.txt
-
nimaje
I think you are missing the hierarchical part in your setup "If hierarchical jails are defined, a partial-matching wildcard definition may be specified." and "By setting a jail's children.max parameter, processes within a jail may be able to create jails of their own. These child jails are kept in a hierarchy"
-
moviuro
russian-doll-jails 😱
-
moviuro
Ok, corrollary: can I get some instruction shared across multiple jails (external/internal dichotomy) without repeating every line in 99-external.conf?
-
Macer
i have to admit... freebsd feels more like a fight than linux so far heh
-
Macer
i'm getting pretty close to proxmox parity using jails but it's been a struggle for certain things. notably getting the gpu accel working and mounting cifs
-
Oks4
some gpu-workloads might be easier to run by passing it to linux bhyve vm
-
Macer
does bhyve allow for multiple passthrough?
-
Macer
i usually pass a gpu to multiple containers/jails
-
mzar
CIFS is not supported, switch to NFS please
-
Macer
with regard to mounting smb/cifs i had to resort to shoehorning rclone into everything
-
Macer
mzar: yeah i noticed :) but smb is better for me. only one infrastructure to maintain with samba_server
-
mzar
OK, so why are you pushing migration from Proxmox ?
-
mzar
licensing issues ?
-
Macer
no. just seeing if it can be done
-
Macer
speaking of which. i need to take a look at gomuks again heh
-
mzar
it can't be done
-
AmyMalik
?
-
AmyMalik
oh
-
rtprio
What? why?
-
AmyMalik
rtprio, stuff about CIFS
-
Macer
hm
-
Macer
does ffmpeg need the libc6 shim even if you were to use say something like an intel arc?
-
Macer
or is this an nvidia specific thing?
-
Macer
now that i think about it. is an arc310 even an option for fbsd?
-
Macer
oh. look at the forums it seems like all of this will be shoehorned into the drm stuff .. that is pretty much using linux stuff in fbsd isn't it?
-
Macer
well.. this is unique.. after an update it seems like during boot the system is getting hung on the nvidia-drm
-
Macer
-
Macer
hm. seems like it's not rebooting even after disabling the nvidia module.... not sure what on earth happened here.
-
checkpoint
Macer: I would boot into single user mode and perform fsck -f -y
-
Macer
it's zfs
-
Macer
but yeah that seemed to be the issue maybe. took quite a while for it to boot after i had to hard reset it. not sure if zfs does anything there to check things out but it finally boot
-
checkpoint
Macer: then you are nearly fscked. try `zpool scrub'.
-
nimaje
what does zpool status say?
-
Macer
that it's fine
-
Macer
it just took a while to mount it
-
Macer
but right now i'm trying to figure out why a host with a 10.0.0.x and a jail with 10.0.0.x can't ping each other
-
skered
Macer: What are you doing with gomuks?
-
Macer
skered: well. i used to use it to connect to bluebubbles in a terminal
-
Macer
but now.. nothing :)
-
skered
Because of the last update?
-
skered
-
skered
However, if you need a quick fix building from source just works too. Just use the master branch. main currrently tracks the web server.
-
Macer
yeah i noticed that
-
Macer
it doesn't have index.html included
-
Macer
i think i tried that at one point but the ver of go in the pkg repo was too old
-
Macer
i don't get this.. the host cna ping 10.0.0.10 the jail can ping it also. but they can't ping each other.
-
Macer
i guess maybe because they're bridged off the same interface?
-
skered
I can say it's fine now. That's what I used while trying to figure out how to get 25.12 to build with ports.
-
Macer
ah
-
Macer
i may try it once i sort out this jail issue i'm having
-
skered
More or less the old version (from master branch) works. main (including 25.12) is a rewritten version with a a web interface but does provide a terminal version. The terminal version isn't complete and is buggy.
-
Macer
yah. i knew that part which is why i was happy the pkg repo had the older version heh
-
Macer
i don't even think it has a maintainer. that was some sort of gitbot that built it?
-
nimaje
how is networking configured on that system?
-
skered
Macer: I dunno how that update landed. The commit message was more than just dropping maintainership.
-
Macer
nimaje: i have adedicated 10gb sfp+ card for the jails. i'm usinv vnet for the jails as well. the nic on the host side has a 10.0.0.31 ip ... in the jail i use rc.conf to configure an admin network and created an alias for the other one using 10.0.0.30
-
Macer
both sides can ping an external ip on another server. but neither can ping each other
-
nimaje
ok and 10.0.0.10 does routing for that 10.0.0.10/24 subnet?
-
Macer
there is no routing. i'm just using it as a storage backend
-
nimaje
or is there some switch connecting the nic for the host and the jail?
-
Macer
same nic connected to the same port on the switch.. but i'm not really too keen on how fbsd networking would handle that with a vnet
-
Macer
i'm using bastille and that created a bridge. the bridge is using the host interface which has the 10.0.0.31 ip
-
Macer
(on the host locally)
-
Macer
i'm not sure if there is maybe something special i need to do to the bridge for this
-
Macer
it's not just pinging. no traffic is traveling between the host and the jail
-
Macer
i'd love to just nullfs mount this but nullfs doesn't do permissions correctly when mounted into a jail .. you can't force uid/gid
-
nimaje
can you share the output of ifconfig and ifconfig -j <jail name> as well as netstat -rWn and netstat -j <jail name> -rWn ?
-
Macer
-
Macer
that's the jail
-
Macer
ifconfig is huge on this server. let me shut down the other jails
-
Macer
-
Macer
that's the host
-
Macer
-
Macer
netstat on host
-
Macer
-
Macer
and netstat in the jail
-
nimaje
hm, ix0 shouldn't have an ip set when it is part of a bridge, view a bridge as a virtual switch and the member interfaces as the ports of that switch, the individual ports wouldn't have ip addresses, maybe the switch itself if it is managed, like that the ip should be on the bridge and not on one of its members
-
nimaje
yeah, the host sends packages for 10.0.0.10/24 outside via ix0
-
AmyMalik
This'll sound lik a stupid question, I promise it is... is WITNESS a KASSERT?
-
kevans
no
-
kevans
WITNESS observes locking stuff
-
scoobybejesus
Macer, can't you just create a user on the host with the desired UID/GID for whoever will access the dir in the jail, and then nullfs mount it? I mean, this isn't ideal (who would want to create duplicate users on the host just so they map to a jail user?), but it should work just fine
-
Macer
scoobybejesus: it's using AD
-
Macer
or shoudl i say.. they're on different ADs
-
scoobybejesus
Ah, interesting...
-
Macer
nimaje: hm. ok. i guess that makes sense
-
Macer
now the question is.. how do i add the host as a member of that bridge
-
Macer
If the bridge host needs an IP address, set it on the bridge interface, not on the member interfaces. The address can be set statically or via DHCP. This example sets a static IP address:
-
Macer
ohhhhhhh... ok
-
Macer
now i'm starting to wonder if that's even possible with bastille
-
nimaje
hm, how did you create that bridge?
-
Macer
bastille created it.. but i think i know where it came off the rails
-
Macer
-
Macer
i think that's what i'm looking for
-
» Macer facepalms
-
Macer
ok let me set that up and start converting jails. lol
-
Macer
nimaje: thanks for the help. that pointed me in the right direction
-
nimaje
reads like bastille produces broken network setups
-
Macer
well...
-
Macer
it does some weirdness where it will automatically make a bridge on boot
-
Macer
in other words.. i should have used -B instead of -V
-
Macer
i don't understand how i missed that
-
Macer
OK... got the whole network config right in rc.conf (i think) and the bridge has the 2 ips i need so lets see if the forum edit on the jails will make them start properly heh
-
hodapp
huh, just realized bhyve has a "grub" loader built in, in addition to the "uefi" one that is what I used for NixOS
-
hodapp
though I suppose for my "have Linux's root FS on 9p" idea, it may be easier to still just have a small disk image for /boot & let the distro inside the VM manage that
-
hodapp
even if I guess I *could* get away with kernel & initrd hosted elsewhere if I used grub2-bhyve