45Drives Knowledge Base
KB450414 - Migrating Virtual Machine Disks from VMware to Proxmox
https://knowledgebase.45drives.com/kb/kb450414-migrating-virtual-machine-disks-from-vmware-to-proxmox/

KB450414 - Migrating Virtual Machine Disks from VMware to Proxmox

Posted on April 5, 2021 by Mitchell Hall


Scope/Description

Prerequisites

Steps

Depending on your use case you may have a NFS datastore or a ISCSI datastore. Depending on your use case follow the steps below. If you have both then follow both set of steps.

Shutdown and Mount NFS Datastore(s) to Proxmox

mkdir /mnt/nfstemp

mount -t nfs {Server IP}:/vmware /mnt/nfstemp

Shutdown and Mount iSCSI Datastore(s) to Proxmox

apt install iscsiadm
<root@45prox:~#>iscsiadm --mode discovery -t sendtargets --portal <ip-address>
<root@45prox:~#>iscsiadm --mode node --targetname iqn.your.iscsi.iqn.number.here --portal <ip-address>:3260

By default, iSCSI uses port 3260, if your deployment uses something different, replace the port number.

This will map your iSCSI LUN to the Proxmox machine. It will map them as regular disks with sd names such as sdb, sdc, sdd etc. If there is a VMFS file system on the iSCSI LUN, it will be on a partition of this disk, Such as sdb1.

<root@45prox:~#> apt install vmfs6-tools
wget http://ftp.us.debian.org/debian/pool/main/v/vmfs6-tools/vmfs6-to ols_0.1.0-3_amd64.deb

dpkg -i vmfs6-tools_0.1.0-3_amd64.deb
<root@45prox:~#> mkdir /mnt/vmfstemp
<root@45prox:~#> lsblk
<root@45prox:~#> vmfs6-fuse /dev/sdb1/mnt/vmfstemp

Migration to Proxmox

 

 

 

 

<root@45prox:~#> cd /mnt/vmfstemp/vm1

 

With all of this information, you are now ready to run the command that will migrate the VMDK to your storage of choice.

<root@45prox:~#> qm importdisk 133 vm1-flat.vmdk rbd_hdd -format raw
<root@45prox:~#> qm importdisk 133 vm1-flat.vmdk zfs1 -format raw

Verification

Start your Windows VM, and if it is the OS disk you should see it boot into Windows, if it is a secondary disk you will want to open Disk Manager once you boot into Windows and you may have to set the disk to online and give it a disk letter.

Troubleshooting