# Migration VMWARE \> HARVESTER

**URL:** <https://forums.suse.com/t/migration-vmware-harvester/37780>\
**Category:** SUSE Virtualization\
**Created:** [May 3, 2022, 6:08pm UTC](https://forums.suse.com/t/migration-vmware-harvester/37780 "2022-05-03T18:08:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rherrera](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rherrera](https://forums.suse.com/u/rherrera)\
**Post date:** [May 3, 2022, 6:08pm UTC](https://forums.suse.com/t/migration-vmware-harvester/37780/1 "2022-05-03T18:08:25Z")

</div>

Hello.  
Has anyone successfully migrated a VMWARE VM (VMDK) to Harvester?  
I tried to convert the VMDK to QCOW2 using QEMU, but in the harvester it doesn’t start, it’s just in the SHELL INTERATIVE.

Any idea?

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [May 3, 2022, 6:51pm UTC](https://forums.suse.com/t/migration-vmware-harvester/37780/2 "2022-05-03T18:51:45Z")

</div>

Does it work on the command line?

> qemu-img convert -f vmdk -O qcow2 image.vmdk image.qcow2

Reference: [Converting between image formats — Virtual Machine Image Guide documentation](https://docs.openstack.org/image-guide/convert-images.html)

---

<div class="post-metadata">

**Author:** ![rherrera](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@rherrera](https://forums.suse.com/u/rherrera)\
**Post date:** [May 3, 2022, 6:56pm UTC](https://forums.suse.com/t/migration-vmware-harvester/37780/3 "2022-05-03T18:56:29Z")

</div>

Yes. The conversion went perfectly, I even mounted the image by qemu itself and it worked.  
The problem is inside the combine.  
I upload the image and create the VM using the image, but when it starts it doesn’t boot.

---

<div class="post-metadata">

**Author:** ![salisburyk](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@salisburyk](https://forums.suse.com/u/salisburyk)\
**Post date:** [May 3, 2022, 7:04pm UTC](https://forums.suse.com/t/migration-vmware-harvester/37780/4 "2022-05-03T19:04:47Z")

</div>

I have not seen this, but admittedly I have not converted from vmware in a long time. I would file a formal [BUG] [here](https://github.com/harvester/harvester/issues).

---

<div class="post-metadata">

**Author:** ![rizky.md](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rizky.md/32/9035_2.png) [@rizky.md](https://forums.suse.com/u/rizky.md)\
**Post date:** [May 25, 2022, 12:40am UTC](https://forums.suse.com/t/migration-vmware-harvester/37780/5 "2022-05-25T00:40:06Z")

</div>

Hi,  
Please try convert from inside the system to qcow2 instead of converting vmdk to harvester, already test this and it’s working.

Boot system using live linux distro ( i use kubuntu)

# provide local ip address (networking)

_# apt install qemu-utils screen_

Create image from existing disk.  
Check the correct disk / image source ( in my case it’s /dev/sda )  
_# fdisk -l_  
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors  
Disk model: Virtual disk  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes  
Disklabel type: dos  
Disk identifier: 0x23e4b144

Device Boot Start End Sectors Size Id Type  
/dev/sda1 \* 2048 87889919 87887872 41.9G 83 Linux  
/dev/sda2 87891966 104855551 16963586 8.1G 5 Extended  
/dev/sda5 87891968 104855551 16963584 8.1G 82 Linux swap / Solaris

Disk /dev/loop0: 3.06 GiB, 3289141248 bytes, 6424104 sectors  
Units: sectors of 1 \* 512 = 512 bytes  
Sector size (logical/physical): 512 bytes / 512 bytes  
I/O size (minimum/optimal): 512 bytes / 512 bytes

Mount SMB server for temporary image transit  
_# mkdir /mnt/transit_  
_# mount.cifs -w //$your\_smb\_server/shares/ /mnt/transit -o user=$USERNAME,pass=$PASSWORD,file\_mode=0777,dir\_mode=0777,nobrl_  
_# screen_  
_# qemu-img convert -p -O qcow2 /dev/sda /mnt/transit/$image\_name.qcow2_

After the conversion finished, we can upload $image\_name.qcow2 to Harvester image, if the size is larger than 5GB use URL (provide web server) instead of File.

Hope this help
