#1 2020-09-08 07:02:44

sainka
Member
Registered: 2020-09-08
Posts: 2

Copy between 2 host

Hello

I try to copy a VM from an host to another host but I have some errors.
Lot of " Permission denied " and no files on new host.
Any idea ?

Thanxs a lot for your help

./xsibackup --backup-point=x.x.x.x:22://vmfs/volumes/5e865342-ecedb6bd-8b9f-c81f66c9272d --backup-type=custom --backup-how=cold --backup-vms="cobra" --test-mode=false --debug-info=yes --exec=yes --backup-prog=rsync
###############################################################################   
#                                                                                   
# (c) XSIBACKUP-PRO 11.2.19 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com     
#                                                                                         
###################################################################################           

NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
---------------------------------------------------------------------------------------------------------------------------
Terminated
XSIBackup PID:        131572730                                                         casper.
Mon, 07 Sep 2020 21:34:47 +0000                              IPv4: x.x.x.x/255.255.255.0
VMware ESXi 5.1.0 build-799733                              (c) Rsync 3.1.0 as opt. dependency
---------------------------------------------------------------------------------------------------------------------------
Backup Id:              unknown                       Intel(R) Xeon(R) CPU E3-1240 V2 @ 3.40GHz
---------------------------------------------------------------------------------------------------------------------------
Alert: crontab is not installed for user root
---------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
---------------------------------------------------------------------------------------------------------------------------
Backup user is: root
---------------------------------------------------------------------------------------------------------------------------
Backup program is: rsync
---------------------------------------------------------------------------------------------------------------------------
Remote OpenSSH version is:
---------------------------------------------------------------------------------------------------------------------------
Negotiated Cipher (server->client): aes128-ctr
Negotiated Cipher (client->server): aes128-ctr
---------------------------------------------------------------------------------------------------------------------------
Service OpenSSH ready at server x.x.x.x:22
---------------------------------------------------------------------------------------------------------------------------
Remote ESXi version is Permission denied (publickey,keyboard-interactive).
---------------------------------------------------------------------------------------------------------------------------
Info: XSIBACKUP-PRO will now try to determine the remote's XSIBACKUP-PRO installation point...
Tip: should this process take too long, use the --remote-xsipath argument to set it
---------------------------------------------------------------------------------------------------------------------------
Found (c) XSIBackup installation. Remote path is set dynamically
---------------------------------------------------------------------------------------------------------------------------
Remote xsi path set to: none (filesystem: unknown)
---------------------------------------------------------------------------------------------------------------------------
Mirroring to server x.x.x.x port 22
Checking Rsync exists on the other side...
---------------------------------------------------------------------------------------------------------------------------
(c)Rsync (samba.org) found at [ x.x.x.x:22:... ]
---------------------------------------------------------------------------------------------------------------------------
E-mail Warnings
---------------------------------------------------------------------------------------------------------------------------
The e-mail report will not be sent because of the followig reasons:
The --mail-from string has not been set
The --smtp-srv string has not been set
The --smtp-port string has not been set
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-
---------------------------------------------------------------------------------------------------------------------------
Getting list of all VMs...
---------------------------------------------------------------------------------------------------------------------------
3      cobra   [datastore1] cobra/cobra.vmx   debian6_64Guest   vmx-08             
---------------------------------------------------------------------------------------------------------------------------
VMs to backup:
---------------------------------------------------------------------------------------------------------------------------
3      cobra   [datastore1] cobra/cobra.vmx   debian6_64Guest   vmx-08             
---------------------------------------------------------------------------------------------------------------------------
Calculating sizes...
---------------------------------------------------------------------------------------------------------------------------
[cobra] Starting backup (size is 302201M on 1024000M file)
---------------------------------------------------------------------------------------------------------------------------
You have chosen to perform a cold backup. The VM will be switched off to perform the backup
---------------------------------------------------------------------------------------------------------------------------
VM [cobra] was already in an Off state
---------------------------------------------------------------------------------------------------------------------------
[cobra] info: boot partition is MBR
---------------------------------------------------------------------------------------------------------------------------
Removing snapshots, please wait...
---------------------------------------------------------------------------------------------------------------------------
Syncronizing config files
---------------------------------------------------------------------------------------------------------------------------
[cobra] error: cannot copy VMX file, details: Permission denied (publickey,keyboard-interactive).
---------------------------------------------------------------------------------------------------------------------------
[cobra] error: cannot copy VMSD file, details: Permission denied (publickey,keyboard-interactive).
---------------------------------------------------------------------------------------------------------------------------
[cobra] info: no .vmxf file found
---------------------------------------------------------------------------------------------------------------------------
[cobra] info: no .nvram file found
---------------------------------------------------------------------------------------------------------------------------
Backing up virtual disks...
---------------------------------------------------------------------------------------------------------------------------
DISK=/vmfs/volumes/datastore1/cobra/cobra.vmdk
DISK=/vmfs/volumes/datastore1/cobra/cobra_1.vmdk
---------------------------------------------------------------------------------------------------------------------------
Rsync file transfer (1st)
---------------------------------------------------------------------------------------------------------------------------
From: /vmfs/volumes/datastore1/cobra/cobra.vmdk
To: //vmfs/volumes/5e865342-ecedb6bd-8b9f-c81f66c9272d/cobra/cobra.vmdk
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
[cobra] error CLRSYNC4: Permission denied (publickey,keyboard-interactive).rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
---------------------------------------------------------------------------------------------------------------------------
Removing unused blocks, please wait...
vmfsDisk: 1, rdmDisk: 0, blockSize: 1048576
Hole Punching: 100% done.
Info: transfering file | /vmfs/volumes/datastore1/cobra/cobra-flat.vmdk
---------------------------------------------------------------------------------------------------------------------------
Info: first Rsync transfer is assumed by XSIDiff, as it is faster and will preserve VMFS data sparseness
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
[cobra] CLXSIDF1 error: file transfer error: Permission denied (publickey,keyboard-interactive).
---------------------------------------------------------------------------------------------------------------------------
Rsync file transfer (1st)
---------------------------------------------------------------------------------------------------------------------------
From: /vmfs/volumes/datastore1/cobra/cobra_1.vmdk
To: //vmfs/volumes/5e865342-ecedb6bd-8b9f-c81f66c9272d/cobra/cobra_1.vmdk
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
[cobra] error CLRSYNC4: Permission denied (publickey,keyboard-interactive).rsync: connection unexpectedly closed (0 bytes received so far) [sender]rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
---------------------------------------------------------------------------------------------------------------------------
Removing unused blocks, please wait...
vmfsDisk: 1, rdmDisk: 0, blockSize: 1048576
Hole Punching: 100% done.
Info: transfering file | /vmfs/volumes/datastore1/cobra/cobra_1-flat.vmdk
---------------------------------------------------------------------------------------------------------------------------
Info: first Rsync transfer is assumed by XSIDiff, as it is faster and will preserve VMFS data sparseness
---------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------
[cobra] CLXSIDF1 error: file transfer error: Permission denied (publickey,keyboard-interactive).
---------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------
Adding debug information to the report
Errors detected in backup, check logs
---------------------------------------------------------------------------------------------------------------------------
Backup finished
Tip: no chained backups scheduled, set --on-success and/or --on-error arguments to chain a backup
---------------------------------------------------------------------------------------------------------------------------
Killed

