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

[Bug] ESXi to Proxmox migration fails

Open sm100327 opened this issue 8 months ago • 53 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

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

  1. Use "Migrate to Proxmox"
  2. Select (proxmox) target cluster, node and storage
  3. put ESXi root pwd
  4. Select target bridge
  5. We tested all 3 modes of migration,
  6. 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

sm100327 avatar Mar 24 '26 14:03 sm100327

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

MrMasterbay avatar Mar 24 '26 19:03 MrMasterbay

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

sm100327 avatar Mar 25 '26 11:03 sm100327

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

MrMasterbay avatar Mar 25 '26 18:03 MrMasterbay

Hi @sm100327 ,

just wanted to check it out? Regards, Nico

MrMasterbay avatar Mar 27 '26 07:03 MrMasterbay

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

sm100327 avatar Mar 27 '26 10:03 sm100327

small addition, the "_" is not in the datastore we tested the VM on, but in another datastore

sm100327 avatar Mar 27 '26 10:03 sm100327

Hi thanks for letting know. We well look into it.

MrMasterbay avatar Mar 27 '26 14:03 MrMasterbay

If i can do anyhthing, help somewhere, test something - let me know, we are happy to help

sm100327 avatar Mar 27 '26 15:03 sm100327

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

larryd-ops avatar Mar 30 '26 14:03 larryd-ops

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 [12:51:54] URL: .../fcv016/fcv016-flat.vmdk?dsName=ds_fc2 [12:51:55] Establishing ESXi session... [12:51:55] Testing 1MB download... [12:51:55] Test result: HTTP=206 DL=1048576 FSIZE=1048576 [12:51:56] HTTPS test OK (1048576B) - full download 70.0 GB...

jaapvliere avatar Mar 31 '26 11:03 jaapvliere

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.

larryd-ops avatar Apr 01 '26 16:04 larryd-ops

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

EricstarLee avatar Apr 02 '26 04:04 EricstarLee

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 [10:31:56] URL: .../Test-W2025/Test-W2025-flat.vmdk?dsName=STORAGE2 [10:31:56] Establishing ESXi session... [10:31:56] Testing 1MB download... [10:31:57] Test result: HTTP=206 DL=1048576 FSIZE=1048576 [10:31:57] HTTPS test OK (1048576B) - full download 50.0 GB... [10:38:00] HTTPS: RC=23/1 dd: error writing '400 too many arguments'$'\n''pvesm path ': No space left on device 0+994360 records in 0+994359 records out 15444180992 bytes (15 GB, 14 GiB) copied, 362.841 s, 42.6 MB/s

larryd-ops avatar Apr 02 '26 15:04 larryd-ops

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

MrMasterbay avatar Apr 02 '26 15:04 MrMasterbay

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: @.***>

larryd-ops avatar Apr 02 '26 16:04 larryd-ops

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 [10:58:03] URL: .../Test-W2025/Test-W2025-flat.vmdk?dsName=STORAGE2 [10:58:03] Establishing ESXi session... [10:58:03] Testing 1MB download... [10:58:03] Test result: HTTP=206 DL=1048576 FSIZE=1048576 [10:58:04] HTTPS test OK (1048576B) - full download 50.0 GB... [11:04:31] HTTPS: RC=23/1 dd: error writing '400 too many arguments'$'\n''pvesm path ': No space left on device 0+1009889 records in 0+1009888 records out 15586734080 bytes (16 GB, 15 GiB) copied, 387.182 s, 40.3 MB/s [11:04:31] HTTPS incomplete: 14.52 GB [11:04:31] SSH dd pipe (50.0 GB)... [11:10:03] SSH: PIPE=141/1 dd: error writing '400 too many arguments'$'\n''pvesm path ': No space left on device 0+896491 records in 0+896490 records out 15586410496 bytes (16 GB, 15 GiB) copied, 330.621 s, 47.1 MB/s [11:10:03] SSH: only 14.52 GB (VMDK locked?) [11:10:03] SSHFS dd from /tmp/v2p-1ddbb70e/Test-W2025/Test-W2025-flat.vmdk... [11:16:17] SSHFS: dd: error writing '400 too many arguments'$'\n''pvesm path ': No space left on device 3727+0 records in 3726+0 records out 15627976704 bytes (16 GB, 15 GiB) copied, 373.979 s, 41.8 MB/s [11:16:18] ALL methods failed (15627976704 of 53687091200 bytes) [11:16:18] Hint: VMDK locked by running VM. The ESXi HTTPS /folder endpoint should [11:16:18] serve files even while locked - check verbose curl output above for details. [11:16:18] FAILED: Disk copy failed for Test-W2025.vmdk [11:16:18] Phase: failed

larryd-ops avatar Apr 02 '26 16:04 larryd-ops

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.

larryd-ops avatar Apr 02 '26 21:04 larryd-ops

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.

larryd-ops avatar Apr 03 '26 15:04 larryd-ops

ESX Migration from ESX to Proxmox still failing to successfully complete.

  1. Migration starts successfully.
  2. VM is created on Proxmox with two hard drives. One in qcow2 for mat and another of similar size in RAW format.
  3. Once the migration completes, neither of the migrated drives are attached to the VM in proxmox.
  4. 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.
  5. I boot the VM and got the message "Guest has not initialized display (yet)." Had to change the BIOS type to SeaBIOS.
  6. Got no bootable drive available message.

Migration did not work.

larryd-ops avatar Apr 06 '26 20:04 larryd-ops

Is ESX to PVE migration not an area of focus?

larryd-ops avatar Apr 10 '26 16:04 larryd-ops