project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] Near Zero Downtime migration fails – “Disk copy to local storage failed” (ESXi source)

Open fonsyes opened this issue 7 months ago • 1 comments

Hey there! 👋 Thanks for taking the time to report this bug — we appreciate it!

Please keep in mind: PegaProx is developed and maintained entirely by volunteers in our free time. We do our best, but we can't work magic 🪄 — please be patient, we'll get to your issue as soon as we can.

Want to help keep PegaProx alive?

  • ⭐ Star the project — it's free and helps a lot!
  • 💖 Become a Sponsor — helps us dedicate more time to development
  • 🤝 Contributing code or docs is always welcome too!

Describe the bug

Subject: Near Zero Downtime migration fails – “Disk copy to local storage failed” (ESXi source) Hello, I am experiencing consistent failures when attempting to migrate a VM using the Near Zero Downtime (NZD) mode from VMware ESXi to Proxmox. Environment Source: VMware ESXi Destination: Proxmox VE (Proxmox 9 / Debian Trixie) Migration tool: PegaProx Storage target: NFS (also tested with other storage types) Network connectivity: Verified OK (ping, SSH, ports 22/443 reachable) Problem Description When running NZD migration, the process fails with: FAILED: Disk copy to local storage failed Detailed Logs Testing QEMU SSH connectivity to ESXi... QEMU SSH driver test failed: qemu-img: Could not open 'json:{"file.driver":"ssh",...}

libssh cannot connect - trying HTTPS-backed boot... QEMU HTTPS test failed: qemu-img: Could not open 'json:{"file.driver":"https",...}

libssh cannot connect - trying SSHFS-backed boot... SSHFS QEMU test failed

SSHFS direct failed - trying NBD bridge... qemu-nbd not available

No remote boot method available (QEMU-SSH/SSHFS/NBD all failed)

Switching to offline mode: copy first, then start VM

=== DISK COPY: SSH → NFSVMs === Copy failed! Disk copy failed FAILED: Disk copy to local storage failed Troubleshooting Performed SSH connectivity to ESXi works correctly (manual login tested) Network connectivity is fully operational (ping, ports, throughput) ESXi credentials verified and password simplified (removed special characters) HTTPS access to datastore tested qemu-nbd is present on the system: /usr/bin/qemu-nbd PATH is correct: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin Migration in cold mode works successfully Issue only occurs when using Near Zero Downtime mode Observed Behavior All remote access methods (QEMU SSH, HTTPS, SSHFS) fail Tool reports qemu-nbd not available, although it exists and is executable Fallback to offline copy also fails The process never successfully accesses the VMDK remotely Expected Behavior At least one remote access method (SSH, HTTPS, SSHFS, or NBD) should succeed If qemu-nbd is available, it should be used as a fallback NZD migration should proceed or fail with a more specific root cause Request Could you please help clarify: Why qemu-nbd is reported as unavailable despite being present and in PATH? Whether ESXi VMDK access via SSH/HTTPS is officially supported in NZD mode If there are known limitations with ESXi as a source for NZD migrations Recommended configuration or workaround to enable NZD in this scenario Additional Notes Given that cold migration works, this appears to be specifically related to how PegaProx handles live disk access (QEMU backends) against ESXi. Thank you for your support.

Steps to Reproduce

Expected behavior

Environment

  • PegaProx Version: 0.9.6
  • Installation Method:
  • OS: Windowa 11
  • Browser: Microsoft Edge 1470
  • Behind Reverse Proxy? No proxy
  • UI?

Logs

[18:23:17] QEMU SSH driver test failed: qemu-img: Could not open 'json:{"file.driver":"ssh","file.host":"192.168.86.201","file.port":22,"file.path":"/vmfs/volumes/NVMe01/Win11-Converter/Win11-Converter-flat.vmdk","file.user":"root","file.ho
[18:23:18] libssh cannot connect - trying HTTPS-backed boot (ESXi datastore)...
[18:23:18] QEMU HTTPS test failed: qemu-img: Could not open 'json:{"file.driver":"https","file.url":"https://root:%2A31demayO%[email protected]/folder/Win11-Converter/Win11-Converter-flat.vmdk?dcPath=ha-datacenter&dsName=NVMe01","file.
[18:23:18] libssh cannot connect - trying SSHFS-backed boot (OpenSSH)...
[18:23:18] SSHFS disk 0: /tmp/v2p-57ccc04c/Win11-Converter/Win11-Converter-flat.vmdk (8.0 GB)
[18:23:19] SSHFS QEMU test failed:
[18:23:19] SSHFS direct failed - trying NBD bridge...
[18:23:19] qemu-nbd not available
[18:23:19] No remote boot method available (QEMU-SSH/SSHFS/NBD all failed)
[18:23:19] Switching to offline mode: copy first, then start VM
[18:23:19] === DISK COPY: SSH → NFSVMs ===
[18:23:19] (Copying disks, VM will start after copy completes)
[18:23:19] Transfer: bs=64MB, compress=gzip, nc=yes
[18:23:19] Copying disk 0 (8.0 GB) → Formatting '/mnt/pve/NFSVMs/images/108/vm-108-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=8589934592 lazy_refcounts=off refcount_bits=16
[18:23:19] SSH+compress × 8
[18:23:19] Copy failed!
[18:23:19] Disk copy failed
[18:23:19] FAILED: Disk copy to local storage failed
[18:23:19] Phase: failed

Screenshots

Image

Checklist

  • [ ] I have searched existing issues to make sure this is not a duplicate. No sorry!!!
  • [ ] I am using the latest version of PegaProx Yes

fonsyes avatar Apr 14 '26 18:04 fonsyes

Ok thank you so much!!! You are great . I,m very excited with this great project

Congratulations my friends

In a few versions, you will have the best Proxmox management software, and perhaps even the best in the world.”

fonsyes avatar Apr 14 '26 22:04 fonsyes