MathiasDeHerdt / vRidance

12 stars 0 forks source link

The tools doesn't convert the vmdk to qcow2/raw disk in Proxmox. #1

Open gilbertoferreira opened 2 years ago

gilbertoferreira commented 2 years ago

Hi there

Tried to used this tool, which I think is very promissor, but after copy the vmdk to Proxmox, the tool create the VM but do not import the disk. So I needed to use qm importdisk VMID STORAGE Perhaps cz I am using Proxmox 7.2-3 Hope this issue could fix. (I will be happy to test!) Thanks

WardVandale commented 2 years ago

Hi! I've tested the code again with a new Proxmox environment, set up like the documentation provided. For me this code still works. If you go to Migrate2Prox.xaml.cs on line 390 and line 430, you'll see that these exact commands are being used.

I think my Proxmox VE is set up differently as yours. You can change the source code to test this 😃.

gilbertoferreira commented 2 years ago

No luck. image

gilbertoferreira commented 2 years ago

I tried again but now with the Linux VM created before. I removed the previously virtual hard drive. Then the vRidance started the VM without any disk!

image

WardVandale commented 2 years ago

Do you have the volume VM-Data created?

WardVandale commented 2 years ago

The code is trying to import the disk into the VM-Data volume, which is probably not working because of this reason (i think)

gilbertoferreira commented 2 years ago

Oh do I need to create a prefixed volume or storage path? Why does not scan what storage already has in Proxmox and make use of it?

WardVandale commented 2 years ago

It does indeed. At the time we didn’t think of it. It was a school project. Thinking of it now, I would have done it a lot differently

WardVandale commented 2 years ago

@gilbertoferreira Have you tried the solution? If you don't want to add a volume, you can alway change the code :)

gilbertoferreira commented 2 years ago

@gilbertoferreira Have you tried the solution?

I don't have enough time for this right now. Eventualy I will

If you don't want to add a volume, you can alway change the code :)

I will try it

yangsm88888 commented 2 years ago

If I modify the source code, how to compile exe file, easy to write the compilation process? thank you