Follow these steps to make LXC containers start automatically on host startup:
1. Open Terminal.
1. Navigate to `/etc/default/lxc-net` file.
1. Uncomment (remove the `#`) from the following lines: \`\`\` # USE_LXC_BRIDGE=“true“ # LXC\_AUTO=“true“ \`\`\`
1. Save the changes and close the file.
1. Now, navigate to the container’s configuration file in `/var/lib/lxc/your_container_name/config`
1. Add the following lines to the end of the file: \`\`\` lxc.start.auto = 1 lxc.start.delay = 5 \`\`\` The `lxc.start.auto = 1` line means that you’re telling your system to automatically start this particular LXC container on boot.
The `lxc.start.delay = 5` line is optional – it tells the system to wait for 5 seconds before starting the next LXC container (if you have more than one).1. Save the changes and close the file.
1. Now your LXC containers should start automatically at boot.
1. You can test this by rebooting your system.
Please note that these steps must be repeated for each LXC container you want to start automatically.