Export Proxmox VE VM for Use With VirtualBox

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=l4yt7xDAcdM



Category:
Tutorial
Duration: 3:21
7,506 views
56


#Proxmox #VirtualBox #Hypervisor #Convert

Full steps can be found at https://i12bretro.github.io/tutorials/0553.html

NOTE: In this tutorial I'll be backing up the VM to an existing network share. For details on how to add a network share to Proxmox, check out this tutorial  https://youtu.be/hkrFZoiYX_0?t=47
 
--------------------------------------------------------------------
Export the VM from Proxmox VE
--------------------------------------------------------------------
   01. Log into the Proxmox VE web UI
   02. Select the VM from the left navigation menu
   03. Select Backup from the left sub-navigation menu
   04. Click the Backup now button towards the top of the page
   05. Set the destination location, the Mode to Stop and the Compression to none ≫ Click Backup
   06. After the backup operation has completed, select the Proxmox node from the left navigation menu
   07. Select Shell from the left sub-navigation menu
   08. Change directory to the location of the vma backup file, this will vary based on your specific setup
         # change directory to view mounted shares
         cd /mnt/pve
         # list mounted shares
         ls
         # cd into dump directory on the specific share, ISOs in this example
         cd ISOs/dump
         # list the files in the share
         ls
   09. The backup .vma file and a .log file should be displayed
   10. Extract the .vma file using the vma command line tool
         # extract the .vma
         # usage: vma extract -v ≪vzdump-filename.vma≫ ≪destination directory≫
         vma extract -v filename.vma ./export
   11. Wait for the .vma to be extracted, resulting in a .raw disk image
 
--------------------------------------------------------------------
Converting and Importing the Disk to VirtualBox
--------------------------------------------------------------------
   01. Launch VirtualBox Manager
   02. Create a new VM, using the same/similar hardware specifications as the Proxmox VM
   03. Choose to not create a virtual hard disk
   04. With the VM created, right click the VM in the left navigation menu ≫ Show in Explorer
   05. Copy the exported .raw disk image to the VirtualBox VM folder
   06. Hold the SHIFT key and right click in the white space ≫ Open PowerShell window here...
   07. Run the following command to convert the .raw disk image to .vdi
         # list .raw files
         Get-ChildItem -File -Filter *.raw |Select Directory, Name, Extension
         # usage: vboxmanage.exe convertfromraw ≪input-filename.raw≫ ≪output-filename.vdi≫
         Invoke-Expression ('& "'+ $Env:Programfiles +'\Oracle\VirtualBox\VBoxManage.exe" convertfromraw ".\input-filename.raw" ".\output-filename.vdi"')
   08. Back in VirtualBox Manager, select the VM and Click Settings
   09. Select Storage from the left navigation menu
   10. Click Add Storage Attachment ≫ Add Hard Disk ≫ Choose existing disk
   11. Click Add and browse to the newly converted .vdi file
   12. Click OK to all open VirtualBox dialog windows
   13. Right click the VM ≫ Select Start ≫ Normal
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
i12bretro
How To
Tutorial
VirtualBox
Proxmox VE
Proxmox
Convert
Export
Virtual Disk
Raw Disk Image
VDI
Hypervisor
VM
Virtual Machine
Homelab