Difference between revisions of "Lxd one-liners"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false | lxc list --format=json | jq --raw-output '.[].name' | xargs -i lxc config set {} boot.autostart false | ||
``` | ``` | ||
+ | |||
+ | ``` | ||
+ | lxc move foo --target lxd2 | ||
+ | ``` | ||
+ | https://discuss.linuxcontainers.org/t/lxc-5-0-live-migration-unable-to-perform-container-live-migration-criu-isnt-installed-but-it-is-and-criu-enable-is-set-to-true/13766 |
Revision as of 14:19, 26 November 2023
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