-
martinrame
Hi, I'm playing with Linux compat with a Ubuntu base and cannot make OpenGL apps work, I found the nvidia driver are saved in /compat/linux but not /compat/ubuntu
-
martinrame
How can I make them work in /compat/ubuntu?
-
concrete_houses
are ARM cpu taking over?
-
rustyaxe
unlikely.
-
concrete_houses
how well does freebsd run on them?
-
concrete_houses
I wonder if nvidia desktop pc coming soon
-
concrete_houses
is archlnux faster than freebsd?
-
V_PauAmma_V
Only way to know for sure is to run your specific workload(s) on both and compare.
-
debdrup
FreeBSD runs well on ARM CPUs, it's all the peripheral hardware that's the problem as usual.
-
RhodiumToad
pretty sure that guy is a long-term troll
-
jbo
Hey guys, I have an old HP Gen8 server with 10x SAS drives (hot-plug capable). after inserting one of the disks I get a message (in dmesg): "ciss0: Hot-plug drive inserted [blah blah blah]". However, the disk does not become "available". 'geom disk list' doesn't show it and there isn't an entry in /dev like there is when I boot the server with the disk already present.
-
jbo
is there anything I have to do to make the disk "work" after receiving the hot-plug message?
-
jbo
camcontrol rescan seems to do the trick :)
-
meena
jbo: yay!
-
ferz
Hi. I've a trouble with freebsd 13 and VLAN on Hetzner VSwitch
-
ferz
-
VimDiesel
Title: magnet_web paste from Someone at 217.168.150.38...
-
ferz
I don't understant how to reach 10.100.1.2 host
-
otis
ferz: you need to assign all respective hosts to the same vswitch
-
otis
then you need to configure a vlan on main interface of the server. the vlan ID is the "vswitch" number
-
otis
and then you assign the IPs on the vlan subinterfaces
-
otis
if you have vswitch number (vlan), for example, 10, then you need to, for example: ifconfig vlan10 create vlan 10 vlandev em0
-
otis
and then you might also need to write all this info to /etc/rc.conf (using proper syntax)
-
ferz
otis: yes, vlan ID is 4000 and I've increase net.fib and used fib=1
-
ferz
-
VimDiesel
Title: magnet_web paste from Someone at 217.168.150.38...
-
ferz
I've done in this way.
-
ferz
Other hosts are Linux on VLAN 4000 and they see each others
-
otis
i wouldn't use "fib" unless you really need to
-
otis
because otherwise you need to setfib -F 1 route get 10.100.1.5
-
otis
eh, 10.100.1.2
-
otis
or setfib -F 1 ping 10.100.1.2
-
ferz
otis: thank you
-
ferz
otis: I'll redo without fib then
-
ferz
-
ferz
it doesn't ping yet.
-
VimDiesel
Title: magnet_web paste from "ferz" at 217.168.150.38...
-
acu
I found a very interesting abstract - wonder if there is full video of paper somweher : THE FREEBSD APPLIANCE: LEVERAGING FREEBSD AND STRATEGIC SCRIPTING TO DELIVER STORAGE AND VIRTUALIZATION SERVICES
-
otis
ferz: output of ifconfig? output from "arp -an" ?
-
meena
anyone here running FreeBSD (cloud) servers without swap?
-
meena
(context, in case you're wondering:
github.com/freebsd/freebsd-src/blob/main/libexec/rc/rc.d/growfs adds swap, unless you tell it not to)
-
VimDiesel
Title: freebsd-src/growfs at main · freebsd/freebsd-src · GitHub
-
yuripv
that's some serious magic
-
yuripv
i'm still missing the context though
-
ferz
otis:
paste.scsys.co.uk/8853 arp and ifconfig output
-
VimDiesel
Title: magnet_web paste from Someone at 217.168.150.38...
-
meena
yuripv: whoops, sorry, in case you mised it: 14:00 <meena> anyone here running FreeBSD (cloud) servers without swap?
-
yuripv
meena: yes, but what is the real question?
-
yuripv
(or is it just a poll? :)
-
meena
are you running a server without Swap? if so, why? and: How upset would you be if you made an image without swap, and a cloud-provisioning software squeezed some swap in there
-
rustyaxe
people still run swap in 2023?
-
CrtxReavr
Seems like running without swap would be quite reckless.
-
meena
we use swap to crashdump…
-
dkeav
whats wrong with running swap
-
foxie
Nothing
-
foxie
The only real argument I’ve heard against it is SSD lifetime years and years ago. But I haven’t heard that as much more recentlyb
-
coreystephanphd
Might we see a 14.0-ALPHA (ready for binary upgrades moving forward to -BETA, -RC*, and -RELEASE) in the coming days?
-
V_PauAmma_V
Unless
freebsd.org/releases/14.0R/schedule isn't current, a prerequisite step planned for April 25 was delayed, so your guess is as good as mine.
-
VimDiesel
Title: FreeBSD 14.0 Release Process | The FreeBSD Project
-
meena
coreystephanphd: as soon as we have a fix for OpenSSL 3 in ports and a decision on what to do with it on base, we'll get an update schedule
-
coreystephanphd
meena: +1
-
dch
building from src, as non-root, with DESTDIR & MAKEOBJDIRPREFIX=/tmp/obj set, I still see lots of warnings about access
-
dch
make[5]: warning: /lib/geom: Permission denied.
-
dch
should buildworld even be doing this? why would it need to touch /lib/geom etc?
-
» dch just finds NO_ROOT ... what else am I missing?
-
meena
dch: there was a thread recently, and, i don't remember
-
dch
I'm getting pretty close. bw, bk, all as non-root.
-
dch
meena: I guess make release will be unable to make a memstick though
-
meena
what about make packages? eh? eh??
-
dch
is this a pkgbase thing
-
dch
IDK surely all we need is sh, lua, and cc
-
dch
everything else is sugar-goating users
-
meena
mmmmmhh sugar goats
-
dch
I use swop in clowd instances so i can get a crashdump if it happens
-
dch
well well /tmp/obj/tmp/src/arm64.aarch64/release/oci.qcow2
-
dch
I get all the way through to a built image without root
-
dch
... its borked ofc
-
dch
mktemp: mkdtemp failed on /var/tmp/temproot.OSt8VqBBa9: Permission denied
-
meena
how?
-
dch
-
VimDiesel
Title: mm-mtree.sh « scripts « release - src - FreeBSD source tree
-
dch
why can't this use a normal tmpdir
-
meena
why does that invocation need root?
-
dch
that doesn't when I fix /var/tmp/ which on these systems isnt user writable
-
dch
users get /tmp/ and have to like it
-
dch
anyway a bit further on we need chroot, pw "you must be root" also
-
meena
oh, right
-
meena
I still think pw needing root in an alternate root is a bit nonsensical
-
dch
yeah maybe theres a fakeroot thing that fixes that
-
meena
what do we use chroot for?
-
meena
dch: we can TMPROOT to depend on NO_ROOT and then use /tmp
-
rwp
Why would /var/tmp be changed away from the default world writable with the t-bit set? What's the advantage of doing that?
-
rwp
This is the system default: drwxrwxrwt 9 root wheel 47 May 10 13:48 /var/tmp
-
dch
rwp: the less place attackers have to write, .... the less place they have ... to write
-
rwp
Re: "warning: /lib/geom: Permission denied." I have been wondering about those too. I haven't figured out exactly what is happening at that point yet that wants root at that point. Seems very gratuitous at that point in the build.
-
rwp
If you want you could replace /var/tmp with a symlink to /tmp and I think that everything will continue working.
-
dch
yes but sometimes as root/wheel I want a /var/tmp/
-
rwp
It's just that by convention /var/tmp is where files will survive a reboot. Like vi/vim recovery files. But by convention /tmp is always purged on a reboot.
-
dch
and /tmp is a tmpfs in my place
-
dch
these are somewhat restricted servers, so I'm fine with that
-
rwp
For restricted servers then I think you will want to build in a jail and then upgrade from there. Probably. Seems plausible. That's the route I am taking.
-
RhodiumToad
by convention /tmp _may_ be purged on a reboot, it's not usually a default
-
RhodiumToad
obviously making it tmpfs is one way to do that
-
RhodiumToad
there's also an rc.conf option for it
-
rwp
Purging /tmp on reboot is one of those cultural changes that happened about 1995 in the unix world. Using a tmpfs for /tmp seemed to flow through about 2010.
-
RhodiumToad
setting TMPDIR=/tmp may help with some utilities that try /var/tmp
-
RhodiumToad
I'm talking specifically about freebsd
-
rwp
Since the default mktemp is /tmp then that it tried to use /var/tmp tells me that someone already either set TMPDIR=/var/tmp or specified it on the command line.
-
rwp
If one were inclined one could hack a modified mktemp that always used /tmp regardless of TMPDIR or command line arguments. It would be pretty straightforward.
-
RhodiumToad
you're trying to build the src tree as non-root?
-
rwp
RhodiumToad, It is dch who is doing this. Working through the build as non-root.
-
rwp
But I agree with dch's unstated but implied feeling that building everything as root is "icky" and really should be a non-privileged build.
-
rwp
I would like a non-root build process working for me.
-
RhodiumToad
been a while since I tried it. let's give it a whirl
-
dch
RhodiumToad: yep. buildworld and buildkernel are fine. its the final cd /usr/src/release && make ... WITH_CLOUDWARE=yes CLOUDWARE=OCI cloudware-release
-
RhodiumToad
ah
-
rwp
It basically works. But we do get all of these "warning: /lib/geom: Permission denied." types of errors on all of the system dirs at various points in the build.
-
dch
tbh I'm curious how far I'd get
-
RhodiumToad
you get those errors in buildworld, buildkernel, or release?
-
rwp
Let me paste and post a build log from one of my builds...
-
RhodiumToad
I can see some obvious issues with building release as non-root, for example the fact that you can't set schg on files
-
rwp
It's 84MB in size. So, maybe fetch it and browse it with less rather than a web browser?
proulx.com/tmp/freebsd/buildworld.out.txt
-
rwp
I am in the wheel group and therefore it had write permission to /usr/obj. dch is doing further overrides to put that elsewhere, and is seeing other additional issues.
-
» RhodiumToad aborts the build he just started having realized it was on the wrong box
-
dch
-
VimDiesel
Title: Snippet | IRCCloud
-
RhodiumToad
hm
-
dch
^ this sort of stuff for example. IIRC this is actually from release build, but it is the same dirs and warnings in buildworld/buildkernel
-
RhodiumToad
so the thing with make is that it sometimes produces spurious "permission denied" warnings on dirs
-
rwp
When I ran that last build I forgot to give it a -j option so it ran to completion with one thread. Took a little over 10 hours on a modestly speedy box.
-
dch
and in the cloudware section:
-
RhodiumToad
it checks for dir writability whenever you set the object dir, even if that dir never actually gets used
-
dch
-
VimDiesel
Title: Snippet | IRCCloud
-
RhodiumToad
so for example I have a readonly /usr/src, and make always whines about that.
-
kraptv
dch: I reached out to Hetzner directly to see if they might furnish some credits for FreeBSD research, BTW!
-
rwp
RhodiumToad, That comment about chflags schg immutable is a good one. What files normally get that on a default system?
-
meena
kraptv: I'm working on cloud-init and I think maybe the next release will be working a lot better on Hetzner, then they could consider providing official images again??
-
meena
there's a bunch of PRs in the pipeline that should make it work less bad on Hetzner and DigitalOcean
-
RhodiumToad
rwp: libc, libcrypt, linthr, ld-elf, maybe a few others
-
rwp
I ran "find -x / -flags +schg -exec ls -ldo {} +" across my system and found only one "dr-xr-xr-x 2 root wheel schg,uarch 2 Dec 1 2021 /var/empty"
-
rwp
But maybe the -x trimmed too much.
-
rwp
I ran "find -x /usr/* -flags +schg -exec ls -ldo {} +" without too much thought to look over everything else and no other files with schg set found.
-
RhodiumToad
also init, chpass, login, opieinfo, opiepasswd, passwd, su, crontab, a few others
-
dch
kraptv: cool! andrew@ has some initial patches for gpu boot loader, when I get time to test
-
yuripv
what's gpu boot loader?
-
dch
RhodiumToad: so the consensus is, building a release needs root still?
-
dch
-
dch
I should have said "virtio-gpu loader support on arm64"
-
yuripv
oh, i thought we are now running on gpu
-
yuripv
(doesn't sound that crazy nowadays)
-
RhodiumToad
someone got linux running in a gpu shader.
-
dch
yuripv:
dashbit.co/blog/nx-numerical-elixir-is-now-publicly-available runs erlang vm bytecode in gpu. the sky(net) is the limit these days
-
VimDiesel
Title: Nx (Numerical Elixir) is now publicly available - Dashbit Blog
-
RhodiumToad
rwp: how did you install? the system I'm looking at is a 13.2-stable installed via installworld
-
RhodiumToad
maybe release uses the NO_FSCHG option, I don't know
-
RhodiumToad
installworld sets schg for any program or lib that has PRECIOUSPROG or PRECIOUSLIB set in its makefile
-
rwp
RhodiumToad, A standard ISO installation and then standard freebsd-update upgrades subsequently.
-
rwp
My system is 13.1-RELEASE-p7 at this moment.
-
RhodiumToad
hm, I don't have an installer-installed system handy
-
RhodiumToad
lemme download a release
-
rwp
I am running a full binary installed system. freebsd-update with pkg binary packages. But I would like to be comfortable building the full system from source.
-
RhodiumToad
eh. I have to sleep now
-
rustyaxe
ENOSLEEP!