-
tuaris
One of the most useful things that vcenter can do is the live virtual machine migrations between ESXi hosts and storage. You can move a vm while it's running from one host to another, even if the storage is not shared. There might be a tiny blip during the cut off, but the vm is still up and serving traffic throughout the entire process which could at times take hours. Hopefully Bhyve could have some of that same functionality, maybe even jails too?
-
farhan
Does bhyve allow USB pass-through?
-
ek
tuaris: I'm sure it's in the plans, but it could take a while. But, it would certainly be a nice feature!
-
ek
farhan: Yes, it does.
-
ek
farhan: Well, I haven't tried it, but it does allow PCI pass-through. So, I don't see why it wouldn't.
-
polarian
redis.io/blog/agplv3 those linux folks indoctrinating people into thinking that code which isnt GPL can be "stolen"
-
ek
Yeah. That's been a problem for a very long time. Although, to be fair, if you don't want your code used anywhere that isn't OSS, maybe don't distribute as such?
-
ek
Licensing gets tricky, but I've always just allowed anyone to use anything I've written at their own free will. If I didn't want to allow that, I wouldn't make it open source.
-
badkat
farhan: no it does not. You can PCI-Passthrough only
-
ek
badkat: You can't pass-through the device the USB is connected to?
-
badkat
ek: Yes the usb bus is enumerated as a PCI device, but is not the same concept
-
badkat
you give the vm the full PCI bus, not only the usb sub device, as you can do on virtualbox/vmware (linux/windows)
-
badkat
in freebsd for some silly reason we cant handle usb devices inside virtual machines, not even on QEMU
-
ek
Well, dang. That seems... strange. Like, even giving the full PCI bus to the VM, it doesn't see it as it's own and the devices attached?
-
badkat
at the funny part is that ESXi hypervisors have based their USB passtrough kernel module on the freebsd BSD usb stack lol
-
ek
I'm struggling to understand how that even makes sense. Like, I'd mentioned, I've never tried it, but that sure is a shame.
-
badkat
ek: yes, giving the full pci bus works, but is not a usb-passthrough by term
-
ek
-
ek
Is this a regression?
-
badkat
people tell usb-passtrough but its not. its pci
-
badkat
usb-passtrough is more flexible, they just make it to put the usb pci bus in the VM, not the same
-
badkat
also you have to reboot the HOST if you want to get back the pci bus from bhyve, that is crap in a lot of scenarios. In usb-passtrough you can attach/dettach on the VM but it can return to the host when not in use from the VM
-
ek
I suppose that's fair. But, you *ARE* able to access USB devices from a VM on a Bhyve host.
-
badkat
but its not called USB-Passthrough, that was my point.
-
ek
Yeah. The reboot and dedication of the device/port is kind of a bummer.
-
ek
Yep, yep. I gotcha'.
-
badkat
i would love to invest time on that
-
ek
If I were only that useful!
-
badkat
i saw some folk in illumos kernel that also uses bhyve trying to get something alike
-
ek
I can see that.
-
ek
Bhyve is a bit behind on some functionality, but boy-oh-boy does it perform better for me than ESXi, VirtualBox or Proxmox.
-
ek
I've been extremely happy with it for what I need it for.
-
badkat
yes its really great, and plus ZFS even more :)
-
ek
Exactly. I still snapshot my Bhyve dataset, but there's really isn't a reason to. Especially with the vm-bhyve auto-snapshot script which you can include for each startup (or shutdown? I can't remember.)
-
ek
But, utilizing ZFS certainly gives me extra piece of mind. I've had some problems before with VMware storage. I was always able to recover (for the most part) but it wasn't easy.
-
ek
I do with non-EFI grub stuff was easier with Bhyve, though. I sometimes have to test a lot of Linux-based images and it takes a while to figure it out (if I even can.) Grub is kinda rough sometimes.
-
ek
s/with/wish/
-
badkat
i really like esxi for some use cases
-
badkat
also i had problems making sysadmins adopt bhyve , they are so biased with GUI based administration...
-
badkat
smart-os built a GUI for it IIRC
-
badkat
works with illumos/bhyve/zfs underneath
-
ek
Yeah. They are. It's understandable considering everything has been for so long. There was a Bhyve webUI in development for a while (can't remember the name) and it seemed like it was going to be reasonable. I still haven't checked it out.
-
ek
Nice. I hadn't heard of that. Whatever I'm thinking of was different.
-
badkat
FreeNAS had one too
-
badkat
production-ready
-
badkat
supports jails too
-
ek
Hrm. Never heard that either. I'm wondering how far TrueNAS will take FBSD moving forward.
-
badkat
past year i worked on making esxi boots over bhyve, had problems after the kernel started
-
farhan
Esxi is bsd based?
-
ek
The one I was thinking of was something designed by the cbsd team (I think?)
-
farhan
I thought it was Linux?
-
badkat
farhan: no, it WAS linux
-
ek
farhan: No. It isn't FBSD based.
-
badkat
today last release is a own custom made kernel
-
badkat
that have linux compatible kernel modules for network cards
-
badkat
and the USB passthrough is based on freebsd usb stack
-
farhan
RIP Hans...
-
badkat
Hans? :O
-
ek
Which Hans? Hans Reiser? lol
-
badkat
Reiser lma0
-
badkat
that guy was crazy as fuck
-
farhan
He wrote the USB stack on FreeBSD. Really great guy, spoke to him once.
-
ek
It wasn't "MurderFS" for no reason!
-
badkat
Hans Reiser wrote usb stack? roflma0
-
badkat
ek: hahah
-
ek
There's no way we're talking about the same Hans. lol
-
badkat
farhan: which Hans you mean lol
-
ek
-
ek
Not even gonna try to type that name. Copy/paste was much easier.
-
farhan
Yes, him. Hans Selasky. Really great guy...
-
ek
Sure sounds like it. That's a shame.
-
ek
Oh, wait a minute! I remember that dude! I worked with him on some of the Infiniband drivers many, MANY years ago.
-
ek
Trying to get BSD storage as an alternative in mainstream HPC setups. ConnectX was a BASTARD!
-
ek
Man, that really is a bummer. He was an incredibly nice guy. Great to work with as he was crazy patient and understanding.
-
ek
Kind of the opposite of Torvalds.
-
farhan
anyways, bhyve doesn't do USB passthrough just yet. That's really unfortunate.
-
farhan
maybe someday I can help sovle that.
-
badkat
i would love too, just need to find the right hardware to make comfy tests
-
farhan
Currently working on a USB driver. The lack of pass-through is a bummer.
-
ek
That it is.
-
badkat
farhan: i use esxi for that :P
-
badkat
so i can boot multiple OSes and rotate the passthrough with an script
-
badkat
this new non-linux esxi is pretty tight and works solid enough.
-
farhan
It's own proprietary kernel?
-
farhan
Uhubctl locks up. It turns off power to a USB port.
-
badkat
farhan: yes
-
mns
If I want to install a package with different options then the defaults, I have to use ports for that, yes?
-
mason
mns: Or drive it with something like Poudriere, but yes.
-
mns
thanks mason
-
MelMalik
maybe i forgot: is there any reason PIDs are capped at 99'999?
-
MelMalik
... oh, because pid 100'000 represents "no process group", sayeth the headers
-
ivy
MelMalik: i don't think that's the reason since NO_PID is just PID_MAX+1. i believe the answer is a lot of old code assumes 16-bit pid_t and tries to sprintf pids into a 6-byte buffer
-
MelMalik
ah
-
crb
is there a way to list the bhyve instances running?
-
regis
crb: sysutils/vm-bhyve is a great wrapper around bhyve with this and a lot more functionality. Sadly, bhyve itself doesn't expose any API/ABI
-
regis
crb: That said, you can inspect bhyve processes using ps(1)
-
[tj]
ls /dev/vmm
-
[tj]
it tells you the created instances, it cannot know if something is running
-
[tj]
the bhyve process will exit with a code corresponding to the vm exit state, but if the vm doesn't exit it might still be there
-
Posterdati
hi
-
Posterdati
please help, I have a problem with a k55d asus laptop, I loaded acpi_wmi and acpi_asus_wmi, but cpu fan never starts. Thanks!
-
Posterdati
?
-
Posterdati
any hints?
-
[tj]
Posterdati: is the computer hot?
-
[tj]
"fan in my laptop isn't running" isn't usually a problem, but what people want
-
[tj]
I wish the fan would stop in my framework
-
Posterdati
very
-
Posterdati
cpu temp around 90C
-
[tj]
what is telling you the temperature?
-
Posterdati
sysctl -a | grep temperature
-
[tj]
-
Posterdati
[tj]: reading...
-
Posterdati
no asusctl on freebsd
-
[tj]
sounds like linux does something it doesn't have to, but maybe we need to do something to get the fans into bios control
-
[tj]
Posterdati: can you upload a dmesg to demsgd.nycbug.org
-
Posterdati
[tj]: submitted
-
[tj]
that is quite an old computer, does the fan work?
-
Posterdati
yes
-
mtll
only thing that stuck out to me in that dmesg is this line ACPI: \134_SB.PCI0.WMI1.WQXM: 1 arguments were passed to a non-method ACPI object (Buffer) (20221020/nsarguments-361)
-
mtll
but I have no idea what it means
-
[tj]
Posterdati: did it work in freebsd before?
-
Posterdati
I had debian 12 on it
-
mtll
Posterdati: are there fan settings in the bios?(would be unusual for a laptop IME) Could be some way to set it at a constant speed or something, it would be loud but at least it wouldn't self destruct while troubleshooting
-
Posterdati
no settings
-
Posterdati
in bios
-
[tj]
the age probably means that asusctl isn't aimed at it
-
[tj]
unless it has an anime led screen on the lid
-
Posterdati
:(
-
[tj]
Posterdati: this may take some hacking, I'm not sure if that is what you want as an answer
-
[tj]
I would figure out how linux is controlling the fan, which kernel module or whatever is responsible
-
badkat
crb: yes, check with ls -l /dev/vmm/*
-
MelMalik
is there a version of the 2025 FBF survey in PDF?
-
Posterdati
[tj]: fixed
-
Posterdati
[tj]: I had to remove the CMOS battery
-
mtll
and put it back, I assume? or replace it?
-
drobban
I just installed freebsd on a machine that has a mediatek wifi device. Noticed there is a mediatek mt76 module in src / contrib. But it doesnt seem to have a module compiled. Looking for guidance for where to find documentation for how to compile contrib drivers.
-
badkat
drobban: which mediatek card do you have? exact model
-
drobban
badkat: no details, it just tells me MediaTek when running usbconfig
-
drobban
attached to ugen.
-
badkat
first thing to do when dealing with network card drivers its to get an certain idea of the hardware identificators ok?
-
badkat
check dmesg and usbconfig/pciconf on verbose mode
-
badkat
grab vendor ID,product ID, all the details you can
-
drobban
mostly stunned that im not able to compile the modules found in contrib. but, yea.
-
badkat
you dont even know the model and want to compile stuff
-
badkat
good luck :)
-
drobban
badkat: you are right, I would assume the kernel know enough to attach it to ugen0 and call it MediaTek instead of showing ids as with unknown devices.
-
drobban
but I might remember incorrectly. and if its able to attach the driver is another story, I guessed that if could compile the modules it would be interesting to see if they would attach or not. But they seem unable to compile to begin with, further investigation into what id's i have is also waste of time.
-
drobban
as I have no code that could drive it.
-
[tj]
Posterdati: wild, well done
-
nimaje
drobban: are you sure the module isn't in your system, some kernel modules get compiled directly into the kernel and aren't there as loadable modules (no idea about that specific one)
-
rtprio
any usb module should be loaded automatically
-
rtprio
drobban: what's the directory in src/contrib where you spotted meditek?
-
nimaje
I guess sys not src, so sys/contrib/dev/mediatek/mt76/
-
rtprio
what does ugen say? anything about the model of device?
-
crb
badkat: that's exactly what I was looking for, thank you!
-
drobban
rtprio: yea thats the one.
-
drobban
or yea, nimaje thats the one.