Lxd one-liners
Jump to navigation
Jump to search
Delete all snaps
host=myhost lxc info $host | awk '{print $1}' | grep snap | xargs -i lxc delete $host/{}
lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false
lxc move foo --target lxd2