Hass.io On Hyper-V - Step By Step

Worked for me too ! Thanks a ton

I noticed the latest VHDX image (v5.8) is now a 32GB image file. Supposedly it’s still a dynamically expanding image so why does it take up the full space? This was not the case with v4.20, this was a 6GB image.

Why was this changed? A clean install now takes up 26GB more than it did previously.

I figured out a way to shrink the image back to about 4,5GB again:

  • Using Hyper-V Manager start the New Virtual Hard Disk Wizard
  • Format: VHDX
  • Type: Dynamically expanding
  • Give it a name
  • Configure Disk: select “Copy the contents of the specified virtual hard disk” and select the 32GB VHDX file from the OP.
  • Press finish and a new 4,5GB VHDX file is created, use that file in stap 8 of the OP for your VM.

This saves you 25GB of space on your Windows host.

How do I install alpine packages in this image without them dissappearing the next time I login. I have run apk add to install a few things, like nano, but they are gone when I login next.

So the link for the VHDX file is now gone, where do I download this?

3 Likes

Ctrl+F for vhdx

Hello everyone

I feel pretty stupid. I did all those exact steps and im still only getting the Home Assistant installation, without the hass.io plugins. I aswell tried to edit the configuratoin.yaml and adding hassio: and discovery: to it. But I still don’t see the addons: i went with the official installation and download link and double checked it with this one aswell. Any ideas?
https://www.home-assistant.io/installation
hassos_ova_512 is the file.

what is the default username and password to log into the VM using RDP?

Is there any way to passthrough bluetooth dongle to Hyper-V? I mean, i sucessfully added Zigbee adapter as serial-to-ethernet, but bluetooth is different. I’m trying to setup " Passive BLE monitor integration". I know about ESP32, but now i’m unable to get one.

Not sure if it helps, but before I used serial2net (eltima) to pass zigbee data from usb to HyperV over network, I worked around it by running MQTT server on windows….and let HA (on HyperV) connect to that one, instead of using HA’s internal MQTT add-on :wink:

Can confirm. Serial to Ethernet Connector is working beautifully. For Zigbee and Z-Wave that’s perfect solution. Be sure to set COM port as in below screenshot if you have CC2531 stick.

Screenshot_1

Don’t know how to pass Bluetooth to Hyper-V, though. Server part is okay, but how to install client into HASS Hyper-V?

Thanks that worked great.

Hello,

I have a “small” Problem with my ha installation in hyperv.
It’s getting very large, it’s already up to 50GBs and I don’t know what it could be.
So first what it is not:

  • Home Assistant Database
  • Unused Docker Images
  • Videos or any media saved that I know of

And it’s not getting smaller everytime I restart the vm it’s getting a little bit bigger.
Any ideas?

So no one got an Idea for this?

Could it be that your Hyper-V is creating Checkpoints? See this: Enable or disable checkpoints in Hyper-V | Microsoft Docs

1 Like

Sadly not.
Just did everything from “scratch”.
Did a backup of my HA Installation and recreated the VM.
Now it’s only 8GB.
I also disabled Checkpoints now.

default switch isn’t even an option in mine, i get Intel X550 virtual switch. i can’t remember if i i changed something.

my VMs are getting 172 addresses.

EDIT: what are people needing USB for? Z wave? smart hubs? they ain’t making those with ethernet so that you don’t need USB? needing to plug in to a pc USB seems kind of archaic for things that would go in walls and ceilings (for best wireless coverage) but i digress.

ok so dhcp reservation then

but a static ip can be set via ui now…

With the latest file I cannot rename the vhdx… anyone else have this problem? I am a little OCD when it comes to file naming and homelab organization.

if I rename it fails to mount and goes into emergency mode. If I leave it then it is fine. I even rename it before creating the VM so I know its not a link error in hyperV

Figured this out, let it boot at least once before renaming!