[SOLVED] Move image with FTP

GTM

New Member
Jan 9, 2023
3
1
3
Hi,
I have a large VHDx machine that I want to move to proxmox, I converted the file and it has about 250GB. Where do I add it (FTP) so I can attach it to the VM. I am following this tutorial, broadband9 . co . uk/how-to-migrate-hyper-v-vhdx-vm-to-proxmox-qcow2/.
I don't have enough space on local-lvm or local, but I have a LVM container where I created the empty VM (see picture vm 104 - I should add the file in that folder).

Thank you in advance!
 

Attachments

  • Screenshot 2023-01-09 164248.png
    Screenshot 2023-01-09 164248.png
    21 KB · Views: 19
The easiest way to import an existing vhdx file would be to just use qm disk import like so (no need for any manual conversion):

Code:
qm disk import 104 /path/to/file.vhdx <name-of-lvm-storage> --format qcow2
 
The easiest way to import an existing vhdx file would be to just use qm disk import like so (no need for any manual conversion):

Code:
qm disk import 104 /path/to/file.vhdx <name-of-lvm-storage> --format qcow2
Thank you for the quick reply, I didn't know you can convert on the spot, but the problem still remains, any path that I can put that file to import it in 104 is too small, the boot/install disk is only a 120gb SSD, I have a separate RAID for the VM storage.
That's my problem, how do I upload a file there?

The "server" is truly a JBOD (just a bunch of disks), and the only place I have room to run the VM is on the RAID container.
 

Attachments

  • Screenshot 2023-01-09 183824.png
    Screenshot 2023-01-09 183824.png
    9.8 KB · Views: 9
There are several options, but maybe the easiest would be to mount the disk image from the old server via some kind of file sharing protocol (NFS, SMB, or even sshfs), then run import disk. Might take awhile depending on your network, but it needs no additional space on the local machine.

What should also work would be a transfer via SSH, e.g.:
Code:
pvesm export ... | ssh pvesm import ....


If that is not feasible, you could manually create a logical volume on either LVM (if you have enough space left there) with lvcreate, then add a Filesystem to that LV and mount it. Then transfer the disk image there, import it and remove the LV again. But I think the other two methods are easier to do.
 
Success,
I make an SMB share on another server, created a folder in proxmox /media/share/ and mounted that SMB in that folder.
In datacenter -> Storage, I added a new Directory with /media/share. Moved the .vhdx file to the other computer inside the SMB share /images.
Then ran @shanreich command - qm disk import 104 /path/to/file.vhdx <name-of-lvm-storage> --format qcow2

My HyperV machine was gen2 and need it a UEFI bios (with a small partition that can be added in the hardware tab) and after a few reboots, windows reinstalled all the drivers.

Thank you for your support!
 
  • Like
Reactions: shanreich