https://rancher.com/ logo
Title
m

most-holiday-73526

06/12/2022, 1:19 PM
Hello folks! Yesterday I've tried to package and try lima
v0.11.0
on NetBSD and it (mostly) just works out of the box! Thanks a lot for that! (it needed a patch to fix unused
err
that I've then seen it was landed yesterday on HEAD too and
-cpu host
was not supported so I've locally patched that to
-cpu max
via https://github.com/NetBSD/pkgsrc-wip/blob/master/lima/patches/patch-pkg_limayaml_defaults.go I have investigate a bit further on that (and seen that https://github.com/lima-vm/lima/commit/f32d795ad775b33680d6f7283e58c5d17e98d382 landed) and I think it's easy to add
-cpu host
support for NVMM accelerator too, so no
lima
changes should be needed (I've them locally and I will likely commit them tomorrow in pkgsrc (The NetBSD package system)
💚 1
I have added a comment regarding
-cpu host
on https://github.com/lima-vm/lima/pull/894#issuecomment-1153168570 (but that's probably only theoretical and/or only for more esotic setups and likely not hit by Lima!)
b

best-accountant-68201

06/12/2022, 2:09 PM
Thank you for testing!
• Does NVMM supports ARM64 too? • Does QEMU’s virtio-9p-pci work on NetBSD too? (Even if not, it should be easy to support NetBSD?)
m

most-holiday-73526

06/12/2022, 3:25 PM
Hello Akihiro! Nope, NVMM supports only amd64 right now. Regarding virtio-9p-pci... I don't think that's supported neither (I have no idea how hard is to port it!)
b

best-city-49378

06/12/2022, 3:32 PM
There was no VMM for FreeBSD arm64 either, apparently it got stuck in review https://reviews.freebsd.org/D26976
Wonder if Windows works
Does NetBSD have any Linux jails (or LX zones) ? Or are you stuck with VM
Random guy on internet says it has chroot, but no OS-level virtualization in kernel
m

most-holiday-73526

06/12/2022, 3:49 PM
There is COMPAT_LINUX to run unmodified Linux binaries
But no, there isn't anything like FreeBSD jails or similar
b

best-city-49378

06/12/2022, 3:50 PM
Ah, like the linuxulator (syscalls) ? Or more like qemu/rosetta
m

most-holiday-73526

06/12/2022, 3:50 PM
It's on the syscall level, probably similar to linuxulator I guess 🙂
👍 1
b

best-city-49378

06/12/2022, 3:50 PM
The linuxulator is https://wiki.freebsd.org/Linuxulator, it never made it to Darwin sadly
We currently claim compatibility with Linux 3.2.0 in 12-STABLE and 4.4.0 in 14-CURRENT.
My limited exposure to NetBSD is through pkgsrc and various shared portabiliy concerns.
Added a PR to use
-cpu max
instead, where
-cpu host
is not available
m

most-holiday-73526

06/12/2022, 5:38 PM
Whoops, I was AFK sorry, thanks!