OpenVZ Forum


Home » General » Support » vzmigrate failing with 'Can not create connection to...'
vzmigrate failing with 'Can not create connection to...' [message #53355] Thu, 21 June 2018 14:42 Go to next message
marcoa is currently offline  marcoa
Messages: 1
Registered: June 2018
Junior Member
From: *remoteoffice.it
Hello,
I'm facing a big problem with vzmigrate attempting to migrate between Virtuozzo 7 hosts:

vzmigrate ovz08 myCTID
ssh exited with code 255
ssh wait daemon exited with code 1
vzsock_open() return 1

Can not create connection to ovz08


I can ssh without problem between hosts
The kernels are
3.10.0-693.17.1.vz7.45.7 on the source
3.10.0-693.17.1.vz7.43.10 on the destination

I can instead migrate the container to an older Virtuozzo 7.3 host, running on kernel 3.10.0-514.26.1.vz7.33.22
Could you please give me an advice on this?

Thank you
Marco
Re: vzmigrate failing with 'Can not create connection to...' [message #53571 is a reply to message #53355] Fri, 13 September 2019 18:13 Go to previous message
mkandoll is currently offline  mkandoll
Messages: 2
Registered: January 2018
Junior Member
From: *ph.ph.cox.net
I ran into this issue and after a while found what the problem was in my case. In my case vzmigrate hardcoded an unsupported cipher, arcfour. The solution was to specify a supported cipher in the ssh options passed to vzmigrate.

[root@server vz]# vzmigrate -vv -f --ssh="-i /root/.ssh/ssh-key" --online --dry-run server2.hostname.com 9579055
1568397905: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key server2.hostname.com true
1568397905: ssh exited with code 255
1568397905: ssh wait daemon exited with code 1
1568397905: vzsock_open() return 1

1568397905: Can not create connection to server2.hostname.com
You have mail in /var/spool/mail/root
[root@server vz]# ssh -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key server2.hostname.com true
no matching cipher found: client arcfour server aes256-ctr,aes192-ctr,aes128-ctr
[root@server vz]# ssh -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.com true
Warning: Permanently added 'server2.hostname.com' (RSA) to the list of known hosts.
[root@server vz]# echo $?
0
[root@server vz]# vzmigrate -vv -f --ssh="-i /root/.ssh/ssh-key -c aes256-ctr" --online --dry-run server2.hostname.com 9579055
1568397975: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.comtrue
1568397975: ssh -T -q -c arcfour -o StrictHostKeyChecking=no -o CheckHostIP=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=publickey,password,keyboard-interac tive -i /root/.ssh/ssh-key -c aes256-ctr server2.hostname.com /usr/sbin/vzmdest 470 -v --online '9579055:9579055'
1568397976: remote_version 470
1568397976: Connection to destination node (server2.hostname.com) is successfully established
Previous Topic: Error while starting the container - Failed to exec quotaon
Next Topic: [OpenVZ 7] KVM KSM Support?
Goto Forum:
  


Current Time: Thu Nov 14 06:12:21 GMT 2019