Emile "iMil" Heitor
@imil.bsd.cafe.ap.brid.gy
1 followers 0 following 15 posts
FOSS contributor, NetBSD developer. DJ'ing and composing in my spare time * gitlab.com/imil * twitch.tv/imilnb 🌉 bridged from ⁂ https://mastodon.bsd.cafe/@imil, follow @ap.brid.gy to interact
Posts Media Videos Starter Packs
Reposted by Emile "iMil" Heitor
imil.bsd.cafe.ap.brid.gy
Non-NetBSD/Linux users I have a gift for you, you can now taste the joy of microvm creation thanks to those pre-built smolBSD build images! https://github.com/NetBSDfr/smolBSD/releases
bmake required, bmake ARCH={amd64,evbarm-aarch64} kernfetch fetchimg and you're set!
Yes I'm looking at you […]
Original post on mastodon.bsd.cafe
mastodon.bsd.cafe
imil.bsd.cafe.ap.brid.gy
Non-NetBSD/Linux users I have a gift for you, you can now taste the joy of microvm creation thanks to those pre-built smolBSD build images! https://github.com/NetBSDfr/smolBSD/releases
bmake required, bmake ARCH={amd64,evbarm-aarch64} kernfetch fetchimg and you're set!
Yes I'm looking at you […]
Original post on mastodon.bsd.cafe
mastodon.bsd.cafe
imil.bsd.cafe.ap.brid.gy
LUTINOS! à vous la beauté des (vrais) microsevices, le live d'hier soir est en ligne et il vous apprendra *ENFIN* à créer facilement votre propre microvm NetBSD qui démarre... ce que vous voulez.
Enjoy https://youtu.be/yiWTi18oG8M et partagez vos expériences !
imil.bsd.cafe.ap.brid.gy
Je frappe à votre porte dans 2h les lutinos !
imil.bsd.cafe.ap.brid.gy
On the mobile:

~ $ cat bin/knockssh
#!/bin/sh

echo -n "port: "
stty -echo
read port
stty echo
echo

DEST=$1
PORTS="$port $(($port + 1)) $port"

knock()
{
for p in $PORTS
do
echo "knocking"
echo|nc -w5 $DEST $p
done
}

knock
ssh -p $(($port + 2)) ssh@$DEST
knock
imil.bsd.cafe.ap.brid.gy
KNOCK KNOCK LUTINOS!
Connaissez-vous notre sauveur smolBSD?
Ce soir je vous montre comment implémenter une microvm de bounce SSH qui se déclenche sur port knocking 🚪
Rendez-vous à 20h sur https://twitch.tv/imilnb
imil.bsd.cafe.ap.brid.gy
smolSSHd in action: isolated microvm running only sshd, the smolBSD vm is triggered by a basic port knocking script
imil.bsd.cafe.ap.brid.gy
An idea inspired by @agc a couple of months ago:
Here's a poor man's port knocking script https://github.com/NetBSDfr/smolBSD/blob/main/contribs/knockd.sh that spawns a smolBSD microvm running only sshd in a read only environment https://github.com/NetBSDfr/smolBSD/tree/main/service/sshd
The […]
Original post on mastodon.bsd.cafe
mastodon.bsd.cafe
imil.bsd.cafe.ap.brid.gy
A use case I did not planned for smolBSD, start it with 9p directory sharing in order to access a NetBSD raw disk image:

$ /startnb.sh -i images/base-amd64.img -k kernels/netbsd-SMOL -w /mnt/nfs
# vnconfig vnd0 /mnt/vm/nadd/disk0.img
# mount /dev/vnd0e /somewhere

happily crawl in your old disk […]
Original post on mastodon.bsd.cafe
mastodon.bsd.cafe
imil.bsd.cafe.ap.brid.gy
LUTINOS! le live d'hier est en ligne.
La suite de la construction d'une distribution BSD UNIX *vraiment* from scratch, et c'est un
gros milestone, puisqu'on a réussi à faire monter getty :) https://youtu.be/b_RT2mzUvZA
imil.bsd.cafe.ap.brid.gy
Disque remplacé, RDV dans 30mn!
imil.bsd.cafe.ap.brid.gy
bon bon bon j'ai ptet un soucis pour ce soir :

Sep 25 09:44:49 <local7.alert> korriban ZFS[96083]: catastrophic pool I/O failure, zpool=disk2
imil.bsd.cafe.ap.brid.gy
Pour ceux qui veulent prendre un peu d'avance, le README du projet est très bien fait : https://github.com/leahneukirchen/nitro/blob/master/README.md

Pour les autres, rendez-vous à 20h sur https://twitch.tv/imilnb
imil.bsd.cafe.ap.brid.gy
LUTINOS
L'heure est venue de faire quelque chose de notre nouvel init ! Ce soir on repasse rapidement sur les pré-requis qu'on a passé un peu vite la semaine dernière, et LEZGO FAIRE DES TRUCS. From scratch.
imil.bsd.cafe.ap.brid.gy
NetBSD first class citizen ladies and gentlemen:

from https://github.com/leahneukirchen/nitro

`nitro is a tiny process supervisor that also can be used as pid 1 on Linux and NetBSD.`

w00t!
Reposted by Emile "iMil" Heitor
imil.net
ok donc pour reproduire le travail qu'on a fait hier soir et démarrer les premiers travaux pour créer notre propre distribution de NetBSD, vous allez d'abord cloner github.com/NetBSDfr/smo...
Et dans le repertoire smolBSD créer 2 dossiers:

mkdir -p {kernels,images}

1/n
imil.bsd.cafe.ap.brid.gy
LUTINOS!
Ça y est. On a tout pété. Et y'a des preuves !
Le replay du live d'hier est en ligne https://youtu.be/td-tC_YFcR0
Au programme, replacement sauvage et sans anesthésie d'un /sbin/init "pour voir" :)