80739344bf899b65734753773c9a0b73f8733d3d
The debian template copies the rootfs 1:1 from the cache (/var/cache/lxc/debian/rootfs-<release>-<arch>/), including the cached /etc/machine-id. All containers created from the same cache therefore shared the same machine-id. After lxc-create, write a new random machine-id into the container's rootfs and make /var/lib/dbus/machine-id a symlink to /etc/machine-id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Shell
100%