0553.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Export Proxmox VE VM for Use With VirtualBox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Export Proxmox VE VM for Use With VirtualBox">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/28/2022 10:06:50 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Export Proxmox VE VM for Use With VirtualBox</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <p>NOTE: In this tutorial I&#39;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>
  26. <h2>Export the VM from Proxmox VE</h2>
  27. <ol>
  28. <li>Log into the Proxmox VE web UI</li>
  29. <li>Select the VM from the left navigation menu</li>
  30. <li>Select Backup from the left sub-navigation menu</li>
  31. <li>Click the Backup now button towards the top of the page</li>
  32. <li>Set the destination location, the Mode to Stop and the Compression to none &gt; Click Backup</li>
  33. <li>After the backup operation has completed, select the Proxmox node from the left navigation menu</li>
  34. <li>Select Shell from the left sub-navigation menu</li>
  35. <li>Change directory to the location of the vma backup file, this will vary based on your specific setup
  36. <div class="codeBlock CMD"># change directory to view mounted shares<br />
  37. cd /mnt/pve<br />
  38. # list mounted shares<br />
  39. ls<br />
  40. # cd into dump directory on the specific share, ISOs in this example<br />
  41. cd ISOs/dump<br />
  42. # list the files in the share<br />
  43. ls</div>
  44. </li>
  45. <li>The backup .vma file and a .log file should be displayed</li>
  46. <li>Extract the .vma file using the vma command line tool
  47. <div class="codeBlock CMD"># extract the .vma<br />
  48. # usage: vma extract -v &lt;vzdump-filename.vma&gt; &lt;destination directory&gt;<br />
  49. vma extract -v filename.vma ./export</div>
  50. </li>
  51. <li>Wait for the .vma to be extracted, resulting in a .raw disk image</li>
  52. </ol>
  53. <h2>Converting and Importing the Disk to VirtualBox</h2>
  54. <ol>
  55. <li>Launch VirtualBox Manager</li>
  56. <li>Create a new VM, using the same/similar hardware specifications as the Proxmox VM</li>
  57. <li>Choose to not create a virtual hard disk</li>
  58. <li>With the VM created, right click the VM in the left navigation menu &gt; Show in Explorer</li>
  59. <li>Copy the exported .raw disk image to the VirtualBox VM folder</li>
  60. <li>Hold the SHIFT key and right click in the white space &gt; Open PowerShell window here...</li>
  61. <li>Run the following command to convert the .raw disk image to .vdi
  62. <div class="codeBlock PS"># list .raw files<br />
  63. Get-ChildItem -File -Filter *.raw |Select Directory, Name, Extension<br />
  64. # usage: vboxmanage.exe convertfromraw &lt;input-filename.raw&gt; &lt;output-filename.vdi&gt;<br />
  65. Invoke-Expression (&#39;&amp; &quot;&#39;+ $Env:Programfiles +&#39;\Oracle\VirtualBox\VBoxManage.exe&quot; convertfromraw &quot;.\input-filename.raw&quot; &quot;.\output-filename.vdi&quot;&#39;)</div>
  66. </li>
  67. <li>Back in VirtualBox Manager, select the VM and Click Settings</li>
  68. <li>Select Storage from the left navigation menu</li>
  69. <li>Click Add Storage Attachment &gt; Add Hard Disk &gt; Choose existing disk</li>
  70. <li>Click Add and browse to the newly converted .vdi file</li>
  71. <li>Click OK to all open VirtualBox dialog windows</li>
  72. <li>Right click the VM &gt; Select Start &gt; Normal</li>
  73. </ol>
  74. </div>
  75. </div>
  76. </body>
  77. </html>