Lxc freeze doesn't exist, but is implented in API

I see that I can freeze (suspend) a container via the API like :

curl --unix-socket /var/snap/lxd/common/lxd/unix.socket -X PUT -d ‘{“action”: “freeze”}’ s/1.0/containers/x2go/state?project=laptop

This seems to work well, but the command is not implemented in the commandline tool lxc (i.e. lxc freeze )?

I am using snap 3.13 (rev 10756) on ubuntu 19.04

1 Like

lxc pause is the command, then use lxc start to resume.

1 Like

Thanks! Hmm it doesn’t show the option with:

lxc

but indeed it does do the trick :slight_smile:

lxc --help --all

What are underlying processes when executing a container freeze?