Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

Errors "kex protocol error: type 7 seq nnnnnn" when copying VM guest files from one host to another using SHELL and "scp"

$
0
0

Hello,

 

I need to copy one VM guest from one VM host to another (EDIT: the VM guest is shut down and VM Host in Maintenance mode), because the first ran out of space and I have no option to add/attach any temporary disks.

I have a failed backup and VM host is not part of my vCentre, so I cannot clone it using vSphere.

 

I enabled SSH and used "scp". One of the image files is 400GB. When I run the scp command I get at least one warning:

kex protocol error: type 7 seq 1996384

 

The copy process seems to continue, when it finishes the files seems complete in size, the exit code is 0 in the Linux shell, which would imply everything is ok.

After I copied all files across I booted the VM guest (it's a Red Hat Linux). I had to run the "consolidation" process to clean up some old snapshots. The server seems to be healthy apart from one database showing some sort of corruption, so I am not sure if this is related to the error I get when using SCP.

 

I tried using other tools like WINSCP, it also creashes. Not sure if this is a network/speed issue, or something else.

 

Some people suggest this fix:

https://blog.mypapit.net/2018/01/solving-kex-protocol-error-type-7-error-scp-ssh.html

 

However when I change this setting in /etc/ssh/sshd_config and restart the services I cannot use scp:

[root@ACCORDRUSH:/vmfs/volumes/5c9a02ec-e7ec4c30-4547-9457a55267ec/accorddr] scp accorddr_0-flat.vmdk root@172.18.201.105:/vmfs/volumes/Datastore1/dummy-test

ssh_exchange_identification: Connection closed by remote host

lost connection

 

In fact it completely prevents from from connecting.

 

Also some people suggest WGET, which seems to be on the VM host, but cannot find the correct syntax to try it.

 

Does anyone have any suggestions?

 

My Vm version is 6.5.

 

Thanks,

Richard


Viewing all articles
Browse latest Browse all 178257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>