On Mon, Apr 28, 2014 at 6:12 PM, Lennart Poettering <lenn...@poettering.net> wrote: > Oh yuck, this looks like a bug in systemd. > > Currently if /etc/machine-id is missing we will try to initialize it > from the UUID that KVM maintaines for each machine. However, this is a > bad idea if we are actually running inside a container already... > > I fixed this now in 984233ceb6dfeecd8b43864795a660a200e4ac78 (I > hope). Please verify.
Thanks. Systemd now generates a random id instead of using the uuid from my kvm vm: Detected virtualization 'systemd-nspawn'. Detected architecture 'x86-64'. Welcome to Arch Linux! Initializing machine ID from random generator. Passing in a uuid doesn't seem to work though: [ruben@vm ~]$ sudo rm testcontainer/etc/machine-id [ruben@vm ~]$ uuid=$(uuidgen); echo $uuid d9611cff-f011-4c7c-8c76-2fe4154f7ed3 [ruben@vm ~]$ sudo systemd-nspawn -bD ~/testcontainer --uuid=$uuid Detected virtualization 'systemd-nspawn'. Detected architecture 'x86-64'. Welcome to Arch Linux! Initializing machine ID from random generator. I would have expected that to be 'Initializing machine ID from container UUID.' container_uuid is set in the environment: [root@testcontainer ~]# tr '\0' '\n' < /proc/1/environ | grep container container=systemd-nspawn container_uuid=d9611cfff0114c7c8c762fe4154f7ed3 Any ideas? Kind regards, Ruben _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel