fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


proxmox:pve:migration:pve-pve

This is an old revision of the document!


Migration from Proxmox to Proxmox

tar -cvzf /root/$(hostname)-vm-config.tar.gz -C /etc/pve/qemu-server .
scp pve-vm-config.tar.gz root@192.168.69.39:/root
mkdir /root/pve-config
tar -xvzf pve-vm-config.tar.gz -C /root/pve-config
cp -p /root/pve-config/* /etc/pve/qemu-server
ls -al /etc/pve/qemu-server/

find /etc/pve/qemu-server/ -maxdepth 1 -type f -name '*.conf' -exec sed -i 's/local-tmp1/remote-tmp1/g' {} \;
find /etc/pve/qemu-server/ -maxdepth 1 -type f -name '*.conf' -exec sed -i 's/local-tmp2/remote-tmp2/g' {} \;


https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/move_disk

check task status:

cat /var/log/pve/tasks/active

root@pve01:~# cat /var/log/pve/tasks/active
UPID:pve01:00031D9A:0061C8D0:68C05BDD:qmmove:132:root@pam: 0                          # last digit of the task's unique reference string -> "D"
UPID:pve01:00032A7E:00632EAA:68C05F71:qmmove:133:root@pam: 0
UPID:pve01:00031EB5:0061E5A8:68C05C26:qmmove:128:root@pam: 1 68C05D04 OK
UPID:pve01:0003197C:00615595:68C05AB6:qmmove:132:root@pam: 1 68C05BB0 OK

cat "/var/log/pve/tasks/D/UPID:pve01:00031D9A:0061C8D0:68C05BDD:qmmove:132:root@pam:" # /var/log/pve/tasks/D/ <- last digit of the task's unique reference string
watch -n15 cat "/var/log/pve/tasks/D/UPID:pve01:00031D9A:0061C8D0:68C05BDD:qmmove:132:root@pam:"

alternative:

pvesh get /nodes/$(hostname)/tasks -typefilter qmmove
pvesh get /nodes/$(hostname)/tasks -typefilter qmclone
pvesh get /nodes/$(hostname)/tasks/UPID:pve01:00031D9A:0061C8D0:68C05BDD:qmmove:132:root@pam:/status
pvesh delete /nodes/$(hostname)/tasks/UPID:pve01:00031D9A:0061C8D0:68C05BDD:qmmove:132:root@pam:
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
proxmox/pve/migration/pve-pve.1757447703.txt.gz · Last modified: by admin