I have a running LXD 4.4 and need to import a server as a container configured by another developer. He copied the file system from his container instead of using export, so I have the rootfs directory along with backup.yaml. I’ve set up a template container as Ubuntu 18.04 and tried using lxc file push to overwrite directories under / in the stopped container. A few items under /dev failed to copy. The container did start up but services like apache2 and mysqld don’t fire up and /etc/init.d/apache2 and /etc/init.d/mysql just hang when trying to start.
Is there a cleaner way to directly import a full root file system like this? Has anyone done anything along these lines?
I’m just starting to get into LXD and would very much appreciate any help.
Thanks in advance!