[lxc-devel] free/unfreeze support in lxc command

Stéphane Graber stgraber at ubuntu.com
Wed May 18 22:42:43 UTC 2016


On Thu, May 19, 2016 at 07:33:53AM +0900, Hiroaki Nakamura wrote:
> Hi,
> 
> I am creating the lxd_container module for Ansible.
> https://github.com/ansible/ansible-modules-extras/pull/2208#issuecomment-220122327
> 
> And I'm wondering I use the pylxd module or the lxc command.
> Actually I created the both version.
> 
> A. An implementation using the pylxd module.
> https://github.com/hnakamur/ansible-modules-extras/blob/lxd_container/cloud/lxd/lxd_container.py
> 
> B. An implementation using the lxc command.
> https://github.com/ansible/ansible-modules-extras/pull/2208#issuecomment-219968885
> 
> I think I prefer B because it's simpler for common cases like
> launching a container
> using a remote standard image.
> 
> However I could not found the way to freeze/unfreeze a container using
> the lxc command.
> Is there a way to freeze/unfreeze using the lxc command?
> If not, could you tell me why?
> Is the frozen state deprecated?

It's "lxc pause" and "lxc start".

Pause is a hidden command, so you need to do "lxc help --all" to have it
listed in the help.

> 
> Regards,
> Hiroaki
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160518/3df4974d/attachment.sig>


More information about the lxc-devel mailing list