[Bug] ESXi to Proxmox migration fails
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
Again, not really a bug, more a question whether we are doing everything right.
We have a Proxmox Cluster running Proxmox 9.1.4 and connectivity to a ESX host running 8.0.3, the main storage is VSAN but we tested the VM running and shutdown on VSAN and on local storage on the ESX, both times it fails with $log_output_below
Based on the error message we expected some kind of field to select the source storage, but there isn't one
Steps to Reproduce
- Use "Migrate to Proxmox"
- Select (proxmox) target cluster, node and storage
- put ESXi root pwd
- Select target bridge
- We tested all 3 modes of migration,
- all fail with the error below
Expected behavior
Machine should be copied to Proxmox
Environment
- PegaProx Version: 0.9.3
- VMWare Version: 8.0.3
- **Installation Method: deploy.sh **
- **OS: Debian 13 **
- **Browser: Firefox 148 and Chrome 146 on Linux **
- **Behind Reverse Proxy? Yes, traefik **
- UI? Tested Both
Logs
[14:11:14] Phase: planning
[14:11:14] Planning migration of 'Vsan-cluster-test-vm-56' from XXXXX
[14:11:14] VM has 1 disk(s), 16.0 GB total
[14:11:14] Testing SSH to XXXXXX
[14:11:15] SSH OK: XXXXX
[14:11:15] Auto-detecting datastore...
[14:12:15] FAILED: Could not determine ESXi datastore. Please specify it manually.
[14:12:15] Phase: failed
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
Hi @sm100327 ,
Hm I see. Does your Datastore has special characters in there? It could be that pegaprox is confused about certain special chars and is then not finding the datastore.
Regards, Nico
Hi
i checked, [a-zA-Z0-9-] thats it, we retried the migration (offline) and i can not see any log output Do you have a hint where to check/look ?
Cheers Soeren
Do you have by any chance a underscore _ in there? That there is also 0 log output is quite concerning. Is SSH enabled on both sides?
Regards
Hi @sm100327 ,
just wanted to check it out? Regards, Nico
Hi, sorry, very busy.
Yes, there are "_" unterscores in the datastore names on VMWare side.
The logoutput is not 0, it just does not say anything about the failure
small addition, the "_" is not in the datastore we tested the VM on, but in another datastore
Hi thanks for letting know. We well look into it.
If i can do anyhthing, help somewhere, test something - let me know, we are happy to help
Have the exact same issue. ESX datastore name in VMS.
[19:15:27] Phase: planning [19:15:27] Planning migration of 'W25' from 192.168.10.50 [19:15:27] VM has 1 disk(s), 40.0 GB total [19:15:27] Testing SSH to 192.168.10.50... [19:15:29] SSH OK: Unknown command: `hostname' [19:15:29] Auto-detecting datastore... [19:15:31] FAILED: Could not determine ESXi datastore. Please specify it manually. [19:15:31] Phase: failed
I've also a problem with migrating from VMware to Proxmox. The new VM is placed on local root-volume (homedir of the root-user) of the Proxmox node, which in most cases is too small. The result is that the Proxmox-nodes crashes The error is: "400 too many arguments...."
[12:51:42] Creating VM 107: fcv016, 16384MB RAM, 2 cores, win11, disk=scsi, net=e1000e
[12:51:44] VM shell created
[12:51:44] Phase: pre_sync
[12:51:44] === PRE-SYNC: VM continues running on VMware ===
[12:51:44] Mounting ESXi datastore via SSHFS...
[12:51:46] SSHFS mounted: /tmp/v2p-f2201a24
[12:51:46] VMDK files via SSHFS: 3
[12:51:46] === TRANSFER MODE: Offline Copy ===
[12:51:46] Stopping VM first, then full disk copy via SSH
[12:51:46] VMware VM already off
[12:51:46] Copying disk 0: fcv016.vmdk (70.0 GB)
[12:51:46] Source: fcv016-flat.vmdk (70.0 GB)
[12:51:47] Datastore: ds_fc2
[12:51:54] Allocated: Formatting '/mnt/pve/ds_pxm02/images/107/vm-107-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=75161927680 lazy_refcounts=off refcount_bits=16
[12:51:54] Target: 400 too many arguments pvesm path
This is probably a stupid question, but I am a Linux novice and new to Pegaprox. How do I replace the updated files in PegaProx? I have tried to WinSCP in to the server and upload but get a permissions error that I cannot over write the files. Thank you for any help.
Hi, I’m experiencing the same issue, although my log looks slightly different.
[12:14:34] Phase: planning
[12:14:34] Planning migration of 'TestAD' from <ESXI_HOST_IP>
[12:14:34] VM has 1 disk(s), 90.0 GB total
[12:14:34] Testing SSH to <ESXI_HOST_IP>...
[12:14:34] SSH OK: <ESXI_HOSTNAME>
[12:14:34] Datastore from VM config: <DATASTORE_NAME>
[12:14:34] VM files found at /vmfs/volumes/<DATASTORE_NAME>/TestAD
[12:14:35] Found 1 descriptor file(s): ['TestAD.vmdk']
[12:14:35] Verifying sshfs on Proxmox node <PVE_NODE>...
[12:14:35] sshfs OK
[12:14:35] Allocated Proxmox VMID: 104
[12:14:35] VMware hardware: firmware=efi, scsi=vim.vm.device.VirtualLsiLogicSASController, nic=vim.vm.device.VirtualE1000e, bus=scsi
[12:14:35] Proxmox config: bios=ovmf, machine=q35, scsihw=lsi, disk=scsi, net=e1000e
[12:14:35] Creating VM 104: TestAD, 8192MB RAM, 4 cores, win10, disk=scsi, net=e1000e
[12:14:38] VM shell created
[12:14:38] Phase: pre_sync
[12:14:38] === PRE-SYNC: VM continues running on VMware ===
[12:14:38] Mounting ESXi datastore via SSHFS...
[12:14:39] FAILED: SSHFS mount failed: root@<ESXI_HOST_IP>:/vmfs/volumes/<DATASTORE_NAME>: Not a directory
[12:14:39] Phase: failed
From my testing, I suspect the datastore path under /vmfs/volumes/ is a symlink on ESXi. If so, sshfs may not be able to mount the datastore alias directly.
Could this be because PegaProx is trying to mount the datastore name path instead of resolving it to the actual UUID path first? It might need to resolve the symlink target under /vmfs/volumes/ before attempting the SSHFS mount.
My environment:
- VMware ESXi 7.0.3 (build 24784741)
- ESXi datastore: NFS or iSCSI
- PVE: 9.1.4
- PegaProx: Beta 0.9.4
I was able to get the referenced files above updated. Still getting this error. I did notice that If I am connected to the vCenter server that is when I get the error. If I connect directly to an ESXi host in the cluster I do NOT get the error, but the migration wants to use the local storage of the PVE server and runs the disk out of space. The file updates to not seem to have resolved the issue.
The "pre-sync" seems to be the process that is using the PVE local storage.
[10:31:46] === PRE-SYNC: VM continues running on VMware ===
[10:31:46] Mounting ESXi datastore via SSHFS...
[10:31:47] SSHFS mounted: /tmp/v2p-866ffb04
[10:31:48] VMDK files via SSHFS: 2
[10:31:48] === TRANSFER MODE: Auto (pre-sync + delta) ===
[10:31:48] Creating VMware snapshot for safe pre-sync copy...
[10:31:48] Migration snapshot created - base VMDKs are now read-only
[10:31:48] Pre-sync disk 0: Test-W2025.vmdk (50.0 GB)
[10:31:48] Source: Test-W2025-flat.vmdk (50.0 GB)
[10:31:49] Datastore: STORAGE2
[10:31:56] Allocated: Formatting '/mnt/pve/nfs-storage/images/101/vm-101-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=53687091200 lazy_refcounts=off refcount_bits=16
[10:31:56] Target: 400 too many arguments pvesm path
Hi there ,
please note that we didn't publish so far an update for that out. Please be patiented while we investigate here.
PS: Please note that VCenter is not quite supported. Thats the reason why we state it everywere with esxi.
Thank you. Regards
Oh. Ok. Sorry. SincerelyLarry K. DeederOn Apr 2, 2026, at 10:54 AM, Nico Schmidt @.***> wrote:MrMasterbay left a comment (PegaProx/project-pegaprox#222) Hi there , please note that we didn't publish so far an update for that out. Please be patiented while we investigate here. Thank you. Regards
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
More info. When I change the migration type from: AUTO to Offline Copy (and I ensured the VM was off) I get this error:
This option did NOT use the PVE local storage and run the server out of disk space, but still failed.
[10:57:56] Datastore: STORAGE2
[10:58:03] Allocated: Formatting '/mnt/pve/nfs-storage/images/101/vm-101-disk-0.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=53687091200 lazy_refcounts=off refcount_bits=16
[10:58:03] Target: 400 too many arguments pvesm path
Storage issues after new release when using Auto or Offline transfer modes:
[16:08:59] Planning migration of 'Test-W2025' from 192.168.10.51 [16:08:59] VM has 1 disk(s), 50.0 GB total [16:08:59] Testing SSH to 192.168.10.51... [16:08:59] SSH OK: esx1.itcehs.com [16:08:59] Datastore from VM config: STORAGE2 [16:09:00] VM files found at /vmfs/volumes/STORAGE2/Test-W2025 [16:09:00] Found 1 descriptor file(s): ['Test-W2025.vmdk'] [16:09:00] Verifying sshfs on Proxmox node pve-1... [16:09:00] sshfs OK [16:09:01] Allocated Proxmox VMID: 102 [16:09:01] VMware hardware: firmware=efi, scsi=vim.vm.device.ParaVirtualSCSIController, nic=vim.vm.device.VirtualVmxnet3, bus=scsi [16:09:01] Proxmox config: bios=ovmf, machine=q35, scsihw=pvscsi, disk=scsi, net=vmxnet3 [16:09:01] Creating VM 102: Test-W2025, 4096MB RAM, 2 cores, win11, disk=scsi, net=vmxnet3 [16:09:03] VM shell created [16:09:03] Phase: pre_sync [16:09:03] === PRE-SYNC: VM continues running on VMware === [16:09:03] Mounting ESXi datastore via SSHFS... [16:09:04] TMPDIR for subprocesses: /var/tmp [16:09:05] FAILED: SSHFS mount failed: [email protected]:/vmfs/volumes/STORAGE2: Not a directory [16:09:05] Phase: failed
This is most likely the issue: SSHFS Mount Failure: ESXi VMFS Volume Not a Directory This is a classic ESXi + SSHFS compatibility issue. VMFS datastores on ESXi appear as symlinks, not real directories, so SSHFS fails to mount them directly.
SSHFS follows the real path, not the symlink, which can cause the "Not a directory" error.
Just an FYI message to the developers. This is a fantastic product that I would purchase in the future when it matures. Especially for the ESX to Proxmox migration tools. Since the acquisition of VMware by Broadcom, I have done about 20 migrations, and have hundreds more to do. I know so many companies that are transitioning away from VMware because of the massive price increase. It's a pain doing migrations manually, and this product has been released at the perfect time, when the migration works. Just need to get that migration working and stable. There is a huge market for Pegaprox.
ESX Migration from ESX to Proxmox still failing to successfully complete.
- Migration starts successfully.
- VM is created on Proxmox with two hard drives. One in qcow2 for mat and another of similar size in RAW format.
- Once the migration completes, neither of the migrated drives are attached to the VM in proxmox.
- I manually run the command qm rescan on the Proxmox server for the drive appear as an unused disk under the VM in PVE. I then edit the disk to attach to the VMwareSCSI controller.
- I boot the VM and got the message "Guest has not initialized display (yet)." Had to change the BIOS type to SeaBIOS.
- Got no bootable drive available message.
Migration did not work.
Is ESX to PVE migration not an area of focus?