-
spork_css
Lucas covers "native" jails and iocage in his book and that's what got me poking at iocage. I really like it, it's generally worked well for me and is easy to automate.
-
spork_css
There's also an "iohyve" that aims to be a similar tool for bhyve VMs, but looks a little dead:
github.com/pr1ntf/iohyve
-
VimDiesel
Title: GitHub - pr1ntf/iohyve: FreeBSD bhyve manager utilizing ZFS
-
koobs
-
VimDiesel
Title: Containers - FreeBSD Wiki
-
koobs
fwiw
-
koobs
must do same for bhyve things
-
ghoti
spork_css: I used iohyve for bhyve management for a while, but the project hasn't seen a commit on github since 2017. I migrated to vm-bhyve, which also works nicely.
-
ghoti
koobs, do you know if there's a tool or a library that understands config files in the format that jail.conf uses? I've been rolling my own, and I'm never confident that it's 100%, or future-proof.
-
koobs
ghoti: nope im note
-
koobs
not*
-
ghoti
Dang. Maybe I'll just write an awk script linter for jail.conf and contribute it.\
-
koobs
how would you want it to work?
-
ghoti
Then others can add what's missing. :)
-
koobs
is jails.conf kind of a standin for what would be a OCI/standard method for declaring a jail?
-
ghoti
-
VimDiesel
Title: The OpenContainers Runtime Spec Config
-
koobs
oh i just meant conceptually
-
ghoti
ah, maybe.
-
koobs
jails.conf being an 'implementation' of the concept
-
ghoti
Anyway, I feel we could use something with a bit of *understanding* of our config. Like, `allow.raw_sockets;` has no = after it, `ip4.addr` can take 1 or more arguments separated by commas, etc.
-
koobs
right
-
koobs
feels like a config 'spec'
-
koobs
'schema'
-
ghoti
I have never written a spec, but I have written lots of config automation. :)
-
koobs
there's a concept called a lexer/parser
-
koobs
that programs / languages can be defined in
-
koobs
theres various open source tools to create these 'grammars'
-
koobs
-
VimDiesel
Title: Lexical analysis - Wikipedia
-
ghoti
I've spent the last 15 minutes reading src and about json lexers, to get an idea of what is out there for something more mainstream. 15 minutes is not enough..
-
koobs
-
VimDiesel
Title: jailconf · PyPI
-
koobs
?
-
koobs
-
VimDiesel
Title: jail · PyPI
-
koobs
?
-
ghoti
I love how the lex man page is a full lesson on how to construct an ERE. Never seen that before.
-
ghoti
koobs: jailconf looks like just about exactly what I was hoping for. Not sure I get the other one yet, but it also lead me to
github.com/bsdci/ioc which is interesting.
-
VimDiesel
Title: GitHub - bsdci/ioc: libioc command line tool for BSD jail management
-
koobs
ghoti: nice let us know how it goes
-
jb1277976
Anyone know if a good app for iphone that I can use for mailing list?
-
jb1277976
Of*
-
koobs
mail works fine?
-
koobs
depends what specific functionality you want
-
koobs
not many choices for free and open source
-
» parv moans about Mail (iOS) always stuffing one kind of email in "Junk" folder; there has been no change in behaviour after repeatedly moving that mail from there. He has given up on Mail to see the light
-
jb1277976
koobs: something that i can track like mutt for iphone or something. that top post and stuff
-
accelerat0r
hi guys ! any info about libreoffice not showing in the pkg search ?
-
rtprio
elliot@phil:~$ pkg search -i libreoffice|grep -v language
-
rtprio
libreoffice-7.4.2.3_1 Full integrated office productivity suite
-
rtprio
accelerat0r: ^
-
parv
There is no result in "latest" on stable/13
-
accelerat0r
lets see
-
rtprio
oh
-
accelerat0r
pretty weird then
-
parv
-
VimDiesel
Title: Fallout list - FreeBSD pkg-fallout
-
spork_css
ghoti: thanks for the pointer to
github.com/churchers/vm-bhyve!
-
spork_css
koobs: awesome list, looks like you've been busy w/edits on that wiki page
-
dksnd
how can I restore the boot loader on a freebsd partition?
-
xmj
-
xmj
also have a look at the gpart manpage (last hint)
-
xmj
last hint in the manpage, i mean
-
VimDiesel
Title: boot0cfg(8)
-
dksnd
I'm asking about partition, not a disk
-
dksnd
also I'm not sure I'm using the bsdlabel nonsense
-
dksnd
it should boot from a normal ufs2-formatted partition - is that possible?
-
pvalenta
hello, I am study some of periodic scripts for inspiration. Why is colon before this? ": ${daily_scrub_zfs_default_threshold=35}" ....It is a null command according to man page but why is it needed? Thanks
-
dksnd
also, why /boot/boot2 doesn't have the first sector? is it combined with something else?
-
xmj
i mean, that's what gpart is for
-
dksnd
I'm getting a feeling that the last person who knew how that stuff works died in 1982
-
xmj
have you read the handbook?
-
dksnd
yes
-
xmj
and it's not in there?
-
dksnd
no, it is not there
-
xmj
-
VimDiesel
Title: Chapter 25. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
xmj
stands to reason that "restoring loader" is akin to "upgrading loader"
-
dksnd
something something gpart
-
dksnd
it doesn't work obviously
-
xmj
what have you tried and how has this failed for you?
-
parv
-
VimDiesel
Title: bash - Explanation of colon operator in ": ${foo=value}" - Stack Overflow
-
dksnd
first, gpart doesn't seem to see the partition
-
xmj
post the output to a pastebin
-
dksnd
output of what?
-
dksnd
I can't even reproduce the environment in a vm because your wonderful os doesn't work in virtualbox
-
xmj
of course it does
-
xmj
you're just doing it wrong
-
dksnd
I'm trying to install it but it just hangs
-
pvalenta
parv, oh, nice. Thank you
-
dksnd
playing with boot options doesn't do anything either - i'm not even sure they are applied because the output is the same
-
dksnd
-
VimDiesel
Title: Screenshot, 2022-11-03 12:03:58 - Paste.Pics
-
dksnd
and of course the wonderful community has no solution on their wonderful forums
-
dksnd
also, why /boot/boot2 doesn't have the first sector? is it combined with something else?
-
debdrup
ooo, openzfs devsummit videos are starting to show up.
-
debdrup
if that image is the first boot from media, there's no /etc/hostid and /boot/entropy included on the install media, so the problem isn't anything to do with those messages
-
debdrup
i'm guessing that since there are blue borders around the image, this is some sort of serial redirection console attached to hardware?
-
debdrup
so you need to set up the serial redirection properly
-
debdrup
or maybe that's part of the website, but that doesn't really preclude serial redirection
-
phryk
is mixing pkg repositories still discouraged? i recently switched back to the official pkg repo, but my xmpp server is currently broken because the luadbi package is built without postgres support…
-
phryk
so I'm wondering whether i can just make a tiny pkg repo with only the packages for which i need different build-time options without it messing things up…
-
debdrup
If you have to use multiple package repositories, it's best if you overlay them with priorities.
-
debdrup
pkg.conf(5) describes the property.
-
phryk
debdrup: I assume you're talking about "PRIORITY"?
-
debdrup
Yup.
-
phryk
Great, thanks.
-
debdrup
It'd be quite odd for it to be named anything else ;)
-
phryk
debdrup: I wouldn't be surprised by that, tho. :P
-
debdrup
Really?
-
phryk
I assume one problem with mixed repos would be if my overlay repo has some ports built with some option deactivated that's active by default when others ports not in the overlay depend on it?
-
phryk
Yes, really. This is IT, things don't necessarily make sense. :P
-
debdrup
Depends on the priority.
-
debdrup
Usually things make a _little_ more sense in FreeBSD though.
-
phryk
The overlay would obviously have a higher priority so the packages that are in there override the ones from official pkg repo.
-
phryk
Yes, usually. :P
-
phryk
Big reason why I picked FreeBSD ;)
-
debdrup
The biggest problem with mixed repos is when you're not in-sync with the latest checkout of the packages, really.
-
koobs
morning
-
koobs
Full FreeBSD DevSummit Day 1 Video is up:
youtu.be/RxSTqxpT1y0
-
VimDiesel`
Title: November 2022 FreeBSD Vendor Summit - Day 1 - YouTube
-
koobs
spork_css: my pleasure
-
koobs
glad its useful
-
» dch waves to phryk
-
phryk
heya, dch!
-
dch
meena: hey I set up hedgedo today, its cake now.
-
jb1277976
Thanks koobs all those FreeBSD heads talking about stuff. Makes me feel not alone 😁
-
koobs
\o/
-
codersmoke
anyone have any idea why i can ping a jail's host, but cannot ping anything else beyond that?
-
codersmoke
this is a vnet jail. shared jail works fine
-
RhodiumToad
usually that means you didn't enable forwarding on the host
-
RhodiumToad
if not that, it's likely either a routing or firewall problem
-
codersmoke
RhodiumToad: net.inet.ip.forwarding=1 # Enable IP forwarding between interfaces
-
codersmoke
in my sysctl.conf
-
codersmoke
i have unifi hardware, say the jail is 192.168.1.17, and the host is 192.168.1.125, and the router is 192.168.1.1
-
meena
dch: did you put it into ports?
-
codersmoke
host network works fine
-
RhodiumToad
codersmoke: I think you're probably misunderstanding how routing works with vnet
-
codersmoke
RhodiumToad: I probably am :)
-
RhodiumToad
the vnet jail behaves like an entirely separate host, attached by a _separate_ network interface
-
RhodiumToad
have you set up a bridge for the host and the jail to share the network?
-
codersmoke
yes, i'll share my ifconfig, if that's ok?
-
RhodiumToad
sure
-
codersmoke
-
codersmoke
RhodiumToad: ^
-
codersmoke
dpaste.org/jL0LZ is my rc.conf on the host
-
RhodiumToad
you've put the host ip on the physical interface not on the bridge, in my experience this doesn't work properly though the failures can be subtle
-
RhodiumToad
any firewall rules?
-
codersmoke
none
-
codersmoke
thought i'd get it going before i implement firewall
-
codersmoke
so, em0 on host shouldn't have ip?
-
RhodiumToad
oh, also you have two ifconfig_em0 lines, that doesn't work
-
RhodiumToad
I would try it like this: ifconfig_em0="up" ifconfig_bridge0="inet 192.168.1.150 netmask 255.255.255.0 addm em0"
-
RhodiumToad
gateway_enable="YES" should enable forwarding without needing to have that separately in sysctl.conf
-
codersmoke
ok, i'll give this a go right now
-
codersmoke
thanks for your help RhodiumToad
-
codersmoke
host inaccessible now via ssh
-
RhodiumToad
what exactly does the rc.conf look like now?
-
codersmoke
dpaste.org/ubxQa RhodiumToad i had to type it over from vmware interface
-
codersmoke
no i won't win any awards for following instructions, maybe i botched your tip
-
codersmoke
I should add, i have a functioning vnet on my freenas server, and it puts the inet ip on the igb0 interface and not the bridge0
-
RhodiumToad
you missed out the ifconfig_em0="up"
-
RhodiumToad
(you need that to bring the interface up in the absence of an address)
-
codersmoke
thanks, is that before or after the ifconfig_bridge0 line?
-
RhodiumToad
doesn't matter
-
RhodiumToad
rc.conf is just a set of variable assignments, not a list of commands
-
RhodiumToad
that's why specifying some name twice doesn't work, the second assignment just overwrites the first
-
codersmoke
so, I added it, and still can't ping the host
-
codersmoke
(from my laptop)
-
RhodiumToad
"addm em0" not "add em0" in the bridge0 line
-
RhodiumToad
codersmoke: any progress?
-
codersmoke
not yet, i'm messing a bit with ifconfig though
-
codersmoke
thanks for hanging around though.
-
codersmoke
RhodiumToad: hardly as simple as a static route in my unifi controller?
-
RhodiumToad
shouldn't be needed if the bridge is correctly set up.
-
codersmoke
resorting to tcpdump
-
RhodiumToad
can you see the ARP table on the router?
-
codersmoke
a bit complicated on the unifi controller, it can be done, but i just don't have immediate access to the console
-
codersmoke
strange thing though. i am seeing ARP requests in tcpdump in the jail itself
-
RhodiumToad
yes, you should
-
codersmoke
seeing reference to my wife's iphone too, which make me certain that *something* is coming through
-
codersmoke
i can only suspect its a routing issue
-
RhodiumToad
the vnet jail should see any broadcasts on the network that it's bridged to
-
RhodiumToad
which will include all arp requests
-
codersmoke
possibly an in-jail routing issue, perhaps
-
RhodiumToad
it should answer arp requests for its own IP
-
codersmoke
there is no reference to the jail's ip, or even the host's ip for that matter
-
codersmoke
in the tcpdump that is
-
RhodiumToad
if you try pinging the jail from outside, do you see arp requests for it?
-
codersmoke
no
-
codersmoke
none
-
codersmoke
oh wait, 22:33:26.522137 ARP, Request who-has 192.168.1.240 tell 192.168.1.17, length 28
-
RhodiumToad
do you see the pings?
-
RhodiumToad
and do you see a response to that request?
-
codersmoke
no
-
codersmoke
nothing there. so it's outbound issue (jail--->host) presumably?
-
RhodiumToad
what's the ifconfig look like from within the jail?
-
codersmoke
-
RhodiumToad
hm
-
RhodiumToad
ah
-
RhodiumToad
.17 is the jail
-
codersmoke
yes
-
RhodiumToad
what is .240 ? the box you were pinging from?
-
codersmoke
correct
-
codersmoke
and the host is .150
-
RhodiumToad
so the jail sent out an arp request to find out where .240 is, and got nothing?
-
codersmoke
oh wait yes, that makes more sense
-
codersmoke
frustrating, right?
-
RhodiumToad
can you check with tcpdump on the host em0 to see if that arp request got out, and on .240 to see if it was received there?
-
codersmoke
RhodiumToad: I must hit the sack now, but I'll try tomorrow, is it ok to /msg you with the end result?
-
RhodiumToad
sure, if you like
-
codersmoke
thanks mate! appreciate the help.