Difference between revisions of "Lxd one-liners"
Jump to navigation
Jump to search
(Created page with "Delete all snaps ``` lxc info monitor-server | awk '{print $1}' | grep snap | xargs -i lxc delete monitor-server/{} ```") |
|||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Delete all snaps | Delete all snaps | ||
``` | ``` | ||
| − | lxc info | + | 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 | ||
| + | ``` | ||
| + | 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