marcosnils / cmt Goto Github PK
View Code? Open in Web Editor NEWContainer migration tool
License: MIT License
Container migration tool
License: MIT License
We said we'll leave the process stopped and resume it if we can't restore.
Could you please tell me which runc and criu version you guys used for your demo? Also the docker version.
The migration flow would be as follows:
Validations (CPU / Memory / CRIU/RUNC versions, etc, IP, file transfer)
Checkpoint
Copy files
(restore-before) >> Cambiar la ruta de AWS
Restore
(restore-fail) >> if restore fails
(restore-success) >> cleanup
Leaving process stopped in the source host makes easier to recover in case restore fails in the target host. As to resume it rollback hooks (#2) need to be executed and process resumed.
Error in validation:
cmt validate --src pwd
--dst [email protected]
2016/01/11 17:31:53 Error criu does not exist in dst
I am sure that the destination is the same and i tried it the other way too.
Hi
Following usage instructions from https://github.com/marcosnils/cmt didn't work as expected. Currently i have installed runc and criu but cmt commands are not accepted. Can anyone help me in this issue. Thanks
Command History:
go get github.com/marcosnils/cmt
netcom1@cloudlet1:/cmt$ ls/cmt/src/github.com/marcosnils/cmt$ ls
bin pkg src test
netcom1@cloudlet1:
cmd cmt.go iptables LICENSE magic_migrator.sh migrate README.md validate
netcom1@cloudlet1:~/cmt/src/github.com/marcosnils/cmt$ cmt --help
No command 'cmt' found, but there are 18 similar ones
cmt: command not found
Such as:
RUNC
[root@node02 mycontainer]# runc --version
runc version 1.0.0-rc4+dev
commit: e6516b3d5dc780cb57a976013c242a9a93052543
spec: 1.0.0
GO
go version go1.9.2 linux/amd64
OS
[root@node02 mycontainer]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
CMT
[root@node02 mycontainer]# $GOBIN/cmt --version
cmt version 0.1
Passwordless ssh
[root@node02 mycontainer]#
[root@node02 mycontainer]# ssh node01
Last login: Thu Jan 18 17:55:53 2018 from node02
[root@node01 ~]# exit
logout
Connection to node01 closed.
SSH agent
Followed this website for ssh agent
http://sshkeychain.sourceforge.net/mirrors/SSH-with-Keys-HOWTO/SSH-with-Keys-HOWTO-6.html
Error
[root@node01 mycontainer]# $GOBIN/cmt migrate --src pwd
--dst root@node02:/root/mycontainer
2018/01/18 18:09:18 Performing validations
2018/01/18 18:09:18 Connection error: ssh: must specify HostKeyCallback in dst
[root@node01 mycontainer]#
[root@node01 mycontainer]# $GOBIN/cmt validate --src pwd
--dst root@node02
2018/01/18 18:10:59 Connection error: ssh: must specify HostKeyCallback in dst
Could you please help me fix this?
go get github.com/marcosnils/cmt
# golang.org/x/crypto/ssh
/usr/local/go/src/golang.org/x/crypto/ssh/buffer.go:8: import /usr/local/go/pkg/linux_amd64/io.a: not a package file
As today only SSH agent authentication is supported. It'd be nice to allow to specify an identity file to perform remote executions.
Either a CIDR could be specified or eventually it'd be nice to integrate it with Docker Swarm
๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.