0661.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running an ARM64 VM in ProxMox VE</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. $(function(){
  9. $('textarea').each(function(i,e){
  10. theTextarea = $(this);
  11. theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
  12. });
  13. $('li').each(function(i,e){
  14. if(!$(this).hasClass('noCheckbox')){
  15. var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
  16. $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
  17. $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
  18. }
  19. });
  20. $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
  21. theElement = $(this);
  22. var lines = theElement.html().split("\n");
  23. theElement.empty();
  24. for(l=0;l<lines.length;l++){
  25. if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
  26. theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '&quot;')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
  27. } else {
  28. theElement.append(lines[l]);
  29. }
  30. }
  31. });
  32. $(document).on('click','input.copy-text',function(){
  33. theButton = $(this);
  34. $('input.copy-text').attr('src','images/clipboard.png');
  35. $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
  36. try {
  37. if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
  38. $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
  39. } else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
  40. $('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
  41. } else {
  42. $('#'+ theButton.attr('rel')).addClass('copy-animation');
  43. }
  44. navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
  45. theButton.attr('src','images/clipboard_active.png');
  46. } catch(err) {
  47. }
  48. return false;
  49. });
  50. $(document).on('click','input.completeBox',function(){
  51. theBox = $(this);
  52. $('#'+ theBox.attr('rel')).addClass('strikethrough');
  53. theBox.prop('disabled',true);
  54. theBox.parent('li').prevAll().each(function(i,e){
  55. theLI = $(this);
  56. if(theLI.find('input[type=checkbox]').not(':checked')){
  57. $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
  58. theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
  59. }
  60. });
  61. });
  62. if(window.self !== window.top){
  63. window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
  64. }
  65. });
  66. </script>
  67. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  68. </head>
  69. <body>
  70. <div id="gridContainer">
  71. <div class="topMargin"></div>
  72. <div id="listName" class="topMargin">
  73. <h1>Running an ARM64 VM in ProxMox VE</h1>
  74. </div>
  75. <div></div>
  76. <div id="content">
  77. <p>DISCLAIMER: While running ARM64 architecture VMs on Proxmox works, the performance is not on par with what it would be on a baremetal ARM device. In this example I&#39;ll be installing Debian 11 AARCH64 in Proxmox running on Intel x64 based hardware.</p>
  78. <ol>
  79. <li>Log into the ProxMox web UI</li>
  80. <li>Select a storage from the left navigation pane to download the .iso to</li>
  81. <li>Select ISO Images in the left sub-navigation pane</li>
  82. <li>If running ProxMox 6, download the Debian ARM64 iso <a href="https://cdimage.debian.org/cdimage/release/current/arm64/iso-cd/debian-11.1.0-arm64-netinst.iso" target="_blank">Download</a> and upload it to the ProxMox ISO image library</li>
  83. <li>If on ProxMox 7, click Download from URL and paste the download URL from above &gt; Click Query URL &gt; Click Download</li>
  84. <li>Right click the ProxMox node name &gt; Create VM</li>
  85. <li>Type DebianARM64 in the name field set the VM ID to 164 (unless 164 is in use) &gt; Next</li>
  86. <li>Set the Type to Linux, Version to 5.x - 2.6 Kernel and select Do not use any media &gt; Next</li>
  87. <li>On the System tab set the BIOS for OVMF (UEFI), Uncheck the Add EFI Disk checkbox &gt; Next</li>
  88. <li>On the Hard Disk tab, set the Storage device and Disk size to 16 (adjust as needed) &gt; Next</li>
  89. <li>On the CPU tab, set the number Cores to 2 (adjust as needed) &gt; Next</li>
  90. <li>On the Memory tab, set the Memory to 2048 (adjust as needed) &gt; Next</li>
  91. <li>Leave the defaults on the Network tab &gt; Next</li>
  92. <li>Verify the summary and click Finish</li>
  93. <li>Select the DebianARM64 VM in the left navigation pane</li>
  94. <li>Select Hardware from the left navigation sub-menu</li>
  95. <li>Click on the CD/DVD Drive to select it &gt; Click Remove at the top of the main content area &gt; Click Yes to confirm</li>
  96. <li>Click Add &gt; Serial Port &gt; Leave the Port Number 0 &gt; Click Add</li>
  97. <li>Click Add &gt; Select CD/DVD Drive &gt; Set the Bus/Device to SCSI &gt; Select the Storage device where the Debian ARM64 iso is uploaded &gt; Select the uploaded Debian ARM64 iso &gt; Click Create</li>
  98. <li>Double click Display to edit it &gt; Set the Graphic card value to Serial terminal 0 &gt; Click OK</li>
  99. <li>Select Options from the left navigation sub-menu</li>
  100. <li>Double click Boot order to edit it &gt; Drag/drop the SCSI2 device (where the Debian iso is attached) to the top of the list &gt; Click OK</li>
  101. <li>Right click the ProxMox node name &gt; Console</li>
  102. <li>Run the following commands in the terminal
  103. <div class="codeBlock CMD"># edit the VM conf file, change 164 to the VM ID for the DebianARM64 VM<br />
  104. nano /etc/pve/qemu-server/164.conf</div>
  105. </li>
  106. <li>Add the following line to the bottom of the .conf file:
  107. <p>arch: aarch64</p>
  108. </li>
  109. <li>Find the line starting with vmgenid: and comment it out by adding a # to the beginning of the line</li>
  110. <li>Press CTRL+O, Enter, CTRL+X to write the changes to the conf file</li>
  111. <li>Back in the Proxmox web UI, select the DebianARM64 VM from the left navigation menu</li>
  112. <li>Click console in the left sub-navigation menu</li>
  113. <li>Click Start at the top right of the screen to start the VM</li>
  114. <li>Wait a moment for the serial console to initialize</li>
  115. <li>Follow the prompts to complete the OS installation<br />
  116. <span style="font-size:12px;"><em>NOTE: This will feel slower than normal, allow it time to complete</em></span></li>
  117. <li>After the installation completes, select the Shutdown dropdown at the top of the screen &gt; Stop</li>
  118. <li>Select Hardware from the left sub-navigation menu</li>
  119. <li>Double click the CD/DVD Drive to edit it &gt; Select Do not use any media &gt; Click OK</li>
  120. <li>Go back to the VM console</li>
  121. <li>Click Start at the top right of the screen to start the VM again</li>
  122. <li>Enter the following commands to launch Debian from the EFI shell
  123. <div class="codeBlock CMD">fs0:\EFI\debian\grubaa64.efi</div>
  124. </li>
  125. <li>The GRUB menu should boot and start loading Debian</li>
  126. <li>Welcome to ARM64 based Debian running on Proxmox VE</li>
  127. </ol>
  128. <p>Sources: <a href="https://rotelok.com/installing-arm64-debian-10-buster-in-a-virtual-machine/" target="_blank">https://rotelok.com/installing-arm64-debian-10-buster-in-a-virtual-machine/</a>,<br />
  129. <a href="https://www.reddit.com/r/Proxmox/comments/ed2ldo/installing_and_launching_an_arm_vm_from_proxmox/" target="_blank">https://www.reddit.com/r/Proxmox/comments/ed2ldo/installing_and_launching_an_arm_vm_from_proxmox/</a></p>
  130. </div>
  131. </div>
  132. </body>
  133. </html>