[lxc-users] [LXD]simple TEST, Live migration. but fail, I need some advice
디케이
zuntong at gmail.com
Thu Mar 3 14:59:32 UTC 2016
I just want a simple test for live migration, and failed.
However, non-live migration works correctly. ---> "# lxc move
'stopped_container' remote_server2:new_container"
when I tryed to live migration, ---> "# lxc move runnung_container
remote_server2:new_container"
error returned.
*error: Error transferring container data: checkpoint failed:*
*checkpoint failed*
and in LXD log, error messages logged : *must have criu 1.9 *
*-->but criu 1.7.2-2~ubuntu14.04.1~ppa1 installed on server *
* How does I install criu 1.9 on 15.10? and Does It solve problem?
please help me*
after that. Also I created profile and edit as below in both servers. But
Live migration did not work and same error returned
# lxc profile edit profile_file
config:
raw.lxc: |
lxc.console = none
lxc.cgroup.devices.deny = c 5:1 rwm
lxc.start.auto =
lxc.start.auto = proc:mixed sys:mixed
security.privileged: "true"
devices: {}
===========================================================================
- LOG as followed.
*[/var/log/lxd/lxd.log]*
t=2016-03-03T23:39:49+0900 lvl=info msg=handling method=GET url=/1.0 ip=@
t=2016-03-03T23:39:49+0900 lvl=info msg=handling method=GET
url=/1.0/containers/centos ip=@
t=2016-03-03T23:39:49+0900 lvl=info msg=handling method=GET
url=/1.0/containers/centos ip=@
t=2016-03-03T23:39:49+0900 lvl=info msg=handling url=/1.0/containers/centos
ip=@ method=POST
t=2016-03-03T23:39:49+0900 lvl=info msg=handling method=GET url=/1.0 ip=@
t=2016-03-03T23:39:57+0900 lvl=info msg="allowing untrusted GET" ip=
192.168.175.134:39222
url="/1.0/operations/5f4ba437-6caa-4d20-966f-b4b67a3b7950/websocket?secret=ac3c57608072bd0df22c67f4836096063d9b38a00d7b5cb0bc8cf739189a0da2"
t=2016-03-03T23:39:57+0900 lvl=info msg="allowing untrusted GET"
url="/1.0/operations/5f4ba437-6caa-4d20-966f-b4b67a3b7950/websocket?secret=634347ea238a624464ce62f14fd8e03079f3b259285fb87ae751456a5c17acd7"
ip=192.168.175.134:39224
t=2016-03-03T23:39:57+0900 lvl=info msg="allowing untrusted GET"
url="/1.0/operations/5f4ba437-6caa-4d20-966f-b4b67a3b7950/websocket?secret=85f9ad2dfe84502d3e83417c5c39b0813ffec9c82d412eda052a0ca1d1ca794a"
ip=192.168.175.134:39226
*[/var/log/lxd/centos/lxd.log]*
lxc 20160303233957.768 ERROR lxc_criu - criu.c:criu_version_ok:348 - *must
have criu 1.9 or greater to checkpoint/restore*
===========================================================================
- Ubuntu 15.10
-* I Installed as follo*w
# add-apt-repository ppa:ubuntu-lxc/lxd-stable
# apt-get update
# apt-get dist-upgrade
# apt-get install lxd lxd-client
# newgrp lxd
# apt-get install criu
===========================================================================
*[Server1 status]*
lxc remote list
+-----------------+-----------------------------------------+--------+
| NAME | URL
| PUBLIC |
+-----------------+-----------------------------------------+--------+
| LXD2 | https://192.168.175.135:8443 | NO |
| images | https://images.linuxcontainers.org:8443 | YES |
| local (default) | unix://
| NO |
+-----------------+-----------------------------------------+--------+
*[Server2 status]*
# lxc remote list
+-----------------+------------------------------+--------+
| NAME | URL | PUBLIC |
+-----------------+------------------------------+--------+
| LXD | https://192.168.175.134:8443 | NO |
| local (default) | unix:// | NO |
+-----------------+------------------------------+--------+
# lxc list
+--------+---------+------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+--------+---------+------+------+------------+-----------+
| centos | RUNNING | | | PERSISTENT | 1 |
+--------+---------+------+------+------------+-----------+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160303/8887a246/attachment.html>
More information about the lxc-users
mailing list