Can not suspend LXC

unixpert

Member
Nov 4, 2011
22
0
21
Hello everybody,

I have an error when suspend LXC with API Proxmox.

Error log:
lxc-checkpoint: criu.c: criu_version_ok: 699 must have criu 2.0 or greater to checkpoint/restore
Checkpointing 27692769 failed.
TASK ERROR: command 'lxc-checkpoint -n 27692769 -s -D /var/lib/vz/dump' failed: exit code 1

Maybe i need to upgrade CRIU 2.0. How to i can upgrade criu in proxmox ?

proxmox-ve: 4.4-82 (running kernel: 4.4.40-1-pve)
pve-manager: 4.4-12 (running version: 4.4-12/e71b7a74)
pve-kernel-4.4.40-1-pve: 4.4.40-82
lvm2: 2.02.116-pve3
corosync-pve: 2.4.2-1
libqb0: 1.0-1
pve-cluster: 4.0-48
qemu-server: 4.0-109
pve-firmware: 1.1-10
libpve-common-perl: 4.0-92
libpve-access-control: 4.0-23
libpve-storage-perl: 4.0-76
pve-libspice-server1: 0.12.8-2
vncterm: 1.3-1
pve-docs: 4.4-3
pve-qemu-kvm: 2.7.1-4
pve-container: 1.0-94
pve-firewall: 2.0-33
pve-ha-manager: 1.0-40
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u3
lxc-pve: 2.0.7-3
lxcfs: 2.0.6-pve1
criu: 1.6.0-1
novnc-pve: 0.5-8
smartmontools: 6.5+svn4324-1~pve80
ceph: 10.2.6-1~bpo80+1

Thanks a lot.
 
I am sorry, but checkpoint/restore for containers is not really implemented and tested ...
 
There is still no plan to integrate that. I suggest that you use VMs if you need that feature.

Would be great if Proxmox integrated that feature : I have a Proxmox laptop with a container that takes a few minutes to boot up, so "hibernating" it before I have to shutdown / reboot my laptop could save me some time at boot.

Right now the only solution is to manage the container directly (i.e. no Proxmox), and use LXC's native checkpoint feature (http://lxc.sourceforge.net/man/lxc-checkpoint.html), or the CRIU project (https://criu.org/Main_Page).
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!