]> git.ipfire.org Git - thirdparty/systemd.git/commit
vmspawn: add --ephemeral option similar to nspawn 40505/head
authorMichael Vogt <michael@amutable.com>
Sun, 1 Feb 2026 13:07:40 +0000 (14:07 +0100)
committerMichael Vogt <michael@amutable.com>
Tue, 3 Feb 2026 19:22:14 +0000 (20:22 +0100)
commit6e67fc2938ad690a065a984c5813c6b5c0e48806
treebd852a3ff4d45ed73f486b2f22f6a10981aaaa62
parent96dd2df514a336221bfe02422b4bc75a350b7e9f
vmspawn: add --ephemeral option similar to nspawn

This patch adds a `--ephemeral` option to vmspawn that will turn
on snapshot mode on the qemu disk passed via `--image` or the
directory passed via `--directory`. For disk images it uses the
native mechanism that qemu provides. For directories it (re)uses
the snapshot mechanism that nspawn is using, i.e. it will create
a btrfs snapshot if possible and if not falls back to a traditional
directory copy.
man/systemd-vmspawn.xml
src/nspawn/nspawn.c
src/vmspawn/vmspawn-settings.h
src/vmspawn/vmspawn.c