Difference between revisions of "Lxd one-liners"
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
``` | ``` | ||
| + | lxc stop foo | ||
lxc move foo --target lxd2 | 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 | 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 | ||
Latest 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 stop foo lxc move foo --target lxd2