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

[Bug] esxi to proxmox migration - follow on to bug id #654

Open miketate1985 opened this issue 3 months ago • 6 comments

Hello - i've been on leave for the last week and returned today to pick this up again. I've just re-deployed the latest version from the test branch but still getting immediate failures - i've pasted the response header from migrate below

response header for /migrate below

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

Follow on from 654 - still getting instant failures when attempting to start a Live Clone from esxi to proxmox.

Steps to Reproduce

Expected behavior

Environment

  • PegaProx Version:
  • Installation Method:
  • OS:
  • Browser:
  • Behind Reverse Proxy?
  • UI?

Logs

"message": "Migration started for SQLDEV", "migration_id": "c48d6762", "task": { "awaiting_confirmation": false, "completed_at": null, "config": { "esxi_datastore": "", "esxi_host": "", "network_bridge": "vmbr0", "remove_source": false, "start_after": true }, "disk_progress": {}, "error": null, "id": "c48d6762", "log": [ "[11:27:56] Phase: planning", "[11:27:56] Planning migration of 'SQLDEV' from vc.." ], "phase": "planning", "phase_times": { "planning": { "duration": null, "end": null, "start": "2026-08-17T11:27:56.903358" } }, "progress": 0, "proxmox_vmid": null, "started_at": "2026-08-17T11:27:56.903202", "status": "running", "target_cluster": "aec92d09", "target_node": "vmpg01", "target_storage": "ProxTest1", "total_downtime_seconds": null, "vm_id": "vm-598388", "vm_name": "SQLDEV", "vmware_id": "66631dcf", "wait_for_confirmation": true } }

Screenshots

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

miketate1985 avatar Aug 17 '26 11:08 miketate1985

VM 'SQLDEV' → VMID None — No VMDK descriptor files found in /vmfs/volumes/SQLOFFLINE_NVME/SQLDEV [aec92d09] - just located this in the events

miketate1985 avatar Aug 17 '26 12:08 miketate1985

Thanks for picking this back up. To chase the instant failure I need the actual error rather than the accept response — the migration is accepted (Migration started) and then dies a moment later, so the reason lands in the backend log, not in that header.

Could you grab:

  1. The PegaProx backend log lines around the failed migration — journalctl -u pegaprox -n 200 (or your app log). That's where the real error is.
  2. The PegaProx version / build (Settings → About).
  3. Confirmation on the source side: is the ESXi host reachable over SSH from the PegaProx box (the Live Clone path needs SSH on the ESXi host), and is this specifically a Live Clone vs a cold migration?

The /migrate body you pasted only confirms it was accepted; the failure detail shows up in the task log right after. With those logs I can trace exactly where it dies. Since this continues #654, I'm flagging it for a closer look on our side too.

mkellermann97 avatar Aug 17 '26 13:08 mkellermann97

Event Log in pegaprox for the migration

[07:40:19] Phase: planning [07:40:19] Planning migration of 'SQLDEV' from vc.domain [07:40:19] VM has 3 disk(s), 130.0 GB total [07:40:19] Testing SSH to vc..... [07:40:21] SSH OK: Unknown command: `hostname' [07:40:22] Tools available: qemu-img, qemu-nbd, sshfs [07:40:22] Tools missing: sshpass (install for more transfer methods) [07:40:22] Datastore from VM config: SQLOFFLINE_NVME [07:40:24] VM files found at /vmfs/volumes/SQLOFFLINE_NVME/SQLDEV [07:40:25] Found 0 descriptor file(s): [] [07:40:25] FAILED: No VMDK descriptor files found in /vmfs/volumes/SQLOFFLINE_NVME/SQLDEV [07:40:25] Phase: failed

Journalctl output from same time; Aug 18 07:40:21 PegaProx pegaprox[4234]: [2026-08-18 07:40:21,594] [PegaProx_Graphics] INFO: [NodeIP] vmpg01 -> 192.168.74.91 (cluster/status, reachable on :22)

Only this line entry

PegaProx 1.0.2 - Build: 2026.08.17

Image - ssh connected to host

I've tried both live migration, and offline and all come back with the VMDK descriptor error. I've also tried various different VM's

miketate1985 avatar Aug 18 '26 07:08 miketate1985

That log nails it, cheers — and sorry for the slow turn on the follow-up.

The tell is these two lines:

SSH OK: Unknown command: `hostname'
...
Found 0 descriptor file(s): []

hostname coming back as Unknown command means the SSH session didn't land on an ESXi host — that shell is vc.norse.local, i.e. your management appliance, not the host itself. A management appliance doesn't have the datastores mounted under /vmfs/volumes, so SQLOFFLINE_NVME/SQLDEV has no .vmdk descriptors to read, and you get the 0-files failure.

The Live Clone copies the disks over SSH straight off the host, so the source/SSH target has to be the ESXi host that actually owns SQLOFFLINE_NVME, not the management box. Find the host SQLDEV is running on, enable SSH on it, and point the migration's source at that host (the appliance is fine for inventory, but the disk copy needs the host).

One more thing from your log: Tools missing: sshpass. That's not what's failing here, but it does gate the password-auth transfer methods, so grab it too — apt install sshpass on the PegaProx box (key-based SSH still works without it).

Give that a go — if it still trips after pointing at the host, drop the same event-log block and I'll dig deeper.

mkellermann97 avatar Aug 18 '26 09:08 mkellermann97

That's it - thank you - no more errors. I'll give some bits a test now and see how i get on with a migration

miketate1985 avatar Aug 18 '26 15:08 miketate1985

Great — glad that cleared the errors. The appliance is fine for inventory, just keep the migration's source pointed at the actual ESXi host and the disk copy has what it needs. I'll leave this open while you run a full migration end to end; if anything trips, paste the event-log block and I'll dig in, otherwise feel free to close it once it's through.

mkellermann97 avatar Aug 19 '26 07:08 mkellermann97