[Bug] V2P live mirror: QEMU HTTPS test always fails against a standalone ESXi (no Accept-Ranges on HEAD), reason cut off in the log
Describe the bug
In live mirror, PegaProx first tests whether QEMU can open the source VMDK directly over HTTPS (qemu-img info with file.driver=https on https://<esxi>/folder/…-flat.vmdk). Against my standalone ESXi this test fails in every run, so the HTTPS boot path is never used and the migration always falls back to SSHFS. The fallback works, but the log only shows the first 200 characters of the error (ht_out[:200]), so the actual reason is cut off:
QEMU HTTPS test failed: qemu-img: Could not open 'json:{"file.driver":"https","file.url":"https://10.250.0.20/folder/debian13-101/debian13-101-flat.vmdk?dcPath=ha-datacenter&dsName=ds-lab","file.username":"root","file.passwo
Running the same command by hand on the target node gives the full reason:
CURL: Error opening file: Server does not support 'range' (byte ranges).
The ESXi datastore browser does serve byte ranges, it just doesn't announce them on HEAD, and QEMU's curl driver requires the Accept-Ranges header:
$ curl -sk --netrc-file … -I '<same URL>' | grep -i -E '^HTTP/|accept-ranges|content-length'
HTTP/2 200
content-length: 34359738368
$ curl -sk --netrc-file … -r 0-1023 -o /dev/null -w '%{http_code}\n' '<same URL>'
206
Same result with the source VM powered off and powered on, so it is not a file lock. Side note: qemu-img info returns rc 0 here, so the existing check for "virtual size" in the output is what catches it.
Steps to Reproduce
- Standalone ESXi 8.0U3g (no vCenter), Debian 13 guest.
- Migrate with transfer mode "Live Mirror".
- Log:
QEMU HTTPS test failed: …(cut off), thentrying SSHFS-backed boot. - Run the
qemu-img infofrom the log by hand on the target node → full message above.
Expected behavior
Either skip the QEMU HTTPS test when the server doesn't send Accept-Ranges on HEAD (a quick curl -I check, or skip it for standalone ESXi altogether), or at least log the full error (or the part after CURL:), so it's clear why the fallback is taken.
Environment
- PegaProx Version: 1.4.1 (build 2026.10.24)
- Installation Method: Debian package (pegaprox 1.4.1-1)
- OS: Debian 13 (trixie)
- UI? Corporate
Logs
See above.
Screenshots
n/a
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [x] I am using the latest version of PegaProx
- [x] I've put enough in here that someone can start on it without asking me three questions first
- [x] I understand PegaProx is maintained by volunteers in their free time. Nobody is on call, and writing URGENT doesn't get anyone out of bed 🪄
AI disclosure: analysis with help from Claude; reproduced by hand in my own lab.
Good find, and the cut-off explains why nobody saw the reason: qemu-img repeats the whole JSON spec first, so 200 characters never got past it. #1276 logs what comes after the spec instead, so your Server does not support 'range' line would show up. It isn't merged yet, and I only tested it on your output, not on a host.
That only fixes the log, the test still fails and the fallback still runs. Skipping the test when HEAD has no Accept-Ranges is noted for the maintainers.
Jan-Philipp