--------------------------------------------------------------------------------------------------------------------------------

Offline

#2 2020-09-08 08:09:07

admin
Administrator
Registered: 2017-04-21
Posts: 1,364

Re: Copy between 2 host

You can't just copy data from one server to another, you need to be athenticated.
To do so, link both servers by means of the --link-srv argument.

./xsibackup --link-srv=1.2.3.4:22

Or using the GUI: https://33hops.com/xsibackup-pro-gui-manual_1.html#2

You also have an spurious unneded slash in your job.

Offline

#3 2020-09-08 10:01:53

sainka
Member
Registered: 2020-09-08
Posts: 2

Re: Copy between 2 host

I have already made the link with the remote server.
Ok for the double / in the job, I will correct it

Thank you

Offline

#4 2020-09-09 08:27:42

admin
Administrator
Registered: 2017-04-21
Posts: 1,364

Re: Copy between 2 host

OpenSSH is throwing a clear error: Permission denied (publickey,keyboard-interactive)
You may believe to have linked both servers but you have not.

Now the next questions are:

- What is the other host?: OS, version...
- Is the other OpenSSH version compatible in KEX and cipher algorithms?.

Your ESXi system is 5.1, if the remote counterpart is too distant in main version number you would need to analyze what ciphers and KEX algorithms are in use in every system, just to determine whether setting some value manually can overcome your issue.

Make sure the xsibackup_id_rsa key is present at the remote server's authorized_keys file and run the below command from the (c)XSIBackup-Pro installation root.

ssh -vvv -i xsibackup_id_rsa root@x.x.x.x "echo HI"

It will show a verbose log that you can use to determine what the issue is.

(c)XSIBackup-Pro uses SSH to transfer data, it is as compatible for remote transfers as your systems at play are. If you get into complicated situations that require analyzing the SSH conversation and finding workarounds you depend on your own knowledge of general purpose Linux tools such as OpenSSH.

If you are trying to copy data from ESXi 5.1 to some new Linux distro or ESXi version, you will be hitting some cipher incompatibility issue. The easiest way to workaround the issue is to use some older Linux or ESXi version as the target that is indeed compatible with your current set of cipehrs and KEX. Or even easier, use some shared datastore that you can mount on both ESXi/ Linux hosts via NFS3.

Should you need some additional help, we can provide it as an additional consultancy service.

Offline

Board footer