0295.html 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Convert VirtualBox VM to ProxMox VE</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Proxmox VE,VirtualBox,Virtual Machines,VMs,Conversion,Hypervisor,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Convert VirtualBox VM to ProxMox VE">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/24/2022 12:46:50 PM" />
  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>Convert VirtualBox VM to ProxMox VE</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>On the VirtualBox host, launch VirtualBox</li>
  27. <li>Right click the VM to convert &gt; Settings</li>
  28. <li>Select Storage from the left navigation</li>
  29. <li>Click the virtual hard disk and copy the Location value for the full path of the disk to the clipboard</li>
  30. <li>Right click on the Start menu &gt; Run &gt; type cmd.exe &gt; Press Enter</li>
  31. <li>Enter the following commands in the command prompt
  32. <div class="codeBlock"># change directory to VirtualBox installation<br />
  33. cd %programfiles%\Oracle\VirtualBox<br />
  34. # convert the .vdi to raw .img<br />
  35. VBoxManage clonehd --format RAW &quot;pasted\full\path\to.vdi&quot; &quot;pasted\full\path\to.raw&quot;</div>
  36. </li>
  37. <li>Once the .vdi to .raw conversion completes, open a web browser and navigate to the ProxMox web UI https://ProxMoxDNSorIP:8006/</li>
  38. <li>Click the Create VM button at the top right</li>
  39. <li>On the General tab, enter a VM Name and note the VM ID generated &gt; click Next</li>
  40. <li>On the OS tab select Do not use any media and set the Guest OS &gt; click Next</li>
  41. <li>On the System tab click Next</li>
  42. <li>On the Hard Disk tab set the Disk size to 0.001 &gt; click Next</li>
  43. <li>On the CPU tab set the number of CPUs &gt; click Next</li>
  44. <li>On the Memory tab set the amount of memory to allocate in MiB &gt; click Next</li>
  45. <li>On the Network tab click Next</li>
  46. <li>On the Confirm tab review the settings and click Finish</li>
  47. <li>Select the newly created VM from the left navigation panel &gt; Hardware</li>
  48. <li>Click the Hard Disk to select it</li>
  49. <li>Click the Detach button to detach the hard disk from the VM</li>
  50. <li>Click the Unused disk</li>
  51. <li>Click the Remove button to permanently delete it</li>
  52. <li><label for="cb_li_27606_33">Download WinSCP </label><label for="cb_li_27606_33"><a href="https://winscp.net/eng/downloads.php" target="_blank">Download</a></label></li>
  53. <li><label for="cb_li_178035_34">Extract WinSCP and run the executable</label></li>
  54. <li><label for="cb_li_764421_35">Connect to the ProxMox IP server via WinSCP</label></li>
  55. <li><label for="cb_li_542634_36">Copy the VirtualBox created .raw file to a location on the ProxMox server that has enough free disk space, /root for example</label></li>
  56. <li>Back in the browser, open the ProxMox host Shell</li>
  57. <li>Run the following command to import the raw disk, modify the .raw file name and VM ID noted earlier
  58. <div class="codeBlock"># import the raw disk<br />
  59. # usage:<br />
  60. # qm importdisk &lt;VM ID&gt; /root/&lt;source disk file&gt;.raw &lt;destination storage pool name&gt;<br />
  61. qm importdisk 100 vbox.raw HDD_500GB --format qcow2</div>
  62. </li>
  63. <li>Once the disk import completes, select the target VM from the left navigation menu &gt; Hardware</li>
  64. <li>Double click the Unused Disk &gt; Click the Add button</li>
  65. <li>Select Options from the left navigation sub-menu</li>
  66. <li>Double click Boot Order</li>
  67. <li>Check the Enabled box next to the hard disk</li>
  68. <li>Drag the Hard disk up in the boot order as needed, typically below the CD-ROM device</li>
  69. <li>Click OK</li>
  70. <li>Click the Start button in the top right of the screen</li>
  71. <li>Click the Console link to watch the boot process</li>
  72. </ol>
  73. </div>
  74. </div>
  75. </body>
  76. </html>