0877.html 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running a Home Assistant Operating System [HAOS] VM in 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="Browser Based,Home Lab,Home Lab Ideas,Hypervisor,Install Guide,Self-Hosted,Web Based,Web Based Tools,Getting Started With Home Assistant,Home Assistant OS,Home Assistant OS Virtual Machine,Home Assistant OS Proxmox,Home Assistant Quick Start,Home Assistant Simplified,Home Assistant Tutorial,Home Assistant Proxmox Installation,Linux,Proxmox,Proxmox VE,Virtualization,Virtual Machine,VM,Proxmox Tutorial,Proxmox Step By Step,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running a Home Assistant Operating System [HAOS] VM in Proxmox VE">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="02/10/2023 12:28:54 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>Running a Home Assistant Operating System [HAOS] VM in Proxmox VE</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Proxmox web UI</li>
  27. <li>Right click the Proxmox node name &gt; Create VM</li>
  28. <li>Give the VM a unique ID (note the ID for later) and Name &gt; Next</li>
  29. <li>On the OS tab, Select Do not use any media, leave the Type as Linux and the Version as 5.x - 2.6 Kernel &gt; Next</li>
  30. <li>On the System tab, set the BIOS field to OVMF (UEFI), Check the Add EFI Disk checkbox, Uncheck the Pre-Enroll Keys checkbox &gt; Next</li>
  31. <li>On the Hard Disk tab, delete the scsi0 virtual disk &gt; Next</li>
  32. <li>On the CPU tab, set Cores to 2 or more and Type to host &gt; Next</li>
  33. <li>On the Memory tab, set the Memory to 2048 &gt; Next</li>
  34. <li>Leave the defaults on the Network tab &gt; Next</li>
  35. <li>Verify the summary and click Finish</li>
  36. <li>Click the Proxmox node name &gt; Select Shell from the left sub-navigation menu</li>
  37. <li>Run the following commands in the web console
  38. <div class="codeBlock"># install unxz<br />
  39. apt update &amp;&amp; apt install xz-utils -y<br />
  40. # lookup the latest HAOS release download URL<br />
  41. regex=&#39;&quot;browser_download_url&quot;: &quot;(https:\/\/github.com\/home-assistant\/operating-system\/releases\/download\/[^/]*\/haos_ova-[^/]*\.qcow2\.xz)&quot;&#39; &amp;&amp; response=$(curl -s https://api.github.com/repos/home-assistant/operating-system/releases/latest) &amp;&amp; [[ $response =~ $regex ]] &amp;&amp; downloadURL=&quot;${BASH_REMATCH[1]}&quot;<br />
  42. # download the qcow virtual disk<br />
  43. wget -O /tmp/HAOS.qcow2.xz $downloadURL<br />
  44. # extract the downloaded virtual disk<br />
  45. unxz /tmp/HAOS.qcow2.xz -v<br />
  46. # attach the disk to the HAOS VM<br />
  47. # update the ID to match the ID of the HAOS VM created earlier<br />
  48. # the last argument is the name of the storage device to import the disk to<br />
  49. qm importdisk 104 /tmp/HAOS.qcow2 SSD_100GB</div>
  50. </li>
  51. <li>Back in the Proxmox web UI, select the HAOS VM &gt; Select Hardware from the left sub-navigation menu</li>
  52. <li>Double click the Unused Disk &gt; Click Add</li>
  53. <li>Click Options from the left sub-navigation menu</li>
  54. <li>Double click Boot Order to edit it &gt; Check the Enabled box next to scsi0 and drag it above net0 &gt; Click OK</li>
  55. <li>Click Start at the top right of the screen to start the VM</li>
  56. <li>Click Console in the left sub-navigation menu</li>
  57. <li>Welcome to Home Assistant Operating System</li>
  58. <li>Open a web browser and navigate to http://DNSorIP:8123</li>
  59. <li>Enter a Name, Username and Password to create a Home Assistant user account &gt; Click Create Account</li>
  60. <li>Enter a Name for this Home Assistant installation (ie Home)</li>
  61. <li>Click Detect to set the installation geolocation</li>
  62. <li>Verify the Unit System and Currency &gt; Click Next</li>
  63. <li>Select any anonymous data to share with the Home Assistant development team &gt; Click Next</li>
  64. <li>Click Finish</li>
  65. <li>Welcome to Home Assistant</li>
  66. </ol> </div>
  67. </div>
  68. </body>
  69. </html>