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

Hiroaki Nakamura hnakamur at gmail.com
Wed May 18 22:58:23 UTC 2016


Thanks for your comment again.
Hearing that, I'll add a support of the frozen state to the
lxd_container Ansible module.

Thanks!

2016-05-19 7:55 GMT+09:00 Stéphane Graber <stgraber at ubuntu.com>:
> We hide a few commands that we don't expect the average user to use.
>
> That's the case of things like "lxc init", "lxc pause" and "lxc monitor".
>
> On Thu, May 19, 2016 at 07:52:30AM +0900, Hiroaki Nakamura wrote:
>> Thanks for your comment.
>> Could you tell me why "lxc pause" is a hidden command?
>>
>> 2016-05-19 7:42 GMT+09:00 Stéphane Graber <stgraber at ubuntu.com>:
>> > 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
>> >
>> > _______________________________________________
>> > lxc-devel mailing list
>> > lxc-devel at lists.linuxcontainers.org
>> > http://lists.linuxcontainers.org/listinfo/lxc-devel
>> >
>> _______________________________________________
>> 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
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel
>


More information about the lxc-devel mailing list