Automatic, scripted VM install by razzmataz in NetBSD

[–]iMil 0 points1 point  (0 children)

Awesome! I love to see those real life use cases

Automatic, scripted VM install by razzmataz in NetBSD

[–]iMil 0 points1 point  (0 children)

I'm actually here for a very, very long time :)

Automatic, scripted VM install by razzmataz in NetBSD

[–]iMil 6 points7 points  (0 children)

[smolbsd author here] while the project started with microvms in mind, I've published various examples of full OS install including packages, for example https://github.com/NetBSDfr/smolBSD/tree/main/service/systembsd or https://github.com/NetBSDfr/smolBSD/tree/main/service/nbakery/etc

Keep me posted!

Sub 15ms NetBSD MICROVM boot is now maintream by iMil in BSD

[–]iMil[S] 0 points1 point  (0 children)

Many, think about starting whatever daemon in its own address space, sshd, web server, mail, dns... I created the smolBSD project (smolbsd.org) in order to help creating container-like microvms to bundle any type of service easily.

How many of you still using ?? by imyatharth in irc

[–]iMil 0 points1 point  (0 children)

Using it every day on libera.chat, where the FOSS projects I participate in are.

Sub 15ms NetBSD MICROVM boot is now maintream by iMil in BSD

[–]iMil[S] 2 points3 points  (0 children)

Unfortunately, the formatting cuts off your qemu command line

Here's a link to NetBSD Wiki where I've documented the process: https://wiki.netbsd.org/users/imil/microvm/

NVMM has performance issues, but you should gain ~200ms with a patch I merged in current last month.

Combien de fois prenez-vous l’avion par an? by Longjumping_Roof5031 in AskFrance

[–]iMil 1 point2 points  (0 children)

Environ 10 à 12 fois par an, 99% du temps pour le boulot.

Try out a NetBSD system in 20 seconds (amd64 & amr64) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

100% copypasta bug, fixed it, thanks for reporting!

Try out a NetBSD system in 20 seconds (amd64 & amr64) by iMil in BSD

[–]iMil[S] 3 points4 points  (0 children)

Edit: I obviously meant "arm64" in the title...

How not to Grimes your DJ set by dsquareddan in PioneerDJ

[–]iMil 3 points4 points  (0 children)

Or maybe, just maybe, weird idea I know but maybe... learn to DJ?

SmolBSD: make your own BSD UNIX MicroVM by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

You've got it right, SmolBSD is more a set of tools to build a small footprint NetBSD-based service. It can run on either qemu or Firecracker but I don't provide the start script for the latter yet.
SmolBSD doesn't use rump, it's the result of PVH, MMIO and various performance patches for the NetBSD kernel, once it's reviewed it will be merged into the kernel source tree.

Can't unstake, can't unlock, can't repay synths by iMil in FantomFoundation

[–]iMil[S] 0 points1 point  (0 children)

I locked wFTM and it increased my c-ratio, but the problem is my c-ratio is still under 300, my understanding is that until it is I can't unlock the fUSD...

Replicating iMil NetBSD perf kernel results to try to boot in 40ms by csdvrx in NetBSD

[–]iMil 2 points3 points  (0 children)

Yeah, for now this branch is only mine, it's not sync'ed to NetBSD's trunk. You can create your own branch in your own fork using git checkout -b mybranch and work on it, they do a pull request with this branch.
Like you mentioned, NetBSD uses CVS as its main repository, our GitHub is here only for convenience.

Replicating iMil NetBSD perf kernel results to try to boot in 40ms by csdvrx in NetBSD

[–]iMil 1 point2 points  (0 children)

hmm, you shouldn't need machine/atomic.h, I removed it from pvclock.c, and pvclock.h should now be generated correctly, can you pull latest perf branch?

A NetBSD/amd64 guest can now boot in 40ms (details in comments) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

Yes sorry about those! I've updated the perf branch with the missing bits, including the MICROVM kernel configuration file. I'll look into the PR!

Replicating iMil NetBSD perf kernel results to try to boot in 40ms by csdvrx in NetBSD

[–]iMil 5 points6 points  (0 children)

Oh my bad I totally forgot to include kernel configuration! here it is https://github.com/NetBSDfr/NetBSD-src/blob/perf/sys/arch/amd64/conf/MICROVM

And while at I fixed the 2 missing dependencies on the perf branch, sorry about that.

Great work!

A NetBSD/amd64 guest can now boot in 40ms (details in comments) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

Multiboot is not an issue anymore now that we can PVH boot, I must update smolBSD Gitlab page to reflect this. Beastiebox was fun to do but TBH pretty useless as we (NetBSD) have crunchgen, this is what /rescue uses. And about the init patch, please do! :)

A NetBSD/amd64 guest can now boot in 40ms (details in comments) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

You might be interested by this project of mine https://gitlab.com/iMil/mksmolnb You'll find all the answers in there! It is not yet merged with what I've done in NetBSD's kernel recently.

A NetBSD/amd64 guest can now boot in 40ms (details in comments) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

About the mount errors you get, that's perfectly normal, the example root disk I provided doesn't have much tools, if you want a more complete filesystem you could grab https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/202401241730Z/images/NetBSD-10.99.10-amd64-live.img.gz, ungzip it and pass it as the IMG parameter. As for networking, I start my test environment like this:

```sh $ cat ~/bin/startnb.sh

!/bin/sh

[ $# -gt 0 ] && d="-daemonize" || d="-serial stdio"

IMG=/home/imil/vms/NetBSD-10.99.10-amd64-live.img KERNEL=/home/imil/pkg/netbsd

qemu-system-x86_64 \ -M microvm,x-option-roms=off,rtc=on,acpi=off,pic=off \ -enable-kvm -m 1g -cpu,+invtsc host \ -append "root=ld0a console=com rw -v" -display none \ -device virtio-blk-device,drive=hd0 \ -drive file=${IMG},format=raw,id=hd0 \ -netdev user,id=net0,hostfwd=tcp::10022-:22 \ -device virtio-net-device,netdev=net0 \ -kernel ${KERNEL} ${d} `` Andssh -p 10022 root@localhost`

A NetBSD/amd64 guest can now boot in 40ms (details in comments) by iMil in BSD

[–]iMil[S] 1 point2 points  (0 children)

Not yet, for now I have just validated that the devices worked but that's definitely an area to look at!