Replies: 2 comments 1 reply
-
There's nothing in netlab that would automatically start after the reboot. Also, are we talking about a system shutdown/poweroff (initiated from Linux CLI or similar), or a VM poweroff (that could leave the system in some interim state)? Anyway, the artifacts from the last lab are still around, and Docker or libvirt might decide to restart the workload that was running at the time the system was powered off. It's a good practice to shut down all labs before shutting down the server. To recover from the "some labs might still be running" state, use netlab status --all to display all running instances, and then netlab status --cleanup --instance id to shut down the lab and clean it up. If you get to a state where the netlab status --cleanup fails to do its job (for example, the virtualization provider throws an error which stops the shutdown process), use netlab status --all to find the directory with a leftover lab, change into that directory, and do netlab down --cleanup --force. Hope this helps (and yes, it should go into the documentation) |
Beta Was this translation helpful? Give feedback.
-
For Docker instances, I believe the auto-starting may be due to https://docs.docker.com/engine/containers/start-containers-automatically/ It doesn't happen for VM based devices for example, and there are flags in Containerlab that could be set to prevent this from happening |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm discovering this wonderful tool ! Thank you Ivan for the work,
I'm using netlab on a public cloud instance that I turn off whenever i don't need it, however when powering on the instance netlab will automatically start the latest lab, is here a way to prevent it ?
I've installed netlab using the regular netlab install procedure on a brand new 22.04 ubuntu image.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions