-
morpho
RhodiumToad: out of interest. On void linux I had to enable the agetty-ttys0 service
-
morpho
so I am trying to do the pci passthrough for my wifi card
-
morpho
i dont really understand what I am doing. Got wireless working in the bhyve vm
-
morpho
what do I need to know BSD side?
-
morpho
would this work?
bsd.ac/nqdaavi
-
kevans
heh, cute: "error: Fssh_kex_exchange_identification: client sent invalid protocol identifier "GET / HTTP/1.1""
-
rwp
Probes. Endless probes. Sigh. It's the dumpster fire that is the Internet. (shrug)
-
concrete_houses
can ZFS do snapshotting?
-
concrete_houses
does ufs do snapshotting?
-
concrete_houses
I just deleted some crap due to symlink
-
concrete_houses
usr and home
-
concrete_houses
ufs
-
concrete_houses
any way to go back 4 hours?
-
rwp
UFS? AFAIK does not support snapshots. But even if you were on ZFS which does you would have to have had something making snapshots for that to be a help.
-
rwp
When on ZFS a best practice is to install zfstools which includes zfs-auto-snapshot. Install a crontab as directed by the package to create snapshots periodically.
-
concrete_houses
agggkgkgkk
-
concrete_houses
why does home map to usr home
-
concrete_houses
whats up with that
-
rwp
Hmm... Doing some searching I found mksnap_ffs(8) which talks about snapshots on UFS. I know nothing more about it though.
-
rwp
At one time I knew the answer to /usr/home but at the moment I only vaguely recall that it had to do with either dataset inheritance or with boot environments. I remember thinking it made sense to be that way.
-
rwp
-
VimDiesel
Title: ExampleUfsSnapshots - FreeBSD Wiki
-
rwp
-
VimDiesel
Title: snapshot
-
kevans
concrete_houses: funny enough, it was recently decided that it needs to move back to /home
-
Onepamopa
uh guys.. any idea why fbsd 13.2 doesn't see my 2nd monitor? nvidia driver is installed, 1st monitor is connected via hdmi, 2nd to dvi-d - but doesn't get detected. Tried running nvidia-xconfig to generate new xorg.conf - nothing. the nvidia panel "detect displays" also doesn't see it.
-
martinrame
Hi, I had a zfs pool composed of only one 10tb drive. Then yesterday added a 2nd, 12tb drive. Now I have a raidz with two drives (10Tb total size).
-
martinrame
As the objective was replacing the old 10Tb drive, now I want to extract it, leaving only the 12tb. How can I do that?
-
martinrame
that was easy, first offline disk (ada1 in this case), then detach it.
-
RhodiumToad
rwp: ufs does indeed support snapshots
-
gzar
really?
-
gzar
i thought only zfs did that
-
RhodiumToad
for a long time you could have _either_ snapshots _or_ journalling, though
-
RhodiumToad
but that was recently fixed
-
RhodiumToad
kevans: a victory for sanity! (/usr/home was always silly)
-
RhodiumToad
morpho: did you get it working?
-
morpho
RhodiumToad I'm up to the last bit
-
morpho
I have a Linux VM with wireless working
-
morpho
Thanks for asking. I don't know how to pass that connection to my bsd host
-
RhodiumToad
you'll have to use the linux host to do NAT for the freebsd one, I think, because of how wireless usually works
-
RhodiumToad
so configure the linux host as a NAT router (I don't know how to do that, but it should be an extremely common setup)
-
morpho
I THINK I even got that working
-
RhodiumToad
and then just make sure that the freebsd system's default router points to the linux IP on the bridge
-
morpho
How do I do that? What I tried caused "service NetIf restart" to hang
-
RhodiumToad
I think the way I'd do it is to not attach the host physical nic to the bridge, and put a private network IP on the bridge interface
-
RhodiumToad
have you configured the linux host to have a static private IP on its vtnet interface?
-
RhodiumToad
on the freebsd side it'd look something like this in rc.conf:
-
RhodiumToad
ifconfig_bridge0="inet 192.168.1.2/24 addm tap0"
-
RhodiumToad
ifconfig_tap0="up"
-
RhodiumToad
defaultrouter="192.168.1.1"
-
morpho
Yes I have something like that in my rc.conf
-
RhodiumToad
this is assuming that the linux host is statically assigned 192.168.1.1 on its vtnet interface
-
morpho
I have a static resolv.conf on my bsd host. I THINK this is also causing issues
-
RhodiumToad
that shouldn't be a significant problem
-
morpho
I'm on my mobile right now as my laptop has no internet outside of the vm
-
morpho
Thanks for heping. I will try again and get back to you
-
morpho
Is there commnd to let me see my bhyve guest network information from host?
-
RhodiumToad
the host knows almost nothing about the guest network config
-
sidh
Greetings
-
RhodiumToad
you can look at the arp tables to find what IP the host thinks it is using on the bridge, in most cases
-
RhodiumToad
*the host thinks that the guest is using on the bridge
-
morpho
RhodiumToad all i get is ping unknown host
-
RhodiumToad
doing what?
-
RhodiumToad
first thing to test is whether the host and guest can ping each other by IP address
-
RhodiumToad
thehn try and ping the guest's wifi interface IP from the host
-
f451
anyone else seeing scrambled (looks like binary) in /var/log/messages ? restarting syslogd seems to have 'fixed' it but why would it happen in the first place?
-
f451
recent 13-stable
-
RhodiumToad
scrambled how exactly?
-
f451
i'll paste 1 line of output
-
RhodiumToad
ideally, pass a chunk through the `hd` command and paste to termbin.com or dpaste.org
-
f451
it looks like how you'd see a binary file opened in a test editor. it's not the entire file either, just messages from this afternoon UTC
-
RhodiumToad
is it just the messages, with the timestamps still readable, or is it all binary?
-
RhodiumToad
also what filesystem setup do you have
-
f451
timestamps and host are readable
-
f451
zfs
-
f451
ive checked zpool health
-
f451
it's happened before, too. on april 17th
-
RhodiumToad
please show a chunk of the affected data hexdumped as I requested above
-
f451
trying to fijnd the most recent
-
f451
-
VimDiesel
Title: dpaste/2FDGP (Python)
-
RhodiumToad
wait, the actual messages file has <F1>~u^H etc. in it? literally like that?
-
f451
yes
-
f451
this is 13-stable, arm64 (it's a rpi4/8GB) hd is usb3
-
RhodiumToad
is syslogd listening on any sockets?
-
f451
it's launched with -ss
-
f451
also this machine is firewalled really tight
-
f451
only sshd is available
-
f451
www3 is available but only locally
-
f451
sorry, www
-
RhodiumToad
weird
-
f451
relaunching syslogd fixes it for weeks
-
RhodiumToad
might be a bug in syslogd then, but hard to say
-
f451
lol these are the most frustrating type of problems
-
f451
ok - worth making a PR?
-
RhodiumToad
if your syslogd isn't very active it might be interesting to ktrace it
-
f451
yup. lots of space for the logging too
-
RhodiumToad
and leave it traced, then if/when it happens again you have something to look at, which will help determine whether syslogd was sent bad data, or received good data and logged it as bad
-
f451
ok
-
f451
how would i launch it and with what permissions? ktrace i mean. i think it might want root
-
RhodiumToad
you can use ktrace to enable tracing on an existing process
-
f451
so just ktrace syslogd as root ?
-
RhodiumToad
ktrace -p somepid will suffice, that'll put the trace file as ktrace.out in the current dir, use -f /path/to/file to put it elsewhere
-
RhodiumToad
the ktrace program does not remain running, all the tracing is done from the target process
-
f451
ok thanks. as root or will user do?
-
RhodiumToad
as root
-
f451
ok
-
RhodiumToad
users can trace their own programs, but usual debugging visibility rules apply
-
f451
ok hopefully next time ill have something to go on! thanks
-
RhodiumToad
the trace file is binary, but you can read it using the kdump command
-
f451
yep just tried that with -f it's working normally
-
RhodiumToad
just remember not to use ktrace -C because that turns off tracing for all processes if done as root
-
hernan
[/usr/home/freebsd] $ uptime
-
hernan
2:47PM up 1400 days, 2:57, 33 users, load averages: 0.79, 1.09, 1.18
-
f451
:D
-
RhodiumToad
if your uptime is that high, you're not updating often enough :-)
-
hernan
correct
-
kevans
RhodiumToad: is the patch from D24324 still applicable to today's tree, or does it need any adjustment?
-
RhodiumToad
I can regenerate it if need be but it's not like it's complicated
-
RhodiumToad
also there's been a bug open for depends-list.sh that I don't think has been addressed
-
RhodiumToad
just waiting for git to tell me if there's a conflict
-
RhodiumToad
looks like the patch should still apply cleanly enough
-
RhodiumToad
yup, it does
-
kevans
cool, thanks
-
RhodiumToad
bugs.freebsd.org/bugzilla/show_bug.cgi?id=269982 <-- that's the depends-list one, but the patch there doesn't address my last comment
-
VimDiesel
Title: 269982 – Mk/Scripts/depends-list.sh: Default flavour for dependencies are overriden
-
RhodiumToad
(it breaks things like make fetch-recursive and other recursive targets)
-
RhodiumToad
I can put up my local fixes for those if it would help
-
roy2098
I'm having issues with getting NFSv4 acls going on some fbsd virtual machines - here's one example - fbsd 13.1 vm running under bhyve also under fbsd 13.1. i have the rw,acls option set in fstab.Yet when trying to setfacl on anything, i get: branding mismatch, existing acl is posix 1.e... OR acl_set_file failed; operation not permitted - anyone
-
roy2098
care to entertain what's going on? Documentation is confusing, to say the least, and to complicate matters, the virtual machines under bhyve are in their own zfs filesystem so i get snapshots of the vms as desired ...
-
roy2098
I'm going to simplify: hypervisor = FBSD 13.1with zfs dataset in which below vm runs, i.e. zfs list yields /vms/fbsd/virt_machine_1
-
roy2098
guest under this hypervisor = FBSD 13.1 with rw,acls in /etc/fstab
-
roy2098
only POSIX 1.e acls are useable in this vm ... how to get it to use NFSv4 acls?
-
roy2098
...do I need to enable acls in the hypervisor fstab?
-
roy2098
actually, strike the last statement because use of zfs on root - no entry in fstab ...
-
rwp
RhodiumToad, As I found out and posted those links to the documentation for it. :-)
-
roy2098
RhodiumToad: can you elaborate on your last message?
-
morpho
RhodiumToad im still trying to set up the NAC
-
morpho
when i service netif restart it hangs
-
Demosthenex
hrm, any ideas?
dpaste.org/eOp0c/raw same command gives different return codes when run from subshell
-
RhodiumToad
Demosthenex: that first line doesn't do what you think it does
-
RhodiumToad
sh -c expects ONE argument after the -c which is the whole command string, and any additional args after that go into the positional parameters starting from $0
-
morpho
RhodiumToad i am still stuck with using my linux guest as a NAC
-
RhodiumToad
stuck how?
-
morpho
well I cant restart netif without it hanging
-
RhodiumToad
don't focus on that
-
morpho
i think everything is working in Linux
-
morpho
i just cant ping from my host
-
Demosthenex
RhodiumToad: yeah, puppet's calling it this way, gotta tweak it
-
RhodiumToad
can you ping the guest from the host?
-
morpho
how do i do that?
-
RhodiumToad
what IP did you give the guest's vtnet interface?
-
morpho
Im not sure. I have defined eth0 (my guests ethernet interface) using wpa_supplicant
-
morpho
with the address 192.168.6.2
-
RhodiumToad
is that the passthrough wireless nic though?
-
morpho
I am using iptables to pass the wireless to the ethernet i think
-
RhodiumToad
no
-
RhodiumToad
that is impossible
-
morpho
-
VimDiesel
Title: FreeBSD WiFi PCI Passthrough: Intel Wireless 8265, bhyve, 13.0-CURRENT
-
morpho
followed this guide and am at the end of it now
-
Demosthenex
RhodiumToad: indeed, puppet was missing a line of quotes!
-
RhodiumToad
morpho: ok, so the linux host is configured to do NAT, which is what we want
-
RhodiumToad
morpho: can you ping 192.168.6.2 from the host?
-
morpho
ping: sendto: Host is down
-
RhodiumToad
ifconfig bridge0 says what? paste the output to dpaste.org or termbin.com
-
RhodiumToad
note you can paste to termbin using | nc termbin.com 9999
-
» RhodiumToad waits
-
morpho
sorry
-
morpho
-
morpho
i had to do that from my linux host, no internet in freebsd so far
-
RhodiumToad
and ifconfig tap0
-
RhodiumToad
also the output of arp -a
-
RhodiumToad
you might need arp -an
-
morpho
-
RhodiumToad
what does linux say about the state of the eth0 interface?
-
morpho
-
RhodiumToad
inet 169.254.120.217/16 <-- that's not 192.168.6.2
-
RhodiumToad
so whatever you configured so far on the linux side, you haven't successfully configured the interface
-
morpho
RhodiumToad iv got linux tech support on the line :s
-
morpho
thanks for your help
-
morpho
RhodiumToad i can pink the guest
-
morpho
ping* i cannot ping the world
-
RhodiumToad
ok. is forwarding enabled on the guest?
-
rdg
is there a monospaced block in mdoc for an example snippet? I'm showing a long output piped to column(1) but the man page in pdf it not aligned
-
morpho
i ran this script...
termbin.com forwarding in enabled on the linux kernel
-
VimDiesel
Title: termbin.com - terminal pastebin
-
RhodiumToad
incomplete url
-
morpho
-
RhodiumToad
rdg: maybe look at the source for the man page for tbl.7 ?
-
RhodiumToad
(seems to be using .Bd )
-
rdg
RhodiumToad: I'm also using Bd, but in pdf the result is not monospaced
-
rdg
MANPAGER=mupdf man -T pdf tbl
-
RhodiumToad
morpho: this is getting more into linux than freebsd
-
morpho
what do i need to google
-
RhodiumToad
dunno.
-
morpho
-
morpho
can we assume this works?
-
RhodiumToad
are you SURE you enabled forwarding?
-
morpho
the voidlinux irc say so
-
RhodiumToad
net.ipv4.ip_forward is set to what, on linux?
-
morpho
1
-
RhodiumToad
the fact that your FORWARD chain says 0 packets is suspicious here
-
morpho
not really
-
RhodiumToad
why not?
-
morpho
its just a vm doing nothing
-
RhodiumToad
yeah, but you tried to ping the outside from the freebsd host
-
RhodiumToad
what is the default route set to on freebsd
-
RhodiumToad
use netstat -rn to see that
-
morpho
i think i have multiple
-
morpho
-
RhodiumToad
no, you don't have one at all
-
RhodiumToad
is defaultrouter set in your rc.conf ?
-
RhodiumToad
don't try and restart any services, just tell me if it is set
-
morpho
yes
-
RhodiumToad
to 192.168.6.2 ?
-
morpho
yes
-
RhodiumToad
do this on freebsd: route add default 192.168.6.2
-
RhodiumToad
then try pinging the outside
-
morpho
i can ping the outside
-
morpho
on freebsd
-
RhodiumToad
progress!
-
morpho
does that means it works?
-
RhodiumToad
basically yes
-
morpho
i am getting 41Mbps in freebsd firefox
-
RhodiumToad
well that sounds pretty good
-
morpho
thanks so much man
-
RhodiumToad
you'll want to reboot everything at some point to make sure you got the config files right.
-
morpho
yes!
-
morpho
the linux driver bin
-
morpho
its reproducible, i created a few scripts to automate it all
-
RhodiumToad
the only script you should need on the freebsd side is starting the VM
-
morpho
i am disabling wlan0 before i start the vm
-
RhodiumToad
I don't think that can work without a reboot
-
RhodiumToad
if the wifi hardware is being used for pci passthrough, it can't be used on the freebsd side at all
-
RhodiumToad
i.e. if you didn't boot with pptdevs=whatever in loader.conf, you can't do passthru, and if you did boot with that, freebsd won't see the wifi
-
morpho
i am doing that in a script that loads the bootloader
-
morpho
loads the linuxvm
-
RhodiumToad
how?
-
morpho
-
RhodiumToad
hmm
-
morpho
what?
-
RhodiumToad
that looks reasonable
-
morpho
RhodiumToad: now I have backlight keys, power saving, 802.11ac wireless
-
morpho
Its a shame I didn't document this journey more as some of the guides for setting up laptops are a few years old now
-
morpho
thanks for the help
-
RhodiumToad
yw
-
RhodiumToad
bit of a shame that getting the wireless required using a linux VM, but...
-
RhodiumToad
(I have a printer that has no freebsd driver, but that doesn't require using a VM since i can run the linux printer driver under the linux ABI)
-
morpho
I wanted to learn bhyve anyway
-
morpho
so it gave me an excuse to learn some new things
-
morpho
i just use my partners Mac for printings haha
-
morpho
I think OpenBSD supports 802.11ac on this wifi card