Thanks for doing this. I wish it existed back when I started my Hyper-V journey. One thing to note for any users planning to do an HA installation with Hyper-V is that most Z-Wave controllers are USB and Hyper-V cannot map through a USB port. I found excellent software call USB Redirector that allows you to bring your USB ports over to the VM. If anyone needs help with that, send me a message.
Yes that’s one limitation with Hyper-V. Good call on the USB Redirector.
USB PassThrough is usually possible on VMWare - I might do another of these with ESXi and see how it gets on.
Can you help me with setting up USB Redirector in Hyper-V?
I’ve a USB P1 for smart meter and a ZWave dongel.
Thanks in advance!
First, make sure you are not running Ubuntu 18.04 as there is a bug that prevents registration of USB Redirector devices. If you are already on 18.04, you will need to upgrade to 19.10.
There are two parts to the application - the server and the client. You install the server application on the host and the client on your Ubuntu VM. You can find both here:
There is a free trial period to make sure everything works before you pay. Both of your devices should work and will be identified as a modem. The documentation is pretty solid, so give it a try and let me know if you run into problems. I’m happy to help!
If you have windows server I could also suggest installing docker. Windows server has native support for docker containers. Though you will need a docket enterprise license for that to work. Good news, because Windows Server Standard and Datacenter editions have a free docker enterprise license included (no need to add this anywhere).
I believe with docker it is possible to give the containers usb support (not entirely sure). Had been using hyper-v for 10 years now and I recently switched to esxi as I needed real usb passthrough which as most of you know is not possible with Hyper-V.
This guide now available in VMWare flavor.
Great write up however I can’t do a secure boot on my server based on other virtual machines running. Any way to get this setup without secure boot?
I did follow the steps but when the machine is started it writes a lot of errors. I wasn’t able to capture them as text so I attach a gif …
Any idea what might be wrong?
Ive managed to deploy Hass.IO into hyper-v and restore my backup. How do i use this USB Re-director to plumb into my Hyper-V hass.io and what needs to be configured on Hass.IO to pick up the USB device >?
First install the USB Redirector Server on your host and share the USB port with the Z-Wave stick installed.
Now you should be able to see the devices. You can query using usbclnt -list to see attached devices. If everything worked, you should find a new device in /dev. Mine is called TTYACM0. From here configure OZW using the new device.
I’m on VMWare and would love to get back to Microsoft (more familiar to me) but there usb issue is the only thing stopping me… Anyone got any tips for usb redirector on HassOS (vhdx download)?
You don’t want Secure Boot - and it’s only available on Gen 2 Hyper-V guests. What type are you running?
The times I have had issues getting it to start up have usually been network related. Make sure it has clear access out to the internet so that it can download the dependencies and modules it needs.
If you use a proxy / firewall it might be blocking this.
I also had a problem with an abortive setup that must have corrupted my vhdx. I re-copied it from a fresh source and it came right. Hope it’s a simple one…
Hi, I have this exact question… running hass.io on hyperv and wondering if I can import a zwave usb stick there…
I am also wondering if this will ever be a possibility? I have just installed hass.io on hyper-v and don’t want to get to into it if I wont ever be able to add zwave and zigbee devices
Thanks for putting this guide together. It’s helped me understand it much better. I’m following the steps using the VDHX image. My Hyper V gets it up and running, but when I get to step 12 for the GUI, the browser (using Firefox on the non-VM side) says it can’t find the page. In the VM for HassOS, it isn’t coming up with anything beyond the command line.
Not entirely sure what I’m doing wrong or what to do next.
UPDATE: I forgot to set up an External LAN switch to be able to access it. That was a simple fix in Hyper-V.
Thank you for your briliant manual. I had only one issue during instalation. Active internet connection is required, as usually no virtual pc has access to internet, booting of HomeAsisstant was stuck before any application start and waiting for internet connection without any warning.
I managed to get hassio up and running. But it’s on a different network and it cannot see all the devices on my regular network.
I might not have the terminology correct, what I mean is all my devices are on the usual 192.168.xx.xx, but the VM is on 172.18.xx.xx. Am I missing something?
It’s been MANY years since I did any serious network stuff, so bear with me