12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Export Proxmox VE VM for Use With VirtualBox</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="VirtualBox,Proxmox VE,Proxmox,Convert,Export,Virtual Disk,Raw Disk Image,VDI,Hypervisor,VM,Virtual Machine,Homelab,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Export Proxmox VE VM for Use With VirtualBox">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="05/28/2022 10:06:50 AM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Export Proxmox VE VM for Use With VirtualBox</h1>
- </div>
- <div></div>
- <div id="content">
- <p>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 <a href="https://youtu.be/hkrFZoiYX_0?t=47" target="_blank">https://youtu.be/hkrFZoiYX_0?t=47</a></p>
- <h2>Export the VM from Proxmox VE</h2>
- <ol>
- <li>Log into the Proxmox VE web UI</li>
- <li>Select the VM from the left navigation menu</li>
- <li>Select Backup from the left sub-navigation menu</li>
- <li>Click the Backup now button towards the top of the page</li>
- <li>Set the destination location, the Mode to Stop and the Compression to none > Click Backup</li>
- <li>After the backup operation has completed, select the Proxmox node from the left navigation menu</li>
- <li>Select Shell from the left sub-navigation menu</li>
- <li>Change directory to the location of the vma backup file, this will vary based on your specific setup
- <div class="codeBlock CMD"># change directory to view mounted shares<br />
- cd /mnt/pve<br />
- # list mounted shares<br />
- ls<br />
- # cd into dump directory on the specific share, ISOs in this example<br />
- cd ISOs/dump<br />
- # list the files in the share<br />
- ls</div>
- </li>
- <li>The backup .vma file and a .log file should be displayed</li>
- <li>Extract the .vma file using the vma command line tool
- <div class="codeBlock CMD"># extract the .vma<br />
- # usage: vma extract -v <vzdump-filename.vma> <destination directory><br />
- vma extract -v filename.vma ./export</div>
- </li>
- <li>Wait for the .vma to be extracted, resulting in a .raw disk image</li>
- </ol>
- <h2>Converting and Importing the Disk to VirtualBox</h2>
- <ol>
- <li>Launch VirtualBox Manager</li>
- <li>Create a new VM, using the same/similar hardware specifications as the Proxmox VM</li>
- <li>Choose to not create a virtual hard disk</li>
- <li>With the VM created, right click the VM in the left navigation menu > Show in Explorer</li>
- <li>Copy the exported .raw disk image to the VirtualBox VM folder</li>
- <li>Hold the SHIFT key and right click in the white space > Open PowerShell window here...</li>
- <li>Run the following command to convert the .raw disk image to .vdi
- <div class="codeBlock PS"># list .raw files<br />
- Get-ChildItem -File -Filter *.raw |Select Directory, Name, Extension<br />
- # usage: vboxmanage.exe convertfromraw <input-filename.raw> <output-filename.vdi><br />
- Invoke-Expression ('& "'+ $Env:Programfiles +'\Oracle\VirtualBox\VBoxManage.exe" convertfromraw ".\input-filename.raw" ".\output-filename.vdi"')</div>
- </li>
- <li>Back in VirtualBox Manager, select the VM and Click Settings</li>
- <li>Select Storage from the left navigation menu</li>
- <li>Click Add Storage Attachment > Add Hard Disk > Choose existing disk</li>
- <li>Click Add and browse to the newly converted .vdi file</li>
- <li>Click OK to all open VirtualBox dialog windows</li>
- <li>Right click the VM > Select Start > Normal</li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|