[systemd-devel] systemd-nspawn trouble

Lennart Poettering lennart at poettering.net
Wed Apr 22 06:58:31 PDT 2015


On Wed, 22.04.15 15:42, Tobias Hunger (tobias.hunger at gmail.com) wrote:

> PS: Is there a way to stop the VMs to get a btrfs subvolume created in
> /var/lib/machines?

Not in nspawn, no.

This could be implemented via seccomp though.

> I have a couple of .#vmXXXX subvolumes in /var/lib/machines now and
> btrfs subvolume delete does not work on those since they have a
> subvolume in /var/lib/machine. Apparently systemd-nspawn also stumbled
> over this as the directories are still there but the machines are not
> running.

As mentioned in an earlier thread here, Chris intends to add recursive
subvolume deletion to btrfs-progs.

In systemd git "machinectl remove" recursively deletes subvolumes already.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list