GitHub user Fr3dL closed a discussion: Issue generating SystemVM SSH keys when running cloudstack-management in a Docker container
Hello all, I am trying to run cloudstack-management from a Docker container (ACS 4.18.1 using Ubuntu 22.04 image). Most of it is working as expected, however I cannot start the SystemVMs. I am getting this in the logs of the ACS node: Failed to scp files to system VM due to, /root/.ssh/id_rsa.cloud (No such file or directory) I understand that there is a script that can stop the management service to copy the SSH keys if running from a container with no privileges (/usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh): ``` # if running into Docker as unprivileges, skip ssh verification as iso cannot be mounted due to missing loop device. if [ -f /.dockerenv ]; then if [ -e /dev/loop0 ]; then # it's a docker instance with privileges. copy_priv_key $newprivkey else ...... ``` I would really appreciate if someone had the time to explain the process when deploying a SystemVM in 4.18.1? When and how does it mount the SystemVM on the management server (is it always using /dev/loop0)? I am also not sure at what point this script is running (like most of the scripts in the /usr/share/cloudstack-common/scripts/vm directory ). Is it every time we deploy a SystemVM, or only when we download the ISO to the secondary storage for the first time? Any help will be much appreciated. GitHub link: https://github.com/apache/cloudstack/discussions/9740 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org