Lxc disable autostart

From UVOO Tech Wiki
Jump to navigation Jump to search
#!/bin/bash
set -eu

hosts=$(lxc list --format=json | jq -r '.[] | select(.state.status == "Stopped") | .name')

for i in $hosts; do
  echo $i
  lxc config set $i boot.autostart false || true
done