Moving Virtual machine from virtual box to external drive and then import into vm

forcegc

Member
Feb 21, 2022
28
2
8
59
Hi all,
I have been trying to figure out how to import my .raw file virtual machine over to my proxmox server. I converted the file to .raw from a vdi that i was using in virtualbox via qemu. And i copied it to the external drive. And i have the external drive mounted but cant get the file to import into my 104 vm. i setup the same processor and ram amount within the vm. Its a windows server vm.

qm importdisk <vmid> <source> <storage> [OPTIONS]
Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).
<vmid>: <integer> (1 - N)
The (unique) ID of the VM.
<source>: <string>
Path to the disk image to import
<storage>: <string>
Target storage ID
--format <qcow2 | raw | vmdk>
Target format

i saw this and i have been trying variations of this and i cannot for the life of me get it to work. My local storage isnt big enough for me to directly move it via win scp. But my main storage has 2.2tb which is enough so i wanted to import it directly into the vm as the main storage not local.
 
It would be helpful if you showed what you tried and how it failed. However, most likely what is tripping you up is the fact that the source path needs to be specified as local, i.e.:
qm importdisk 112 /mnt/pve/bbnas/template/iso/disk.raw pve_target_Storage --format raw


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
1645515059490.png
mounted external drive to /mnt/usbdata

1645515089947.png
WIndows_Server.raw is the file i want to go to 104 vm

so i try to do qm importdisk 104 /mnt/usb/data/Windows_Server.raw and then the output i have tried many things. i got one to work but cant remember what i did but after i got it to work i couldnt get it to boot even after setting it first boot device. i think i did /dev/main/vm-104-disk-0
 

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!