diff --git a/pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh b/pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh index 821745e89668..ac2aaba241c3 100644 --- a/pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh +++ b/pkg/cidata/cidata.TEMPLATE.d/boot/20-rootless-base.sh @@ -63,7 +63,9 @@ fi # Set up subuid for f in /etc/subuid /etc/subgid; do - grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:100000:65536" >>$f + # systemd-homed expects the subuid range to be within 524288-1878982656 (0x80000-0x6fff0000). + # See userdbctl. + grep -qw "${LIMA_CIDATA_USER}" $f || echo "${LIMA_CIDATA_USER}:524288:1073741824" >>$f done # Start systemd session