From f9ea6dffd57683b95cf75f5999e1eb9c9cc5a602 Mon Sep 17 00:00:00 2001 From: Josh Creek Date: Fri, 11 Mar 2022 22:41:29 +0000 Subject: [PATCH] feat(*): Add home assistant truenas scale docs --- docs/home-server/index.md | 2 +- ...stalling-homeassistant-on-truenas-scale.md | 46 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 docs/home-server/truenas-scale/installing-homeassistant-on-truenas-scale.md diff --git a/docs/home-server/index.md b/docs/home-server/index.md index 1d3ef80..27206c9 100644 --- a/docs/home-server/index.md +++ b/docs/home-server/index.md @@ -1,6 +1,6 @@ --- layout: default -title: Home server +title: Home Server nav_order: 4 has_children: true --- \ No newline at end of file diff --git a/docs/home-server/truenas-scale/installing-homeassistant-on-truenas-scale.md b/docs/home-server/truenas-scale/installing-homeassistant-on-truenas-scale.md new file mode 100644 index 0000000..86142d3 --- /dev/null +++ b/docs/home-server/truenas-scale/installing-homeassistant-on-truenas-scale.md @@ -0,0 +1,46 @@ +--- +layout: post +parent: Home Server +nav_order: 1 +title: "Installing Home Assistant OS on Truenas Scale" +date: 2022-03-08 18:33:12 +0000 +categories: home assistant, truenas scale, home server +--- + +# {{page.title}} + +_{{page.date}}_ + +Mostly taken from https://www.truenas.com/community/threads/home-assistant-vm-on-scale.91058/post-666766 and cleaned up. + +Make sure to use a location on your data pool as a working directory, don't use any system directory. I made a `hass` folder on my data pool `plex-media`: + +`cd /mnt/plex-nas/plex-media/hass` + +Use wget to get the ova file: + +`wget https://github.com/home-assistant/operating-system/releases/download/6.6/haos_ova-6.6.ova` + +Extract the ova file using tar: + +`tar -xvf haos_ova-6.6.ova` + +Convert the vmdk to a raw image file, I had to use the full working directory for the source: + +`qemu-img convert -f vmdk -O raw /mnt/plex-nas/plex-media/hass/home-assistant.vmdk hassos.img` + +Create a Zvol using the TrueNas Scale GUI - Be sure to make it large enough for dd to complete, I used 35 Gib. + +Use dd to write the image file to your zvol + +`dd if=hassos.img of=/dev/plex-nas/home-assistant` + +Create a virtual machine using the gui and attach the zvol you just created as the hdd. + +Minimum recommended assignments: + +- 2GB RAM +- 32GB Storage +- 2vCPU + +All these can be extended if your usage calls for more resources.