{"id":5726,"date":"2022-11-07T17:06:07","date_gmt":"2022-11-07T17:06:07","guid":{"rendered":"https:\/\/robertjwallace.com\/?p=5726"},"modified":"2023-07-18T23:22:05","modified_gmt":"2023-07-18T23:22:05","slug":"moving-home-assistant-from-a-virtual-machine-to-dedicated-hardware","status":"publish","type":"post","link":"https:\/\/robertjwallace.com\/es\/moving-home-assistant-from-a-virtual-machine-to-dedicated-hardware\/","title":{"rendered":"Moving Home Assistant from a virtual machine to dedicated hardware"},"content":{"rendered":"<p>I have been running home assistant on a generic Linux virtual machine using Oracle\u2019s Virtualbox system for several years. It has worked pretty well for me, but I recently decided to purchase a mini pc and move home assistant to it.<\/p>\n\n\n\n<p>In part what prompted this was finding a low cost mini PC that looked pretty good. $139.00 for an OUVISLITE \u0399ntel Celeron J4125 (Up to 2.7GHz), with 8GB DDR4 128GB M.2 SSD Mini Computer, 4K HDMI, Triple Display, Dual WiFi, BT4.2, and HTPC. For that price I figured \u201cwhat the hell, let\u2019s give it a try\u201d.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Getting ready.<\/h2>\n\n\n\n<p>Create a bootable USB drive with Linux. I started by downloading Etcher to my PC from <a href=\"https:\/\/etcherofficial.com\/download\/\">https:\/\/etcherofficial.com\/download\/<\/a><\/p>\n\n\n\n<p>After downloading I ran etcher, pointed the source to a Zorin Linux ISO image and the target to a 4GB flash drive. Now I had a bootable USB drive. With a USB bootable drive I was ready to start following the instructions at <a href=\"https:\/\/www.home-assistant.io\/installation\/generic-x86-64\">https:\/\/www.home-assistant.io\/installation\/generic-x86-64<\/a> (using Zorin Linux instead of Ubuntu).  But first I had to buy and setup the hardware.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up the hardware.<\/h2>\n\n\n\n<p>I bought an OUVISLITE mini-pc.  I had never heard of the brand, but the Amazon ratings were good, and the price was low, $139.00 on sale. The specs:<\/p>\n\n\n\n<p>Mini PC Window 11 Pro with \u0399ntel Celeron J4125 (Up to 2.7GHz), 8GB DDR4 128GB M.2 SSD Mini Computer Small Desktop PC Support 2TB 2.5&#8221;SSD\/HDD, Win10, 4K HDMI, Triple Display, Dual WiFi, BT4.2, HTPC<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Unboxing.<\/h2>\n\n\n\n<p>Surprisingly the box was delivered to my house, not in an Amazon shipping box, but in the actual product box.  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"577\" data-src=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-1024x577.jpg\" alt=\"\" class=\"wp-image-5732 lazyload\" data-srcset=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-1024x577.jpg 1024w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-300x169.jpg 300w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-768x432.jpg 768w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-1536x865.jpg 1536w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/2_copy-scaled.jpg 2048w\" data-sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/577;\" \/><figcaption class=\"wp-element-caption\">Box the mini PC came in.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"577\" data-src=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-1024x577.jpg\" alt=\"\" class=\"wp-image-5730 lazyload\" data-srcset=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-1024x577.jpg 1024w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-300x169.jpg 300w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-768x432.jpg 768w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-1536x865.jpg 1536w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/1_copy-scaled.jpg 2048w\" data-sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/577;\" \/><figcaption class=\"wp-element-caption\">Computer<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"577\" data-src=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-1024x577.jpg\" alt=\"\" class=\"wp-image-5734 lazyload\" data-srcset=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-1024x577.jpg 1024w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-300x169.jpg 300w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-768x432.jpg 768w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-1536x865.jpg 1536w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/5_copy-scaled.jpg 2048w\" data-sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/577;\" \/><figcaption class=\"wp-element-caption\">Accessories &#8211; Power cord, HDMI cord, TV mounting plate and screws, and instruction manual.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Configuraci\u00f3n<\/h2>\n\n\n\n<p>Setup was a breeze.  I plugged in a USB keyboard and mouse, connected the HDMI cable to my TV, plugged the power and and booted right up to the Windows 11 setup screen.  That showed me that the computer was fine.  <\/p>\n\n\n\n<p>I rebooted to the BIOS setup screen by pressing the F2 function key during power on.  I then changed the device boot order so that the first device looked at was the USB.  Plugged the USB flash drive with Zorin linux installed and booted right into it.<\/p>\n\n\n\n<p>Then with the system booted to linux, I connected to my wifi and downloaded Etcher.  All I had to do then was follow the instructions at <a href=\"https:\/\/www.home-assistant.io\/installation\/generic-x86-64#write-the-image-to-your-boot-media.\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.home-assistant.io\/installation\/generic-x86-64#write-the-image-to-your-boot-media<\/a>, starting at <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"615\" height=\"519\" data-src=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/image-1.png\" alt=\"\" class=\"wp-image-5731 lazyload\" data-srcset=\"https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/image-1.png 615w, https:\/\/robertjwallace.com\/wp-content\/uploads\/2022\/11\/image-1-300x253.png 300w\" data-sizes=\"(max-width: 615px) 100vw, 615px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 615px; --smush-placeholder-aspect-ratio: 615\/519;\" \/><\/figure>\n\n\n\n<p>Etcher warned me that I was going to overwrite the existing system (Windows 11), but that is what I wanted, so I finished the instructions and now I have HAOS on the PC.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting up Home Assistant<\/h2>\n\n\n\n<p>The last step was to restore my old Home Assistant to the new hardware.  This step was very easy as well.  I use the Home Assistant Google Drive Backup add-on so I had full backups of my old system in the Google drive.  I downloaded the backup to one of my regular PCs.<\/p>\n\n\n\n<p>I booted the mini PC up and connected to it from another PC using a web browser and the URL http:\/\/homeassistant.local:8123.  I then navigated to the backup screen (Settings-&gt; System-&gt; Backup), clicked on the three dots menu to download the backup and then did a restore.  And voila,  my old system is now running on dedicated hardware.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Last Steps<\/h2>\n\n\n\n<p>The last few steps I had to do were setting up a dedicated IP address and resetting the Backup system.  Other than that, everthing else seems to be working.<\/p>","protected":false},"excerpt":{"rendered":"<p>I have been running home assistant on a generic Linux virtual machine using Oracle\u2019s Virtualbox system for several years. It has worked pretty well for me, but I recently decided to purchase a mini pc and move home assistant to it. In part what prompted this was finding a low cost mini PC that looked &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/robertjwallace.com\/es\/moving-home-assistant-from-a-virtual-machine-to-dedicated-hardware\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> &#8220;Moving Home Assistant from a virtual machine to dedicated hardware&#8221;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_eb_attr":"","footnotes":""},"categories":[143,166],"tags":[],"class_list":["post-5726","post","type-post","status-publish","format-standard","hentry","category-computer-stuff","category-home-assistant"],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Bob","author_link":"https:\/\/robertjwallace.com\/es\/author\/admin\/"},"_links":{"self":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/5726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/comments?post=5726"}],"version-history":[{"count":2,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/5726\/revisions"}],"predecessor-version":[{"id":5768,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/posts\/5726\/revisions\/5768"}],"wp:attachment":[{"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/media?parent=5726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/categories?post=5726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robertjwallace.com\/es\/wp-json\/wp\/v2\/tags?post=5726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}