Re: [RFC][PATCH 0/5][lxc]: Link with USERCR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Lezcano [dlezcano@xxxxxxxxxx] wrote:
> Sukadev Bhattiprolu wrote:
>> Link lxc_checkpoint, lxc_restart with USERCR[2]
>>
>
>> 3. Checkpoint/restart a simple LXC container
>>
>> 	$ lxc-execute --name foo --rcfile lxc-no-netns.conf -- /bin/sleep 1000
>>
>> 	$ lxc-freeze --name foo
>>
>> 	$ lxc-checkpoint --name foo --image /root/lxc-foo.ckpt
>>
>> 	$ lxc-unfreeze --name foo
>
> IMO, the freeze / thaw should be done in the lxc_checkpoint function code.

Well, by separating the freeze and checkpoint, we could do things like
snapshot the filesystem or would lxc_checkpoint make an external call
to do that ?

I will leave it as is for my next version and I am guessing it can be done
easily later ?
>
>> 	$ lxc-stop --name foo
>>
>> 	$ lxc-restart --name foo --image /root/lxc-foo.ckpt
>
> Is the container restarted in a frozen state ?

It can be (by setting the restart_args->freezer). I will leave it in
frozen for now. Maybe later we can add a command line option to let
user choose whether or not to leave it frozen

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux