How to Importing a disk image from a windows machine to Proxmox that's larger than my root directory.

stlslayerac

New Member
Dec 23, 2022
3
0
1
Hello,


I'm newer to proxmox but I have a lot of experience with Hyper-V and VMWare.

I have a Unifi Controller on a windows VM in hyper-V that I have formatted to a raw image file that I want to upload to proxmox.

All of these tutorials don't explain what to do or how to upload these images to proxmox in the case of it being larger than your root directory.

I added an SMB share using my windows machine so I could hopefully use command line or ssh or something but I don't know the directory or even if i can access the shared SMB from proxmox command line to then qm import disk to the VM in proxmox.

Any help would be appreciated.
 
how to upload these images to proxmox in the case of it being larger than your root directory.
In general: If the target disk is too small, then you're out of luck. It's impossible.

You have to provide big enough storage via datacenter->storage->add
There you need to choose what suits you and where it's possible to choose disk image and container as content.

You can then copy your rawimage onto this storage via ssh/sftp whatever. I don't remember correctly, but if you want to upload via webui it could be necessary to rename the myfile.raw to myfile.img

Then you create your vm-(skeleton), but don't touch or try to do something with your file until it's ready. Let's say you got id 321 for this vm.
qm import 321 /path/to/myfile.img local --format raw

Normal path for iso storage (when additionally disk image as content was chosen) is /var/lib/vz/template/iso/

Import will run to the vm, then you can grab it from your vm and give it another controller etc.
 
In general: If the target disk is too small, then you're out of luck. It's impossible.

You have to provide big enough storage via datacenter->storage->add
There you need to choose what suits you and where it's possible to choose disk image and container as content.

You can then copy your rawimage onto this storage via ssh/sftp whatever. I don't remember correctly, but if you want to upload via webui it could be necessary to rename the myfile.raw to myfile.img

Then you create your vm-(skeleton), but don't touch or try to do something with your file until it's ready. Let's say you got id 321 for this vm.
qm import 321 /path/to/myfile.img local --format raw

Normal path for iso storage (when additionally disk image as content was chosen) is /var/lib/vz/template/iso/

Import will run to the vm, then you can grab it from your vm and give it another controller etc.
I have a larger disk than my root directory but I don't understand how to upload the image to that disk and not the root disk.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!