1
0
Fork
You've already forked vm
0
No description
  • Shell 83.3%
  • Makefile 16.7%
2026年07月02日 13:23:30 +02:00
mkosi.finalize.d src: mkiso.finalize.d: bulk 2026年07月01日 18:51:58 +02:00
mkosi.output repo: add mkosi.output/.keep 2026年07月01日 13:57:24 +02:00
mkosi.repart src: mkosi.repart: copy files from /boot 2026年07月01日 12:55:15 +02:00
mkosi.skeleton src: mkosi.skeleton: add 79-vm-ethernet.network file; rm old .network file 2026年07月01日 19:00:41 +02:00
.gitignore repo: add TODO.md to .gitignore 2026年06月30日 15:36:14 +02:00
COPYLEFT repo: add COPYLEFT file 2026年07月01日 20:07:21 +02:00
Makefile src: makefile: rm bump dependency from build 2026年06月30日 23:12:37 +02:00
mkosi.conf src: mkosi.conf: use boot/ as esp; clean up 2026年07月01日 19:01:50 +02:00
mkosi.nspawn src: mkosi.nspawn: add priv network; add priv users 2026年06月30日 15:37:06 +02:00
mkosi.version src: bump mkosi.version 2026年07月01日 13:01:04 +02:00
qemu.sh src: qemu.sh: add smbios arg; cleanup 2026年07月02日 13:23:30 +02:00
README.md repo: readme: update 2026年07月01日 20:53:52 +02:00
vmspawn.sh src: vmspawn.sh: cleanup and reformat 2026年06月30日 15:27:10 +02:00

A golden archlinux vm image build with mkosi(1).

Usage

make clean build 
# install image to /var/lib/machines as RO image.
sudo make install
# clone and start vm via machinectl (nspawn)
machinectl clone vm testvm
machinectl start testvm
# start vm as qemu (kvm)
sudo ./qemu.sh

Tricks

# change/customize the image before boot
sudo systemd-firstboot --force --prompt --image=PATH
# change root password inside image
sudo systemd-firstboot --force --prompt-root-password --image=PATH
# mount an $image to $dir
sudo systemd-dissect -M IMAGE DIR

Notes

  • 2026年07月01日 atm esp partition is mounted at /boot (setup via files/scripts in mkosi.{skeleton,finalize.d}). systemd autom. mounts esp (identified via part UUID) to /boot and mkinitcpio is configured by default to /boot as well.
  • https://github.com/systemd/systemd/issues/3847 :overlay :hack