Another way to move Virtualbox VDI to Proxmox VE

There is another way to do the importing Virtualbox VDI to Proxmox VE 3.5-8.

Similar to my previous post.

Step 1, Copy the VDI into the Proxmox VE host

No need to covert the VDI file to RAW format. Just copy the vdi file into the local folder. For me, I will just put it at /root/testing.vdi

Step 2, Create a new VM in Proxmox

On the “OS” tab, choose “Do not use any media”

On the “Hard Disk” tab, choose “local-lvm”, as storage, Disk size is any size you want, for example, 8GB. Format, choose “Raw disk image (raw)”, On CPU and Memory, choose the same as the Virtualbox settings.

Confirm to create the new VM.

Step 3, Detach and Remove the Hard Disk

Say my VM ID is 109, choose Virtual Machine 109, Hardware, Hard Disk, choose “Detach” button.

Detach the Hard Disk

At this point, the hard disk will be listed as “Unused Disk.” It still exists but is not attached to the system. To destroy it completely, select the Unused Disk and click Remove again; and confirm when prompted.

Step 4,  Import the VDI to VM 109

I want the VM disk located in the local-lvm as all my other VMs.

Enter the following command inside of the SSH window of the host.

qm importdisk 109 /root/testing.vdi local-lvm

Above, 109 is the VM ID, /root/testing.vdi is the disk image of Virtualbox VM disk, local-lvm is the location of Storage.

It takes minutes to hours, depends on the size of the vdi file, and also the CPU.

After it is finished. Go back to the Proxmox VE web GUI.

Step 5, Attache the Hard Disk and start it

On the Virtual Machine 109, Hardware, I can see the unused Hard Disk located here.   Double click it to add the Unused Disk.

Choose SATA for my machine. It will be attached to the VM.

On the Options tab, double click Boot Order to choose boot device 1 to be Disk ‘sata0’.

Boot order, Options.

Then, click “Start” button to start the VM 109.

For my situation, I still need to modify the network interface to make sure it can retrieve the DHCP settings.

 

It is a little bit easier for someone. Because the VDI file may be smaller than RAW format file. So save more time when transferring the file from the Virtualbox Host to Proxmox Host.

Buy me a coffee.
Your support help me to cover the cost of blogging. Thank you.
  • Archives