-
johnjaye
rtprio: first thing i do for any irc client
-
johnjaye
ZedHedTed: the counter to the one that joins, asks, and leaves is the one who sits patiently waiting, but only one person responds, and they answer every question with another question.
-
V_PauAmma_V
And there, there's me. I came in in 2019 with a question and never left. :-)
-
rtprio
same, but 1999 or so
-
mns
n/28
-
mns
wrong window :(
-
rtprio
too many windows, nms
-
rtprio
too many
-
scoobybejesus
i'm getting stuck. i have zfs on root, mirrored, nda0 and ada0, booting from nda0p1 (efi). i need to be able to boot from ada0p1 so i can zfs replace nda0 with a new drive.
-
scoobybejesus
`dd if=/dev/nda0p1 of=/dev/ada0p1 bs=1m` << seems like that should put the necessary bootcode where it needs to be.
-
scoobybejesus
`efibootmgr -a -c -l /boot/loader.efi -L efi-new` gives me an error "efibootmgr: Cannot translate unix loader path '\boot\loader.efi' to UEFI: No such file or directory"
-
scoobybejesus
forgive me for rubberducking, but here we go. `mount -t msdos /dev/ada0p1 /mnt` so i have access to the actual loader bin. then `efibootmgr -a -c -l /mnt/efi/boot/BOOTx64.efi -L efi-new` and it seems there's a new entry now. time to reboot, swap nvme, and hope i boot into ada0
-
scoobybejesus
we're booting!
-
remiliascarlet
I installed a network card (PCIe) some time ago, but can't seem to get it online, even though the card itself gets recognized by FreeBSD just fine. Anyone knows why? Card in question is igb0@pci0:2:0:0, Intel I210 Gigabit Network Card.
-
remiliascarlet
But even assigning an IP or even DHCP won't make it connect.
-
voy4g3r2
remiliascarlet: what does your /etc/rc.conf have for the card?
-
remiliascarlet
voy4g3r2: ifconfig_re0="DHCP" and ifconfig_igb0="DHCP"
-
voy4g3r2
the realtek one works.. but the igb0 one does not?
-
remiliascarlet
Yes.
-
voy4g3r2
and ifconfig igb0 shows anything?
-
voy4g3r2
i take it you ahve done this stuff already, probably
-
remiliascarlet
voy4g3r2: Yes, ifconfig igb0 shows the flags, options, the MAC address, media type, and status as "active", but no IP address.
-
voy4g3r2
scoobybejesus: that was a fun experience.. i just did something similar myself but went from ada0 to nvme
-
voy4g3r2
remiliascarlet: last question, does it work if you have a static ip address?
-
voy4g3r2
something like this:
dpaste.org/4b84h
-
VimDiesel
Title: dpaste/4b84h (Plain Text)
-
voy4g3r2
this is my rc.conf related to network
-
remiliascarlet
voy4g3r2: As I already said, it doesn't. Neither static nor DHCP.
-
remiliascarlet
voy4g3r2: Just curious, what does "cloned_interfaces" exactly do?
-
remiliascarlet
Just to check if my assumption is correct.
-
remiliascarlet
Also, is "netmastk" a typo?
-
voy4g3r2
it is setting up virtual nics for bhyve and jails
-
remiliascarlet
Oh, so not what I thought.
-
voy4g3r2
so it will make "copies" of re0 for use in the subsystems and bridge them
-
voy4g3r2
and i have a typo.. errr
-
remiliascarlet
I was expecting something like "in case network card 1 fails, automatically switch to network card 2".
-
voy4g3r2
i am not sure if you can do that
-
voy4g3r2
the context i was helped with, make epair (jails) tap (bhyve)
-
remiliascarlet
If you could, it would be really useful.
-
voy4g3r2
so i can have 2 bhyve instances running at once and a jail running
-
voy4g3r2
if you want more that add more :)
-
voy4g3r2
and i am not 100% sure why your situation is happening but figure maybe showing mine would spark an idea
-
remiliascarlet
I don't really have any usecase for jails myself.
-
voy4g3r2
i started doing my manual pages craziness with a jail then transitioned to bhyve when it made more sense to do that work in a -CURRENT instance
-
voy4g3r2
since my base is 14.0 can not make a jail that is higher than base
-
voy4g3r2
with bhyve i was even thinking of trying haiku
-
remiliascarlet
Maybe the one usecase I can think of would be to put Steam in a jail, but Steam doesn't even work on FreeBSD without a jail to begin with anyway.
-
voy4g3r2
or plan9front keeps coming up in my youtube stuff
-
voy4g3r2
i have thought about doing a jail for my git server
-
voy4g3r2
right now i am just using a git user and a spot on zfs
-
voy4g3r2
and for some reason my bhyve instance lags when i try to commit to git
-
voy4g3r2
too many ideas, not enough time
-
remiliascarlet
I tried both. Haiku installs in under a few seconds, but crashes a few minutes in after installation. And 9front has the issue that I can't get my mouse working no matter what, and the OS is a mouse centric system.
-
voy4g3r2
a very "weird" mouse centric system at that
-
voy4g3r2
the concept is quite neat but it is like.. what use case
-
voy4g3r2
and be was just awesome .. so there is that
-
voy4g3r2
does anyone know of a way to "figure out" if a package is a contrib package in base without going to each file?
-
voy4g3r2
i was thinking that everything in contrib/ would be the whole thing.. but that is clearly not an all inclusive list
-
voy4g3r2
wiki.freebsd.org/ContribSoftware <-- not really sure if this is even accurate
-
VimDiesel
Title: ContribSoftware - FreeBSD Wiki
-
kevans
voy4g3r2: contrib/, sys/contrib, crypto/
-
kevans
oh, and sys/cddl, sys/gnu
-
kevans
and cddl/
-
voy4g3r2
kevans: thank you!! perl scripts are now being updated..
-
voy4g3r2
and one wonders, why i did NOT ask that question earlier :)
-
voy4g3r2
remiliascarlet:
man.freebsd.org/cgi/man.cgi?query=lagg&sektion=4&format=html <-- this looks like how you could do "aggregation" of network connections.. but i do not think it oculd work with that bridge thing.. tap0 epair0 stuff
-
VimDiesel
Title: lagg(4)
-
mage
stupid question, how many jails is too much jails ?
-
mage
I'm currently hosting 50+ webapps and I was wondering about the feasability of having one jail per webapp
-
mage
(currently I have one jail for Python webapps, one jail for Ruby webapps, one jail for PHP webapps, etc)
-
mage
it would ease deployment of those webapps as I was planning to have one zfs dataset per webapp, so the plan is to create a new zfs dataset on the "build" machine, build stuff, and simply use zfs send/recv to redeploy
-
voy4g3r2
mage: beyond the environments using different technology stacks are they all using the same web server? as in nginx or apache or whatever?
-
voy4g3r2
the first thing that pops in my head.. that is a lot of jails to manage.. where the main focal points are 3 technology stacks
-
JohnGalt
I have a laptop with a Intel Graphics Iris Xe on a 12th gen i7 system
-
JohnGalt
(frame.work) it doesnt detect and when I load i915kms it hard locks
-
JohnGalt
Is this a known issue?
-
jbo
JohnGalt, has been encountered before - yes
-
kevans
voy4g3r2: I don't know, but I don't blame you for asking (it's a mess) or for not realizing these other directories are generally contrib (who isn't going to be blindsided by crypto/ being contrib?) :-)
-
jbo
JohnGalt, FreeBSD & DRM versions?
-
jbo
kevans, I was just thinking of you :>
-
» kevans runs
-
jbo
kevans, any news on the newlib efforts? :D
-
kevans
mage: 999999 is too many jails
-
kevans
jbo: no, sorry; trying to push through this last bit of effort to wrap up my ecc branch
-
jbo
kevans, no need to apologise :o
-
jbo
I'll just be salty about it :>
-
scoobybejesus
voy4g3r2: did you come to learn anything about nvd vs nda vs nvme? my drive is an nvme that i'm replacing, but i don't understand why i see nvme0, nda0, and nvd0 in /dev, and in `zpool status`, `geom disk list`, and `gpart show` it uses nda0
-
scoobybejesus
if there is a resource to read about these, that summarizes a comparison with notable points, that might be super useful
-
kevans
jbo: heh :-)
-
» jbo boots a VM to do CM4 development :<
-
kevans
if this ecc branch hadn't just reached its three year anniversary I'd be more than happy to deprioritize it, but I do want to get it out of my local tree
-
jbo
kevans, fully understood :)
-
jbo
kevans, curiosity: ecc?
-
kevans
-
VimDiesel
Title: Elliptic-curve cryptography - Wikipedia
-
kevans
as an alternative to RSA for signing
-
jbo
kevans, so ed25519 et al?
-
kevans
yeah
-
jbo
kevans, what exactly are you working on?
-
kevans
pkg
-
jbo
ah, that is nice. I'll gladly nuke my RSA keys
-
jbo
kevans, you wouldn't be rolling your own crypto tho, right?
-
kevans
oh yeah. :-) no, not at all
-
voy4g3r2
scoobybejesus: i could never figure out 100% it was my understanding that nvme is the controll and nda is the drive
-
voy4g3r2
scoobybejesus: i used this great article from mason to help me with the clone:
wiki.freebsd.org/MasonLoringBliss/ZFSandGELIbyHAND
-
scoobybejesus
coolio thanks for the input
-
VimDiesel
Title: MasonLoringBliss/ZFSandGELIbyHAND - FreeBSD Wiki
-
scoobybejesus
ah awesome
-
voy4g3r2
and lw brain
-
voy4g3r2
awesome work and i got tons of onenote stuff
-
voy4g3r2
i started with lw and then went on what mason shared to fill in holes
-
voy4g3r2
i had issues with the efi partition stuff .. i had the situation where my old drive, tiw as using that efi partition and not the new one nda0
-
dch
mage: 1000 jails is quite common. over that it gets less common.
-
souji
What tool do do you use to manage that many jails?
-
jbo
sysutils/cbsd is nice for larger setups. it allows to register multiple nodes, migrate between nodes etc.
-
souji
I tried to use cbsd once, but never realy got the hang of it. It looked quite complex tbh
-
jbo
cbsd jconstruct-tui
-
jbo
cbsd jstart
-
jbo
done :D
-
jbo
cbsd --help if in doubt
-
jbo
and docs
-
jbo
and author is very responsive too
-
souji
oha
-
souji
In that case I was probably just stupid.... xD
-
souji
Does cbsd also utilises ZFS like bastille does?
-
jbo
yes
-
jbo
I once had to move an entire jails dataset to a different pool and it worked flawlessly too.
-
souji
that's pretty nice
-
jbo
CBSD 14.0.4 was released yesterday and it now explicitly requires to have a separate dataset
-
jbo
so newcommers should not run into the zfs-on-root-with-cbsd issue anymore
-
souji
If I remember correctly cbsd required sudo, is it possible to build it without it?
-
souji
I will definitely try cbsd again :)
-
spmzt_
Hi, I have a question about openssl and x509. I'm trying to sign my intermediate ca csr by root ca. but I'm getting this error: "Signature did not match the certificate request" could anyone help me to understand what does it mean?
-
jbo
souji, nope, cbsd requires sudo to do it's magic. the only reason I still have sudo over doas :(
-
jbo
souji, main issue is that doas does not support wildcards
-
souji
jbo: ahhh thats to bad
-
jbo
-
VimDiesel
Title: doas support · Issue #83 · cbsd/cbsd · GitHub
-
VimDiesel
83 – System crash after abrupt end of slip session
bugs.freebsd.org/bugzilla/show_bug.cgi?id=83
-
jbo
-
VimDiesel
Title: Usage of sudo · Issue #536 · cbsd/cbsd · GitHub
-
VimDiesel
536 – No copyrights in usr/src/lib/libc/stdtime
bugs.freebsd.org/bugzilla/show_bug.cgi?id=536
-
souji
ok, I see the issue... it seems like the is no easy solution to that
-
souji
spmzt_: I don't know about openssl but if you only need to do that for a development environment I can recommend the CLI tool from smallstep. I found it easier for working with certificates on the command line than openssl.
-
souji
-
VimDiesel
Title: GitHub - smallstep/cli: 🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc.
-
skered
There's also easyrsa (I think that the name).
-
skered
easy-rsa
-
spmzt_
souji: thank you, saw smallstep before. but for now, I need to use openssl. The error is so confusing. I can understand what a signature is in a CSR, But I can't understand what exactly is being compared to it?
-
souji
spmzt_: fair enough. I'm sorry, but I also have no clue what this error refers to...
-
spmzt_
Solved. but I still can not understand why a CSR with exact same parameters and extensions generated by openssl would not do the job, but the yubikey's tool (ykman) can?!
-
scoobybejesus
i think i messed up. there are no empty sectors at the end of my new, bigger, disk. i just `gpart resize -i4 nda0`, and it took all the space. but i want to leave space at the end. what do i do now?
-
scoobybejesus
can i just destroy the partition and create a new one? it's just a partition scheme, right? nothing should be filling the second half of the disk yet.
-
cracauer
Why wouldn't you?
-
cracauer
If you didn't create a filesystem on the partition yet.
-
scoobybejesus
well, i spent 13 hours resilvering
-
SponiX
sounds like a good time
-
scoobybejesus
i am replacing the disks in my mirror zroot with larger disks. this was the first disk
-
cracauer
Oh. Yes, I did the same thing at least once.
-
scoobybejesus
From what I understand, deleting the partition does not delete the data. So as long as the partition starts in the same place it does now, I should be alright to delete it and recreate it a bit smaller. I hope.
-
cracauer
Yes. And another resilver would uncover problems.
-
scoobybejesus
Ah true
-
scoobybejesus
now the device is busy. maybe i need to offline it from the pool first.
-
voy4g3r2
scoobybejesus: do you have a backup of your data? you can resize a partition but if anything is "off" you may lose data
-
scoobybejesus
i have everything already on the other (ada0) drive of the mirror that i just resilvered from. so i pulled nda0 offline, ran gpart backup ada0 | gpart restore -F nda0, and put nda0 back online. and then initiated a scrub. so far so good.
-
scoobybejesus
the next time i resize, i will specify a size. hopefully i get it right. gpart doesn't have a -n for a dry run
-
voy4g3r2
scoobybejesus: nice!
-
voy4g3r2
the one area that got me was making sure ebiboot knew about the other location
-
voy4g3r2
kevans: yeah, well maybe i should write that down somewhere.. i have gone down the freebsd wiki rabbithole and man there is just "stuff"
-
voy4g3r2
but it adding those directories, i found 6 more "contrib" packages that are no correctly aligned
-
voy4g3r2
oh look at that.. the re0 kicked me off my ssh sessions
-
voy4g3r2
errr!!
-
voy4g3r2
scoobybejesus: so the efi boot partition is all fixed now and you are just scrubbing? may i ask why a scrub? i did not do that
-
voy4g3r2
probably should
-
scoobybejesus
ssd's will do wear leveling and basically whatever they want under the hood. i had expanded the partition to larger than i wanted it. after putting the partition back how it was previously, i wanted to ensure that all the data was still in place where i left it. the scrub completed (0B repaired), so now i will put the bootcode back on nda0 and swap out ada0
-
scoobybejesus
well.. after i resize correctly
-
voy4g3r2
with such great power, requires great patience
-
voy4g3r2
i got sucked into that area myself
-
voy4g3r2
but glad you were able to get through it
-
rtprio
i didnt know you could expand a mirror, i thought it was only a raidz
-
voy4g3r2
rtprio: i picked from that mason article
-
voy4g3r2
i did not do the mirror stuff but it had nuggets in there that helped with the efi stuff
-
voy4g3r2
-
VimDiesel
Title: manpages/tools/parse_broken_refs.pl at master · chrisdavidson/manpages · GitHub
-
rtprio
well cool
-
rtprio
my sector size is wrong so sadly i can't expand the pool
-
rtprio
ada6 ONLINE 0 0 0 block size: 512B configured, 4096B native
-
rtprio
(i mean i could, but the new drives would also be 4096 native)
-
scoobybejesus
feels great to have 932G available
-
mattie
I am geting bad PIN with gnupg and a yubikey with gpg when I have tested the pin on other machines and the pin is ok, also gnupg does not start a pinentry but instead prompts for a password
-
rtprio
do you have pinentry installed?
-
mattie
FreeBSD 14/gpg 2.4.3
-
mattie
yes
-
mattie
/usr/local/bin/pinentry-curses
-
mattie
sometimes it spams gpg-agent CONFIRM 1
-
mattie
I was able to set the pin tries to 10, so I know the yubikey works
-
mattie
clearly I cant keep trying things because it blocks, and I have to unblock it
-
mattie
also I cant get a drm driver to load for my intel Iris Xe card, FreeBSD 14, tried loading i915kms and it hard locked