[CRIU] Fwd: CRIU LXC error
Urgen Sherpa
urgen.sherpa at nepallink.net
Mon Feb 10 01:13:17 PST 2014
---------- Forwarded message ----------
From: Urgen Sherpa <urgen.sherpa at nepallink.net>
Date: Mon, Feb 10, 2014 at 12:49 PM
Subject: Re: [CRIU] CRIU LXC error
To: David Shwatrz <dshwatrz at gmail.com>
Thank you all for the reply,i added lxc.tty=0 as well as lxc.console=none
in "/var/lib/lxc/test-container/config" and also in Host Ubuntu files.
The output later was::
root at ktmnp:/var/lib/lxc/test-container# lxc-info -n test-container
state: RUNNING
pid: 1634
root at ktmnp:/home/nplink/criu-1.1# ./criu dump -t 1634 -D /dumps
--ext-unix-sk --tcp-established --file-locks -o dump.log
root at ktmnp:/home/nplink/criu-1.1# cat /dumps/dump.log
Error (parasite-syscall.c:387): si_code=4 si_pid=1920 si_status=5
Error (parasite-syscall.c:387): si_code=4 si_pid=1921 si_status=5
Error (parasite-syscall.c:387): si_code=4 si_pid=1922 si_status=5
Error (tty.c:203): tty: Can't obtain ptmx index: Inappropriate ioctl for
device
Error (cr-dump.c:1493): Dump files (pid: 2073) failed with -1
Error (cr-dump.c:1828): Dumping FAILED.
root at ktmnp:/home/nplink/criu-1.1#
here is what the config file of container looks like
root at ktmnp:/var/lib/lxc/test-container# ls
config fstab lxc_snapshots rootfs rootfs.hold
root at ktmnp:/var/lib/lxc/test-container# cat config
lxc.console = none
lxc.network.type = veth
lxc.network.hwaddr = 00:16:3e:b3:f5:95
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.rootfs = /var/lib/lxc/test-container/rootfs
lxc.mount = /var/lib/lxc/test-container/fstab
lxc.pivotdir = lxc_putold
lxc.devttydir = lxc
lxc.tty = 0
lxc.pts = 1024
lxc.utsname = test-container
lxc.arch = amd64
lxc.cap.drop = sys_module mac_admin mac_override sys_time
lxc.cgroup.memory.limit_in_bytes = 1994M
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c *:* m
lxc.cgroup.devices.allow = b *:* m
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rm
lxc.cgroup.devices.allow = c 10:229 rwm
lxc.cgroup.devices.allow = c 10:200 rwm
lxc.cgroup.devices.allow = c 1:7 rwm
lxc.cgroup.devices.allow = c 10:228 rwm
lxc.cgroup.devices.allow = c 10:232 rwm
On Sun, Feb 9, 2014 at 9:34 PM, David Shwatrz <dshwatrz at gmail.com> wrote:
> Hi,
> Isn't the "External unix sockets" CRIU plugin supposed to solve this
> and to support external terminals?
>
> see: http://criu.org/Plugins
>
> DavidS
>
> On Sun, Feb 9, 2014 at 2:31 PM, Andrew Vagin <avagin at parallels.com> wrote:
> > On Sun, Feb 09, 2014 at 11:31:23AM +0545, Urgen Sherpa wrote:
> >> Hello,
> >> system used: ubuntu 13.1 X64bit RAM: 2G (in VMware workstation 10.0.0)
> >> i was trying to check point lxc container[container=ubuntu 12.04]
> (using CRIU
> >> which i compiled from source using make).
> >> steps followed to check point were:-
> >> ////below commands are executed outside the container///////
> >> //also the console is none(by adding lxc.console=none in file
> /var/lib/lxc/
> >> test-container ) and udev disabled with command
> >> ( mv /sbin/udevd{,.bcp} )
> >> #lxc-create -n test-container -t ubuntu
> >>
> >> #lxc-start -n test-container -d
> >>
> >> # lxc-info --name test-container
> >> state: RUNNING
> >> pid: 1647
> >> root at ktmnp:/home/criu-1.1# ./criu dump -t 1647 -D /dumps/
> --tcp-established
> >> --file-locks
> >> Error (parasite-syscall.c:387): si_code=4 si_pid=1936 si_status=5
> >> Error (parasite-syscall.c:387): si_code=4 si_pid=1939 si_status=5
> >> Error (parasite-syscall.c:387): si_code=4 si_pid=1940 si_status=5
> >> Error (tty.c:222): tty: Unexpected format on path /dev/lxc/tty4
> >> Error (cr-dump.c:1493): Dump files (pid: 2037) failed with -1
> >> Error (cr-dump.c:1828): Dumping FAILED.
> >>
> >> any help/ suggestions please!
> >
> > CRIU doesn't support external terminals. You can add two lines in CT's
> > config file
> >
> > lxc.console = none
> > lxc.tty = 0
> >
> > http://criu.org/LXC
> >
> >> _______________________________________________
> >> CRIU mailing list
> >> CRIU at openvz.org
> >> https://lists.openvz.org/mailman/listinfo/criu
> >
> > _______________________________________________
> > CRIU mailing list
> > CRIU at openvz.org
> > https://lists.openvz.org/mailman/listinfo/criu
>
--
Warm Regards
Urgen sherpa
Technical support
NepalLink Networks (www.nepallink.net)
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, please
immediately alert the sender by reply e-mail and then delete this message.
Any dissemination, distribution or other use of the contents of this
message by anyone other than the intended recipient is strictly prohibited.
Nepallink Network has taken every reasonable precaution to minimize the
risk, but is not liable for any damage you may sustain as a result of any
virus in this e-mail. You should carry out your own virus checks before
opening the e-mail or attachment
--
Warm Regards
Urgen sherpa
Technical support
NepalLink Networks (www.nepallink.net)
The information contained in this e-mail and any accompanying documents may
contain information that is confidential or otherwise protected from
disclosure. If you are not the intended recipient of this message, please
immediately alert the sender by reply e-mail and then delete this message.
Any dissemination, distribution or other use of the contents of this
message by anyone other than the intended recipient is strictly prohibited.
Nepallink Network has taken every reasonable precaution to minimize the
risk, but is not liable for any damage you may sustain as a result of any
virus in this e-mail. You should carry out your own virus checks before
opening the e-mail or attachment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140210/c230d8b9/attachment.html>
More information about the CRIU
mailing list