-
polyex
seems like jail command should have an option to start jail up even if depend directive isn't satisfied
-
polyex
hm anyone seen RhodiumToad? never here anymore
-
ek
polyex: I'm not aware of any way to force a jail to start if it has a depend. You can always just temporarily comment out the depend line in jail.conf, though.
-
polyex
doesn't work for my workflow
-
polyex
had to make a dirty workaround
-
polyex
the reason is depend is overloading 2 functions, dep graph, and startup order. would be nice to say something should start before another thing, but not NEED it to start up
-
ek
polyex: Well, I believe that's the entire point of having a depend. If one won't work without the other, it shouldn't start. Just like any other software dependency. If you'd like it to start even if the depend isn't running, just remove the dependency.
-
ek
What's the dirty workaround?
-
polyex
again, depend (as in, do not start unless dep is started) is different from startup order sometimes. i want a jail to start after another's started if possible, but still boot if that fails
-
polyex
lemme dig in code
-
ek
polyex: Ah, I think I see what you're saying. You're using jail_list in rc.conf and depend lines in jail.conf? And the jail_list order isn't always the same? If that's the case, that would be a bug. The man page for rc.conf specifically says jail_list should be the order started and depend lines in jail.conf would be used to override this order.
-
ek
Maybe open a PR for that.
-
polarian
found a segfault :P
-
polarian
nmap -6 -pn polarian.dev segfaults
-
polarian
it was a typo, should have been nmap -6 -Pn polarian.dev
-
ek
polarian: Is it just nmap that segfaults?
-
polarian
yes
-
ek
Well, that's a plus.
-
polyex
ek no sorry i wasn't totally clear. no jail_list because that caused conflicts. just jail enable YES, then depend in jails. so what i want is depend (start jail after and ONLY if other jails are started) but ALSO i want after (order the startup of jail after other jails, but it can start even if other jails fail to start)
-
polyex
oh i use jail parallel start YES too
-
vortexx
I've got a weird issue, periodic's daily stuff is staying locked and never completes. This only started a few days ago, I haven't changed anything in the config in months on this machine apart from new IPv6 adressing
-
vortexx
ps x | grep perio
-
vortexx
returns 10 entries of scripts running and processes marked LOCKED
-
ek
polyex: Well, I'd guess that's the problem then. If you use jail_list and not jail_parallel_start, I think that'd solve your issue.
-
polyex
can't use jail_list it causes conflicts
-
polyex
"i have 4 jails. A depends on B. B depends on C. and D depends on C. they all start and run fine if i remove the depend directive, but having it in, jail B fails to start because "jail: C already exists". can't depend handle multiple dependants of the same jail?"
-
ek
polyex: If you have depends for jail C on both B and D jail configs, it fails because C already exists when the second jail tries to start or what?
-
polyex
i guess? but same deps, just removing jail_list, works fine. then add jail parallel start YES, still works fine
-
ek
vortexx: What does /var/log/{daily,weekly,monthly}.log say? Any errors?
-
ek
polyex: Thats seems awfully strange (and somewhat backwards from the recommendations via documentation.) I really do think you should file a PR about it.
-
polyex
what doc recommendation are you thinking it contradicts?
-
ek
polyex: rc.conf (5) and jail.conf (8)
-
polyex
ya but what points
-
vortexx
ek: I don't have those logfiles
-
ek
polyex: rc.conf (5) states that jail_list is the startup order or all jails (unless unlisted) and that "depend" lines in jail.conf would override this order. The jail.conf (8) states that required jails should be started up to the last exec.poststart.
-
polyex
ya so it seems jail_list ISN'T being fully overridden if the depend directives cause problems
-
nicholaus04
Howdy, folks!
-
ek
polyex: Yeah. That's my thought. Could be a bug. If anything, filing a PR will either bring it to the proper person's attention, or someone will provide you with the correct flow to make it work (hopefully, with explanation so everyone else in the future will also be able to understand.)
-
nicholaus04
Well, for my FreeBSD laptop, i managed to get X.Org set up, as well as getting htop up and going as well.
-
ek
vortexx: If you kill those periodic processes and manually run a "periodic" command as root, what happens?
-
ek
Hiya, nicholaus04.
-
nicholaus04
And yes, i even got sudo set up as well.
-
ek
nicholaus04: Excellent! I hope it's all running smoothly.
-
nicholaus04
Got a total of 198 packages on the system.
-
nicholaus04
ek: Yep, all set up!
-
ek
Fantastic!
-
nicholaus04
Though, since the laptop uses a Nvidia GPU, i had to get an Nvidia driver from the package repo.
-
ek
nicholaus04: Was that a problem?
-
nicholaus04
That took some time (Though, not much time.) to get configured. But it's not too bad.
-
rj1
freebsd
-
ek
Good to hear.
-
ek
rj1: Ineed.
-
ek
Indeed, even.
-
rj1
i need freebsd
-
ek
ineedfbsd
-
rj1
freebsd rules!
-
nicholaus04
Basically, having to silence the ABI warnings which X treated as errors.
-
nicholaus04
And turning off ACPI so the nvidia kernel module would run without it pooping itself.
-
ek
nicholaus04: I haven't used Nvidia drivers in a while, but I'm glad to hear you got everything sorted out. Did you just follow the documentation that was available?
-
nicholaus04
ek: That, as well as searching for solutions for the rest of the problems.
-
nicholaus04
But other than that, not too bad.
-
nicholaus04
And yes, in terms of X, OpenGL works!
-
nicholaus04
Though, since i tested it with glxgears, i've only proved it works with 1.x API based programs.
-
ek
nicholaus04: If you ran into issues that weren't documented (and you have additional input you can provide,) you can always submit that info the the documentation site to have it accepted and updated. Might be able to help some others. :)
-
nicholaus04
And yes, i've even enabled (But not tested, nor set up.) linux compatibility.
-
ek
nicholaus04: Nothing wrong with that. Being as some things are built specifically for Linux and it's libs, sometimes it's required. It's an option for a reason. :)
-
nicholaus04
And yes, like my devuan machine, i'm using OpenBSD's CWM as my X.org WM.
-
ek
I like CWM.
-
GoSox
does freebsd use syncache or syncookies?
-
GoSox
i forget the details i used to know
-
nicholaus04
Since i'm literally writing a SDL-ish game framework in C, it would allow me to test for both a native FBSD build, as well as seeing if it works on FBSD's Linux compat.
-
ek
GoSox: syncookies only (AFAIK)
-
ek
nicholaus04: Very cool!
-
nicholaus04
All on 100% real hardware!
-
ek
GoSox: I stand corrected. Looks like sysctl provides options for both syncache and syncookies.
-
ek
Well, FBSD-14.1-R anyway. Not sure about older versions.
-
nicholaus04
And yes, the laptop is using a i386 based version of FBSD, since that's the sort of CPU it uses. (Not that it's a bad thing in my perspective.)
-
GoSox
my server is under essentially constant synflood attack, and my current os has basically zero protection against it.
-
GoSox
but between those two options, i should be able to cover my ass on the new machine
-
ek
GoSox: Bummer! I certainly hope so. You able to utilize something like SSHGuard or Fail2Ban to try and counter it or does that not help due to the exhaustion?
-
ek
nicholaus04: Nothing wrong with i386. Been a long time since I've used anything 32-bit.
-
GoSox
my data center put me behind their anti ddos system
-
GoSox
for free, which is nice. but now they want to charge me which is fair but also its super expensive
-
GoSox
plus i want my server to be able to take care of its self
-
GoSox
pf firewal even has some form of syn flood protection built in, but somehow apple managed to break it in my os version
-
ek
GoSox: Apple? What do you mean?
-
GoSox
its an old mac server
-
ek
GoSox: Ah. Gotcha'.
-
xLXGHTNXNGx
Huh. Quick hint: it seems like SBCL conflicts with /etc/periodic/daily/100.clean-disks
-
xLXGHTNXNGx
Under the mismatched checksums check in the email, sbcl-2.3.9_1,1: missing file /usr/local/lib/sbcl/sbcl.core
-
L3Fr0g
Hello, is anyone using Talos Linux over bhyve ?
-
rtprio
if we were, we'd be in #linux not #freebsd
-
L3Fr0g
do you deploy kubernetes over freebsd ? if so, how ? :-)
-
polyex
i wanna try running kubernetes with freebsd
-
polyex
anyone doing that?
-
rtprio
why would you do such a thing?
-
rtprio
it sounds.... miserable
-
polyex
isn't it good for controlling deployments?
-
L3Fr0g
i want to run freebsd as host, in prod, no matter what. Unless i manage to do deploy k8s cluster with bhyve, i will be forced by superiors to migrate to another host operating system.
-
polyex
L3Fr0g know if k8s can even run on freebsd?
-
rtprio
isn't k8s just... .docker containers?
-
polyex
doing an unattended bsdinstall that needs to set up a few jails. they all go fine except 1 of them gets a line in the error log: cannot unmount ... pool or dataset is busy. any clue why?
-
polyex
doing an unattended bsdinstall that needs to set up a few jails. they all go fine except 1 of them gets a line in the error log: cannot unmount ... pool or dataset is busy. any clue why?
-
unixery-c
Kubernetes is a tooling set to manage (orchestrate) containers (docker)
-
polyex
why can't it work on jails too then
-
unixery-c
I cannot remember. I've played with it some time ago, but abandoned it. IMHO nobody needs it at home or in small/medium business.
-
remiliascarlet
Because whoever concentrates their software development around Docker and/or Kubernetes hates humanity.
-
polyex
what's bad about kubernetes?
-
polyex
when i do a unattended bsdinstall how do i print data into the error log window that shows at the end?
-
remiliascarlet
What's bad about installing programs the Unix way?
-
polyex
if you can't just answer without shitting a question back at me i can't take any use from your 'kubernetes obviously bad dur'
-
remiliascarlet
Calm down princess...
-
mage
any idea for:
-
mage
chouffe% sudo zpool attach zroot mirror-0 da1p3
-
mage
cannot attach da1p3 to mirror-0: can only attach to mirrors and top-level disks
-
mage
?
-
unixery-c
kubernetes probably has it's use cases, but for deployments with just a few containers it is just over complicated
-
mage
I just want to add a disk to a mirror zfs vdev
-
mage
-
VimDiesel
Title: gist:e6e7816369b4581f011512c1dcc30f15 · GitHub
-
unixery-c
zpool status?
-
unixery-c
thanks
-
unixery-c
zpool attach [-f] [-o property=value] <pool> <device> <new-device>
-
unixery-c
try: zpool attach zroot mirror-0 da0p3 da1p3
-
mage
ah.. right!
-
mage
thanks
-
saper
polyex: I think that Kubernetes can use different "container engines" via a thing called Container Runtime Interface (CRI). It could be something that runs jails or Linux processes under linuxolator, maybe
-
TommyC
Just curious, does man (8) pkg-create for anybody else say for the "-a" option: "This option is incompatible with the" and just stops there?
-
saper
polyex: looks like some is building the tools
github.com/tnorlin/kubernetes/releases
-
VimDiesel
Title: Releases · tnorlin/kubernetes · GitHub
-
polyex
nice
-
polyex
when i do a unattended bsdinstall how do i print data into the error log window that shows at the end?
-
saper
polyex: I don't know, something in the $BSDINSTALL_LOG ?
-
polyex
i forgot about that ty! ill check it
-
polyex
hm 'echo $BSDINSTALL_LOG'?
-
polyex
i tried that in my installerconfig script and it just outputted a blank line
-
polyex
but man page says it should have a default value?
-
saper
polyex: if it is not set, it should have been the file mentioned in the manpage
-
saper
TommyC: same here
-
polyex
saper you mean if it's empty then it's the default in the man page?
-
saper
yes, or the default from the actual code running ;)
-
saper
TommyC: I think this
freebsd/pkg 7a55498 inserted the text at the wrong place
-
VimDiesel
Title: create: allow to create a package with readable +MANIFEST · freebsd/pkg@7a55498 · GitHub
-
saper
-
VimDiesel
Title: pkg-create(8): fix description of --all by saper · Pull Request #2294 · freebsd/pkg · GitHub
-
polyex
doing an unattended bsdinstall that needs to set up a few jails. in my installerconfig i service jail start jailname, jexec on the jail to do some setup, then service jail stop name to shut it down so i can snapshot the zfs dataset of the jail. works fine but the error log says umount fails because the pool or dataset is busy. so is service jail
-
polyex
stop jailname not cleanly shutting them down?
-
saper
could happen, any processes left running?
-
polyex
maybe but shouldn't the service jail stop jailname shut them down?
-
saper
possibly yes, but maybe there is some reason why it didn't
-
polyex
maybe what's happening is: fresh jail is started up in partially configured state, some daemon ran rc services fail to start up and get autorestarted by daemon. then because of that trampoline the jail never finishes shutting down
-
saper
please check, maybe fstat can help
-
saper
jail can be as simple as a single process. Also maybe maybe you don't need to start it to configure it. pkg(8) can install packages in jails with the -j option, for example
-
polyex
because i've seen it before that a jail i had that restart bouncing rc daemon issue and when i'd try to shutdown jail host it would get hung waiting for that jail to shutdown
-
saper
sysrc(8) too
-
polyex
but what about things like adding new user groups, adding users to groups, i gotta start jail for that no?
-
saper
yeah I've seen things like this too, I'd rather avoid starting jail during the install
-
saper
no
-
polyex
we can run pw against a jail that's not running?
-
saper
probably you could use -R option or something like that
-
TommyC
saper: cheers
-
polyex
saper so what kinda things would you NEED to start a jail in installerconfig to do?
-
saper
polyex: well, if you want to initialize a PostgreSQL database cluster inside or things like that
-
saper
there is also "bsdinstall jail" just learned from
wiki.freebsd.org/VladimirKrstulja/Guides/Jails
-
VimDiesel
Title: VladimirKrstulja/Guides/Jails - FreeBSD Wiki
-
saper
I must say bsdinstall looks impressive these days
-
polyex
in unattended bsdinstall installerconfig, i service start a jail, config it with jexec, service stop it, jls confirms it's stopped. but zfs umount ... errors: cannot unmount ... pool or dataset is busy. why pls?
-
polyex
ya unattened install is badass
-
polyex
no more fat fingering an install man
-
skered
Anyone using devel/bear with 14.1?
-
debdrup
Shit, karels@ passed away :(
-
skered
Does it freak out?
-
polyex
:(
-
debdrup
First commit from karels@ I can find was back in August of 1983, and he was last active less than a fourthnight ago.
-
polyex
ffs what a machine
-
polyex
would be cool to see his top 10 commits or smth
-
debdrup
He spent a long time being a software engineer involved security at various corporations, which kinda prevented him from working on opensource.
-
polyex
when my unattended bsdinstall is done it shows an error GUI window. is that normal?
-
polyex
wish i coulda learned security from him
-
polyex
in unattended bsdinstall installerconfig, i service start a jail, config it with jexec, service stop it, jls confirms it's stopped. but zfs umount ... errors: cannot unmount ... pool or dataset is busy. why pls?
-
saper
polyex: try fstat maybe
-
polyex
it can be run on a zfs mountpoint?
-
remiliascarlet
Of course you can.
-
GoSox
whats the best way to sample all of the more popular GUIs availble for freebsd? does anyone make a 'sampler' with all of them pre-installed?
-
Halian
o/
-
remiliascarlet
I don't think FreeBSD comes with a GUI out of the box, unlike OpenBSD and NetBSD, which come with 3 or 2 window managers.
-
GoSox
made a ghostbsd virtual machine and its alright but i suspect theres a better fit
-
Halian
I was under the impression that none of them came with a GUI of any sort, but installing OpenBSD on my laptop shattered that illusion w/r/t that OS
-
remiliascarlet
Halian: OpenBSD comes with fvwm (default), cwm, and twm. NetBSD comes with ctwm and twm.
-
remiliascarlet
And they both even come with a very minimal graphical login screen too if you enable xenodm on OpenBSD or however it was called again on NetBSD.
-
Halian
Ah
-
saper
GoSox: pkg install a couple of them and just switch in your .xinitrc
-
GoSox
i don't even know whats available
-
GoSox
i'm from the land of - not getting to pick the GUI that comes with teh OS :D
-
» jbo is still not running a DE
-
jbo
once I stopped using DEs my workstation experience became notably less hassle
-
jbo
hassleful?
-
jbo
hasslic?
-
jbo
HASS!
-
V_PauAmma_V
Different strokes for different folks. I'm happy with Xfce.
-
jbo
indeed
-
jbo
-
VimDiesel
Title: will freebsd15 have default desktop? | Page 2 | The FreeBSD Forums
-
GoSox
it looks like xfce has a dock? is that similar in function to the macos dock?
-
saper
GoSox: if you have ports, you can expore /usr/ports/x11-wm directory
-
saper
I am using dwm, but that's not for everyone
-
V_PauAmma_V
I couldn't tell. I've never used a MacOS more recent than 30 years ago.
-
jbo
-
GoSox
oh i really like that, what is that a picture of exactly?
-
jbo
just a pre-configured FreeBSD:
hellosystem.github.io/docs
-
VimDiesel
Title: hello — helloSystem documentation
-
GoSox
jbo i mean what gui is that? and i assume it has a mac theme added on to it?
-
jbo
GoSox, AFAIK it's XFCE with just "look similar enough to MacOS themes"
-
GoSox
neat
-
GoSox
ill look in to that
-
mzar
vanilla XFCE4 can be customised to have UI similar to MacOS, HelloSystem is maybe derrived from XFCE, but definitelly it's not clean XFCE4
-
saper
there's xfce4-docklike-plugin in the ports and other goodies
-
mzar
-
VimDiesel
Title: hello — helloSystem documentation
-
GoSox
i'm not lookign to use a UI thats an exact copy of macos
-
GoSox
just one thats more mac like than windows like
-
saper
If like something original, try cde
-
CrtxReavr
Isn't CDE still fully commercial?
-
saper
It's free software for some years now
-
CrtxReavr
I remember when multiple commercial OSes shipped it and thinking it looked so cool.
-
saper
I remember it was quite heavy back in the days and today it feels very lightweight
-
CrtxReavr
But then when you attempt to daily-drive it, you realize it's a horribly buggy POS, and can't imagine that anyone would willingly pay for it.
-
lw
i had CDE for Linux on a laptop many years ago (not the Caldera one, a different port)
-
saper
I used it on AIX and it was very stable for me.
-
CrtxReavr
Solaris, AIX, SCO Unixware, HP/UX. . .
-
CrtxReavr
Trying to think what other OSes I used it on.
-
CrtxReavr
It wasnt' so much instable. . . it just didn't work in so many ways.
-
saper
Cy Schubert maintains a very polished CDE port for FreeBSD
-
CrtxReavr
Like if you accidentaly moved that button bar off center, there was to way to get it centered again.
-
CrtxReavr
What's it called?
-
CrtxReavr
The FVWM2 that used to ship with BSDi looked really nice.
-
saper
x11/cde x11/cde-devel
-
saper
unicode support got better
-
dtomato
Ah, CDE ... brings back memories... I think the last time I used it was back in uni ... so ~2006 at latest, they still had some HP-UX workstations labs
-
saper
I think they called it VUE or something
-
lw
VUE is something else, that's the one that came before CDE
-
rennj
vue,openwindows/libxm xview,sun news, sun did couple,
-
lw
although interestingly wikipedia claims CDE was largely based on VUE which is interesting
-
rennj
motif was $
-
rennj
CDE meh...hp,sun,ibm settled on 1 thing, windownt ate their lunch
-
rennj
comp.windows.open-look and alt.toolkits.xview
-
rennj
usenet
-
wildeboskat
I loved VUE
-
wildeboskat
And yes CDE is very much based on VUE in the visual sense
-
wildeboskat
IBM brought in the "boring business" look
-
wildeboskat
And Sun I don't know what they brought
-
wildeboskat
VUE was much fruitier
-
wildeboskat
And yes it was all based on motif like pretty much everything those days
-
rennj
no mwm was not same
-
rennj
libmotif/mwm was pay to play.
-
rennj
till lesstiff anyway
-
wildeboskat
oh I don't remember mwm
-
wildeboskat
But fvwm
-
rennj
-
VimDiesel
Title: LessTif - Wikipedia
-
» wildeboskat still has a HP-UX 10.20 box with VUE <3
-
rennj
yeah but do you have bootable install tapes?
-
rennj
ignite ux
-
rennj
hp also charged for raid1, mirror ux
-
rennj
you want tmpfs..yeah pay for that also
-
rennj
hp-ux was crazy
-
wildeboskat
I don't have tapes no
-
rennj
posix sh for shell, compiling kernels for ddt tape drives..one first things i did
-
wildeboskat
I had a J210XC that did have tapes
-
wildeboskat
But I sodl it because it was a huge tank of a machine
-
rennj
i didnt have to compile kernel on solaris, but hp-ux compile
-
wildeboskat
I do have CDs and an old SCSI CD Drive
-
wildeboskat
Yeah and HP-UX also came with an amazing management tool, SAM
-
rennj
hp c8000 on ebay NOS pa-risc
-
rennj
new old stock!
-
wildeboskat
I think I have a 700/80 or something
-
wildeboskat
Also PA-RISC
-
wildeboskat
Itanium only runs HP-UX 11i
-
rennj
yeah..
-
wildeboskat
They were throwing those itanium boxes out at work and it was sad to let them go
-
wildeboskat
But they are so huge
-
wildeboskat
And they run nothing anymore, not even linux
-
rennj
i had rp8400/superdomes, l,d,k,v2600 was top500 supercomputer
-
wildeboskat
Yes we had them too at work!
-
rennj
v2600 128cpu/128GB = 4 cabinets
-
wildeboskat
The superdomes
-
rennj
in the 90's
-
wildeboskat
We had an old beige PA-RISC one and a black itanium one
-
wildeboskat
Both just 1 cabinet
-
wildeboskat
And all talking to the SAN
-
rennj
ssp was b180l for v2600
-
rennj
b180l nice box
-
wildeboskat
We had them until way into the 2010s by the way
-
rennj
yeah i walked away in 2006
-
wildeboskat
In fact they used to come and ask me questions because there were very few people that knew HP-UX
-
wildeboskat
I wasn't technically part of IT but I was in the friend zone lol
-
wildeboskat
That was handy when things were being thrown out <3
-
rennj
my boxes interfaced with ibm system Z and sun e25k real nice boxes
-
wildeboskat
Ohh I never worked with system Z
-
rennj
i wish i could have taken photo
-
wildeboskat
We didn't have any of that
-
rennj
system Z and sun e25k sitting next to each other
-
wildeboskat
We had one AS400 at one point
-
wildeboskat
But that was tiny stuff
-
rennj
yeah system36/39 before as400, as400 was virtualizing
-
rennj
ibm was ahead of everybody on virtual machine foo back then
-
wildeboskat
yes
-
wildeboskat
Although they did most of it in hardware IIRC
-
rennj
but assholes
-
wildeboskat
yes
-
rennj
jcl/rpg2
-
wildeboskat
The high priests of IBM
-
rennj
i was pissed at ibm before the as400 came out
-
wildeboskat
I feel like somehow those days were more adventurous
-
rennj
that how they did things high priests bullshit
-
wildeboskat
Different architectures, OSes, always somethign to explore
-
wildeboskat
Yes, if you were not blessed you would not get to touch anything lol
-
rennj
ibm holding the crown jewels close, $$$ no opensauce/freesoftware with them
-
rennj
least they dumped 1billion into linux to fight off m$
-
rennj
-
rennj
This is the second time that IBM coughed up $1 billion to promote Linux. The first was way back in 2000, when Linux was a fledgling operating system just finding its way into enterprise data centers and beginning to threaten Microsoft.
-
rennj
dell emc redhat box crapping the bed in 2004 classic...compared to my sun hp boxes
-
rennj
Netflix freebsd cdn boxen making #freebsd better!
-
nicholaus04
Howdy, folks!
-
nicholaus04
Well, i managed to goof with producing sound via /dev/dsp via the shell.
-
nicholaus04
Basically, i did this: yes (WHATEVER)>/dev/dsp
-
antranigv
hey folks
-
antranigv
I'm having issues with AMD GPU. it's a MacBook Pro 2015
-
antranigv
the Intel GPU one is working fine
-
antranigv
this one, not so much
-
antranigv
who can help me debug?
-
antranigv
I instaled drm-kmod
-
antranigv
and drm-515-kmod
-
antranigv
when I do startx, the screen freezes
-
antranigv
but I can still SSH in
-
nicholaus04
And for the safety of your ears, don't do: cat /dev/random>/dev/dsp.
-
antranigv
here's what I get
-
antranigv
RADEON(0): [drm] Failed to open DRM device for pci:0000:01:00.0: No such file or directory
-
antranigv
RADEON(0): Kernel modesetting setup failed
-
antranigv
and it ends with: Screen(s) found, but none have a usable configuration
-
nicholaus04
And yes, i know FBSD uses OSS as it's default sound output.
-
polyex
fstat can be run on a zfs mountpoint?
-
polyex
in unattended bsdinstall installerconfig, i service start a jail, config it with jexec, service stop it, jls confirms it's stopped. but zfs umount ... errors: cannot unmount ... pool or dataset is busy. why pls?
-
rtprio
question: why do you stop the jail during the install?
-
polyex
so i can snapshot it
-
polyex
its zfs fs
-
antranigv
polyex by any chance devfs is still running?
-
polyex
in the jail?
-
rtprio
still mounted, rather than still running
-
rtprio
but good idea
-
antranigv
polyex yes.
-
antranigv
polyex do something like 'mount | grep path/to/the/jail' to see what else is mounted
-
polyex
how do i check?
-
polyex
ok
-
antranigv
polyex lemme know
-
polyex
checking now brb
-
polyex
btw fstat /path/to/jail sohowed nothing
-
polyex
k brb
-
antranigv
polyex fstat shows files opened by processes, not mountpoints of the kernel.
-
antranigv
polyex how did you create the jail btw?
-
devnull
polyex if devfs is not running, try "zfs unmount -f yourpool/datasetzfs". No need to bsdinstall. Just fetch the base, extract and make a snapshot.
-
polyex
install running, will have info soon. i created the jail by zfs clone template into its own mountpoint. then i cp my jail's config files into its dir then service jail start myjail
-
antranigv
polyex if that's all you want to do, please have a look at
jailer.dev
-
VimDiesel
Title: jailer
-
polyex
i'll check it out after i fix this thing
-
polyex
devnull well i tried zfs umount /zroot/path/to/jail but it said pool or dataset is busy. so you're thinking try -f to force it?
-
polyex
ok it says devfs in addition to jail's mountpoint
-
polyex
zfs, local, noatime, nfsv4ac
-
polyex
antranigv looks like devfs is mounted for jali ya
-
antranigv
polyex unmount that first
-
polyex
zfs umount /zroot/path/to/jail/dev ?
-
antranigv
polyex it's not ZFS. just `umount /path/to/jail/dev`
-
polyex
and path is FS path not zfs mountpoint path?
-
antranigv
polyex indeed. your Jail path is a ZFS path, but the /dev inside of it is just a devfs mount.
-
polyex
do umount then do mount grep line again to see if it's gone?
-
antranigv
polyex indeed
-
polyex
install running
-
polyex
OK
-
polyex
umount line did the trick! devfs mount is gone. then error log no longer shows when bsdinstall is done!!!!
-
polyex
tyvm antranigv!
-
antranigv
polyex congrats
-
polyex
so what i learned is that if my jail uses devfs, i need to unmount that after shutting jail down
-
antranigv
polyex now use jailer :) it has all of these issues fixed
-
polyex
does jailer also upstream the fixes into base?
-
antranigv
in jailer it's as simple as `jailer image fetch && jailer create jailname`
-
antranigv
polyex thanks to Jailer (and other Jail management tools) there has been two fixed and a feature in upstream!
-
polyex
that's so great. i'll look at jailer for sure. know what it's coded in?
-
antranigv
polyex POSIX Shell with FreeBSD extensions.
-
polyex
nice
-
polyex
did you make it?
-
antranigv
polyex yes
-
antranigv
polyex the history is at the bottom of the page
-
polyex
you ever run into prob that vnet jails can't do mac_portacl?
-
polyex
would be great if that was added
-
polyex
so we could allow a regular jail user to bind to a specific low port
-
antranigv
polyex jails can do that, AFAIK
-
polyex
nope
-
antranigv
testing now
-
polyex
last tested on 13.3 fwiw
-
polyex
hopefully you're testing 14.1 in case it works now
-
antranigv
polyex tested on 13.2 and 14.0
-
antranigv
root@e0fc9570:~ # sysctl security.jail.jailed ; nc -l 80
-
antranigv
security.jail.jailed: 1
-
antranigv
hello from the other side
-
antranigv
polyex works fine
-
antranigv
oh wait
-
antranigv
this not VNET
-
antranigv
sorry
-
antranigv
1 sec