Skip to content

nspawn does not support container directories that are symlinks with -M #2001

@mbiebl

Description

@mbiebl

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805785

machinectl start #containername# fails when /var/lib/machines/#containername#
is symbolic link to other folder

systemd[1]: Starting Container jee...
systemd-nspawn[2798]: Failed to open root file system: Too many levels of
symbolic links
systemd[1]: systemd-nspawn@jee.service: Main process exited, code=exited,
status=1/FAILURE
systemd[1]: Failed to start Container jee.
systemd[1]: systemd-nspawn@jee.service: Unit entered failed state.
systemd[1]: systemd-nspawn@jee.service: Failed with result 'exit-code'.
ls -la /var/lib/machines
drwx------  2 root root 4096 Ноя 22 14:55 .
drwxr-xr-x 77 root root 4096 Ноя 22 14:06 ..
lrwxrwxrwx  1 root root   26 Ноя 22 14:24 jee ->
/home/#my_home_folder#/containers/jee

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature requestnspawn

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions