00:43:08 RhodiumToad: out of interest. On void linux I had to enable the agetty-ttys0 service 01:53:06 so I am trying to do the pci passthrough for my wifi card 01:54:00 i dont really understand what I am doing. Got wireless working in the bhyve vm 01:56:23 what do I need to know BSD side? 02:18:37 would this work? https://bsd.ac/nqdaavi 03:17:21 heh, cute: "error: Fssh_kex_exchange_identification: client sent invalid protocol identifier "GET / HTTP/1.1"" 03:20:40 Probes. Endless probes. Sigh. It's the dumpster fire that is the Internet. (shrug) 03:22:17 can ZFS do snapshotting? 03:22:22 does ufs do snapshotting? 03:22:33 I just deleted some crap due to symlink 03:22:45 usr and home 03:22:50 ufs 03:22:56 any way to go back 4 hours? 03:30:51 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. 03:32:56 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. 03:35:47 agggkgkgkk 03:36:09 why does home map to usr home 03:36:14 whats up with that 03:36:39 Hmm... Doing some searching I found mksnap_ffs(8) which talks about snapshots on UFS. I know nothing more about it though. 03:39:09 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. 03:47:00 concrete_houses, https://wiki.freebsd.org/ExampleUfsSnapshots 03:47:01 Title: ExampleUfsSnapshots - FreeBSD Wiki 03:51:59 Also https://man.freebsd.org/cgi/man.cgi?query=snapshot 03:52:00 Title: snapshot 05:59:02 concrete_houses: funny enough, it was recently decided that it needs to move back to /home 07:45:54 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. 10:35:48 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). 10:36:33 As the objective was replacing the old 10Tb drive, now I want to extract it, leaving only the 12tb. How can I do that? 10:41:39 that was easy, first offline disk (ada1 in this case), then detach it. 13:06:46 rwp: ufs does indeed support snapshots 13:06:55 really? 13:07:08 i thought only zfs did that 13:07:34 for a long time you could have _either_ snapshots _or_ journalling, though 13:09:59 but that was recently fixed 13:17:26 kevans: a victory for sanity! (/usr/home was always silly) 13:28:53 morpho: did you get it working? 13:35:34 RhodiumToad I'm up to the last bit 13:35:48 I have a Linux VM with wireless working 13:36:21 Thanks for asking. I don't know how to pass that connection to my bsd host 13:37:00 you'll have to use the linux host to do NAT for the freebsd one, I think, because of how wireless usually works 13:37:31 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) 13:37:43 I THINK I even got that working 13:37:54 and then just make sure that the freebsd system's default router points to the linux IP on the bridge 13:38:25 How do I do that? What I tried caused "service NetIf restart" to hang 13:39:27 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 13:39:52 have you configured the linux host to have a static private IP on its vtnet interface? 13:40:11 on the freebsd side it'd look something like this in rc.conf: 13:40:51 ifconfig_bridge0="inet 192.168.1.2/24 addm tap0" 13:40:58 ifconfig_tap0="up" 13:41:08 defaultrouter="192.168.1.1" 13:41:28 Yes I have something like that in my rc.conf 13:41:47 this is assuming that the linux host is statically assigned 192.168.1.1 on its vtnet interface 13:42:52 I have a static resolv.conf on my bsd host. I THINK this is also causing issues 13:47:33 that shouldn't be a significant problem 13:48:50 I'm on my mobile right now as my laptop has no internet outside of the vm 13:49:34 Thanks for heping. I will try again and get back to you 13:53:29 Is there commnd to let me see my bhyve guest network information from host? 13:55:17 the host knows almost nothing about the guest network config 13:55:38 Greetings 13:55:45 you can look at the arp tables to find what IP the host thinks it is using on the bridge, in most cases 13:57:09 *the host thinks that the guest is using on the bridge 14:13:15 RhodiumToad all i get is ping unknown host 14:14:59 doing what? 14:15:41 first thing to test is whether the host and guest can ping each other by IP address 14:16:12 thehn try and ping the guest's wifi interface IP from the host 14:16:55 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? 14:17:10 recent 13-stable 14:17:30 scrambled how exactly? 14:17:50 i'll paste 1 line of output 14:18:54 ideally, pass a chunk through the `hd` command and paste to termbin.com or dpaste.org 14:20:19 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 14:21:10 is it just the messages, with the timestamps still readable, or is it all binary? 14:21:21 also what filesystem setup do you have 14:21:31 timestamps and host are readable 14:21:34 zfs 14:21:44 ive checked zpool health 14:22:02 it's happened before, too. on april 17th 14:22:22 please show a chunk of the affected data hexdumped as I requested above 14:22:35 trying to fijnd the most recent 14:29:42 RhodiumToad: https://dpaste.org/2FDGP 14:29:44 Title: dpaste/2FDGP (Python) 14:31:52 wait, the actual messages file has ~u^H etc. in it? literally like that? 14:32:05 yes 14:32:58 this is 13-stable, arm64 (it's a rpi4/8GB) hd is usb3 14:33:24 is syslogd listening on any sockets? 14:33:42 it's launched with -ss 14:34:12 also this machine is firewalled really tight 14:34:31 only sshd is available 14:34:54 www3 is available but only locally 14:35:02 sorry, www 14:35:16 weird 14:35:39 relaunching syslogd fixes it for weeks 14:35:59 might be a bug in syslogd then, but hard to say 14:36:13 lol these are the most frustrating type of problems 14:36:28 ok - worth making a PR? 14:36:52 if your syslogd isn't very active it might be interesting to ktrace it 14:37:27 yup. lots of space for the logging too 14:37:45 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 14:38:28 ok 14:39:03 how would i launch it and with what permissions? ktrace i mean. i think it might want root 14:39:45 you can use ktrace to enable tracing on an existing process 14:40:09 so just ktrace syslogd as root ? 14:40:21 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 14:40:43 the ktrace program does not remain running, all the tracing is done from the target process 14:41:04 ok thanks. as root or will user do? 14:41:11 as root 14:41:15 ok 14:41:28 users can trace their own programs, but usual debugging visibility rules apply 14:42:29 ok hopefully next time ill have something to go on! thanks 14:42:47 the trace file is binary, but you can read it using the kdump command 14:45:31 yep just tried that with -f it's working normally 14:47:03 just remember not to use ktrace -C because that turns off tracing for all processes if done as root 14:47:20 [/usr/home/freebsd] $ uptime 14:47:20 2:47PM up 1400 days, 2:57, 33 users, load averages: 0.79, 1.09, 1.18 14:47:40 :D 14:47:56 if your uptime is that high, you're not updating often enough :-) 14:48:22 correct 15:11:27 RhodiumToad: is the patch from D24324 still applicable to today's tree, or does it need any adjustment? 15:16:50 I can regenerate it if need be but it's not like it's complicated 15:17:34 also there's been a bug open for depends-list.sh that I don't think has been addressed 15:20:04 just waiting for git to tell me if there's a conflict 15:21:06 looks like the patch should still apply cleanly enough 15:22:54 yup, it does 15:29:35 cool, thanks 15:29:37 https://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 15:29:39 Title: 269982 – Mk/Scripts/depends-list.sh: Default flavour for dependencies are overriden 15:30:02 (it breaks things like make fetch-recursive and other recursive targets) 15:32:27 I can put up my local fixes for those if it would help 16:35:40 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 16:35:40 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 ... 17:06:50 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 17:06:51 guest under this hypervisor = FBSD 13.1 with rw,acls in /etc/fstab 17:06:51 only POSIX 1.e acls are useable in this vm ... how to get it to use NFSv4 acls? 17:07:46 ...do I need to enable acls in the hypervisor fstab? 17:09:24 actually, strike the last statement because use of zfs on root - no entry in fstab ... 17:29:18 RhodiumToad, As I found out and posted those links to the documentation for it. :-) 17:56:36 RhodiumToad: can you elaborate on your last message? 18:35:11 RhodiumToad im still trying to set up the NAC 18:35:23 when i service netif restart it hangs 18:59:49 hrm, any ideas? https://dpaste.org/eOp0c/raw same command gives different return codes when run from subshell 20:10:38 Demosthenex: that first line doesn't do what you think it does 20:11:33 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 20:14:42 RhodiumToad i am still stuck with using my linux guest as a NAC 20:15:23 stuck how? 20:15:48 well I cant restart netif without it hanging 20:16:13 don't focus on that 20:16:23 i think everything is working in Linux 20:16:34 i just cant ping from my host 20:16:36 RhodiumToad: yeah, puppet's calling it this way, gotta tweak it 20:16:39 can you ping the guest from the host? 20:16:51 how do i do that? 20:17:13 what IP did you give the guest's vtnet interface? 20:18:12 Im not sure. I have defined eth0 (my guests ethernet interface) using wpa_supplicant 20:18:34 with the address 192.168.6.2 20:18:40 is that the passthrough wireless nic though? 20:19:08 I am using iptables to pass the wireless to the ethernet i think 20:19:12 no 20:19:17 that is impossible 20:19:43 https://www.davidschlachter.com/misc/t480-bhyve-wifi-pci-passthrough#:~:text=David%20Schlachter-,FreeBSD%20WiFi%20PCI%20Passthrough%3A%20Intel%20Wireless%208265%2C%20bhyve%2C%2013.0,ac%20on%20Linux%20and%20Windows. 20:19:44 Title: FreeBSD WiFi PCI Passthrough: Intel Wireless 8265, bhyve, 13.0-CURRENT 20:21:16 followed this guide and am at the end of it now 20:22:09 RhodiumToad: indeed, puppet was missing a line of quotes! 20:23:43 morpho: ok, so the linux host is configured to do NAT, which is what we want 20:23:58 morpho: can you ping 192.168.6.2 from the host? 20:24:56 ping: sendto: Host is down 20:25:23 ifconfig bridge0 says what? paste the output to dpaste.org or termbin.com 20:25:35 note you can paste to termbin using | nc termbin.com 9999 20:31:58 * RhodiumToad waits 20:32:17 sorry 20:33:22 https://termbin.com/wx68 20:33:42 i had to do that from my linux host, no internet in freebsd so far 20:33:50 and ifconfig tap0 20:34:16 also the output of arp -a 20:34:33 you might need arp -an 20:35:38 https://termbin.com/jcjr 20:36:23 what does linux say about the state of the eth0 interface? 20:37:56 https://termbin.com/iwdqn 20:38:38 inet 169.254.120.217/16 <-- that's not 192.168.6.2 20:40:23 so whatever you configured so far on the linux side, you haven't successfully configured the interface 20:41:35 RhodiumToad iv got linux tech support on the line :s 20:41:42 thanks for your help 21:05:22 RhodiumToad i can pink the guest 21:05:47 ping* i cannot ping the world 21:06:44 ok. is forwarding enabled on the guest? 21:11:08 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 21:12:45 i ran this script... https://termbin.com/ forwarding in enabled on the linux kernel 21:12:46 Title: termbin.com - terminal pastebin 21:13:06 incomplete url 21:14:09 https://termbin.com/tf2i 21:14:49 rdg: maybe look at the source for the man page for tbl.7 ? 21:16:00 (seems to be using .Bd ) 21:16:38 RhodiumToad: I'm also using Bd, but in pdf the result is not monospaced 21:16:51 MANPAGER=mupdf man -T pdf tbl 21:17:06 morpho: this is getting more into linux than freebsd 21:17:27 what do i need to google 21:17:58 dunno. 21:21:40 https://termbin.com/bjc9 21:22:56 can we assume this works? 21:23:01 are you SURE you enabled forwarding? 21:32:53 the voidlinux irc say so 21:33:31 net.ipv4.ip_forward is set to what, on linux? 21:33:36 1 21:34:24 the fact that your FORWARD chain says 0 packets is suspicious here 21:35:10 not really 21:35:20 why not? 21:35:23 its just a vm doing nothing 21:35:38 yeah, but you tried to ping the outside from the freebsd host 21:35:46 what is the default route set to on freebsd 21:36:02 use netstat -rn to see that 21:38:21 i think i have multiple 21:38:44 https://termbin.com/snhc 21:39:33 no, you don't have one at all 21:39:46 is defaultrouter set in your rc.conf ? 21:40:16 don't try and restart any services, just tell me if it is set 21:40:33 yes 21:40:49 to 192.168.6.2 ? 21:40:54 yes 21:41:13 do this on freebsd: route add default 192.168.6.2 21:41:25 then try pinging the outside 21:42:26 i can ping the outside 21:42:32 on freebsd 21:43:45 progress! 21:43:56 does that means it works? 21:44:11 basically yes 21:44:13 i am getting 41Mbps in freebsd firefox 21:44:45 well that sounds pretty good 21:44:55 thanks so much man 21:45:19 you'll want to reboot everything at some point to make sure you got the config files right. 21:45:46 yes! 21:46:16 the linux driver bin 21:52:55 its reproducible, i created a few scripts to automate it all 21:53:36 the only script you should need on the freebsd side is starting the VM 21:55:12 i am disabling wlan0 before i start the vm 21:56:01 I don't think that can work without a reboot 21:56:27 if the wifi hardware is being used for pci passthrough, it can't be used on the freebsd side at all 21:57:33 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 22:00:37 i am doing that in a script that loads the bootloader 22:00:43 loads the linuxvm 22:02:21 how? 22:07:58 https://termbin.com/wwkq 22:10:43 hmm 22:24:39 what? 22:26:37 that looks reasonable 23:50:47 RhodiumToad: now I have backlight keys, power saving, 802.11ac wireless 23:52:13 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 23:53:14 thanks for the help 23:53:17 yw 23:53:37 bit of a shame that getting the wireless required using a linux VM, but... 23:54:52 (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) 23:56:19 I wanted to learn bhyve anyway 23:56:29 so it gave me an excuse to learn some new things 23:56:57 i just use my partners Mac for printings haha 23:59:54 I think OpenBSD supports 802.11ac on this wifi card