Trying to pve-zsync VMs and Containers

Discussion in 'Proxmox VE: Installation and configuration' started by Thierry PROST, Dec 7, 2018.

  1. Thierry PROST

    Thierry PROST New Member

    Joined:
    Dec 7, 2018
    Messages:
    2
    Likes Received:
    0
    Hello there!

    I'm trying to backing up my VMs, containers (linked for some) and templates from my current server which is going to be replaced by a better one.

    I had problem before trying to create a cluster and add a node (because of the hostname that are the same on the two machines) and found pve-zsync is an elegant solution for this (as well for redundant backup solution).

    The problem I face is:

    root@noxen:~# pve-zsync sync --source 100 --dest xxx.xxx.xxx.xxx:rpool --verbose
    full send of rpool/basevol-100-disk-1@rep_default_2018-12-07_14:56:41 estimated size is 1.11G
    total estimated size is 1.11G
    TIME SENT SNAPSHOT
    COMMAND:
    zfs send -v -- rpool/basevol-100-disk-1@rep_default_2018-12-07_14:56:41 | ssh -o 'BatchMode=yes' root@xxx.xxx.xxx.xxx -- zfs recv -F -- rpool/basevol-100-disk-1
    GET ERROR:
    Host key verification failed.


    Browsing few posts on forums, anything I tried was with no luck. Things I tried are:
    - pvecm updatecerts and restart pveproxy service on both servers
    - ssh -o 'HostKeyAlias=<Target node Name>' root@<Target node IP> on both servers
    - delete /root/.ssh/know_hosts on both server

    Nothing worked, still stuck with same error.

    Can you help me to sort this out ?

    Thanks anyway.
     
  2. Alwin

    Alwin Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2017
    Messages:
    1,752
    Likes Received:
    151
    Do a ssh login from both nodes to each other, there you should get the question if you want to add the host key. As pve-zsync runs over ssh, there can't be any prompts when connecting.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Thierry PROST

    Thierry PROST New Member

    Joined:
    Dec 7, 2018
    Messages:
    2
    Likes Received:
    0
    Thanks for your answer Alwin!

    I connected on both servers to each other, I had the question: ECDSA key fingerprint is SHA....
    Then ctrl+d to delog and if I try just after to use pve-zsync, I got this time:

    Permission denied (publickey,password)

    I also tried to execute zsync from new server:

    root@noxen:~# pve-zsync sync --source xxx.xxx.xxx.xxx --dest rpool --verbose
    root@xx.xx.xx.xxx's password:
    root@xxx.xx.xxx.xx's password:
    root@xx.xxx.xx.xxx's password:
    root@xxx.xxx.xx.xx's password:
    root@xx.xx.xxx.xxx's password:
    root@xxx.xx.xxx.xxx's password:
    Permission denied (publickey,password).
    root@xxx.xxx.xxx.xx's password:
    COMMAND:
    ssh -o 'BatchMode=yes' root@x.x.x.x.x -- zfs send -v -- rpool/basevol-100-disk-1@rep_default_2018-12-07_16:26:31 | zfs recv -F -- rpool/basevol-100-disk-1
    GET ERROR:
    cannot receive: failed to read from stream


    I don't know why it asks multiple time the password, which is correct. I've got no problems using regular ssh connection between both servers.

    Anything else to do pair publickey and password together and get rid of this ?

    Thanks again!
     
    #3 Thierry PROST, Dec 7, 2018
    Last edited: Dec 7, 2018
  4. Alwin

    Alwin Proxmox Staff Member
    Staff Member

    Joined:
    Aug 1, 2017
    Messages:
    1,752
    Likes Received:
    151
    As I said, there can't be any prompts. The ssh connection needs to happen with key authentication (no passphrase; try with ssh-copy-id), only when you can login without any prompts appearing, then pve-zsync will work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice