ESXi 6.5 and Zwave Help

Iā€™m migrating my home to an ESXi 6.5 server. Most everything seems to be working just fine except I cannot get my zwave dongle to work.

Iā€™ve plugged the dongle directly into the host machine, no hubs or other things to get in the way.

Iā€™ve configured the USB passthrough by adding it as a new USB device to the VM and it shows up just fine.

The zwave binding is able to connect to the device and communicated with it at least well enough to download the nodes and add the Things to the inbox. However, the Things never resolve to their device type. They remain unknown.

All of the nodes currently added to the controller are mains powered.

Open Zwave Control Panel seems perfectly able to interrogate and communicate with the controller on this same VM. At least there are no errors and everything appears as it should.

Iā€™ve moved the controller back to the old laptop and after a little bit longer than expected it was able to resolve all of the devices.

Has anyone experienced the same problem and solved it, or have any advice for how to get this to work?

You probably need to look at the debug logs to find out why itā€™s not resolving the things. Iā€™ve seen issues with VMs and serial ports under OH in the past - of course Iā€™ve no idea if thatā€™s your problem, but there are a number of threads around about that.

Hey @rlkoshak !
Rebuilding your OH2 platform? :slight_smile:

I found something relevant here:

My old laptop ran low on RAM so I bought a cheap desktop server to run ESXi. I choose poorly though and bought one that doesnā€™t support VT-D (or, as Iā€™m now reading, it is just disabled in the BIOS and Iā€™ve not checked in which case Iā€™m going to be mad at days of lost effort making this all work again) so Iā€™m stuck on 32-bit OSā€™s and therefore canā€™t use Docker containers like on my old setup. Moving to a server running ESXi was always in the plan. I moved to Docker containers on my laptop initially to make this transition easier. The best-laid plans of mice and men often go awry.

Thanks for the link. I searched the forum of course but apparently, my searching skills are deficient. Wish I had seen that posting before I got everything else set up. Grumble. Now I need to reinstall the ESXi and rebuild my VMs. Thankfully Iā€™m using Ansible to build everything so I donā€™t have to figure everything out again and it wonā€™t take but a few hours. Itā€™s still cheaper than buying a new stick.

Back to the old drawing board. Grumble.

@chris, of course, after rebuilding this virtual machine a dozen times the dongle seems to be working properly, just when Iā€™ve enabled trace level logging. Maybe the logging is slowing it down just enough to make it work properly. At least to the point where it is recognizing all the mains powered devices right out of the gate. Gotta love those heisenbugs.

Iā€™ll come back with logs if I start seeing problems with other devices or the problem returns when I rebuild this thing on the previous verison of ESXi per Dimā€™s link.

Time is still really short for me these days so it may be a few days.

1 Like

Well shoot. I managed to mess everything up. But I did learn the following.

  • Virtualization was disabled in my BIOS. Waaaaaaa! I could have been using 64-bit and docker all this time
  • I installed 6.0 only to discover that it wonā€™t let me create version 7 hardware VMs which are required for USB passthrough. I donā€™t know if the other posts on this forum recommending the earlier version have a paid version of ESXi or what but for now, Iā€™m stuck on 6.5 or nothing.
  • Even though the nodes did show up in PaperUI this last time, they eventually timed out and went offline. I might not be able to host OH on a VM like I planned. :frowning:
  • When I reinstalled ESXi, somehow I became unable to attach a really important VMDK to one of my VMs. I might be doomed if I canā€™t figure that one out. Gaaaa!

I have it working fine on 6.5 by disabling the new usb driver vmkusb introduced in this version, and reverting to the legacy usb driver - https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2147650.

SSH into esxi, and run the command esxcli system module set -m=vmkusb -e=FALSE. Then reboot. That should resolve the time out issue.

(I have done this on two different machines, each now running for a couple of months on esxi 6.5 without any issues).

That is really good to hear. Are you using an S2 or a Gen5 controller (or something else entirely)? It gives me hope that I can get everything deployed the way I want it rather than needing to buy a new Pi just to run OH.

I should have just reverted to the legacy driver in the first place to see how it worked. The thread Dim linked to had the person reporting that it made things better but didnā€™t solve the problem so I decided that since I needed to rebuild my VMs as 64-bit anyway I may as well go whole hog and rebuild everything.

I forgot that I had a lot of important data on a VMDK on the machine which I canā€™t seem to get attached to a new VM and I didnā€™t realize that the free 6.0 version (or it has something to do with my hardware, I donā€™t know) wonā€™t let me create 7+ version VMs so I can use USB passthrough. I definitely leapt before looking and landed in a big pile of poo. That is what one gets when they can only spend 15 minutes at a time working on this stuff.

Step 1 is to try and recover that data. Step 2 is to reinstall yet again with 6.5 (I may need to do this before I can do Step 1). Then for the rebuilding. Luckily the rebuilding will take the least amount of work. I have it all scripted through Ansible so in a couple of commands I can have it back.

If youā€™ve any experience working with vmdks on the host (I made the mistake of making the vmdk larger than any of my spare HDs so canā€™t transfer it off of the host) Iā€™m all ears.

Thanks for the bit of hope though.

One of my installs is using a zwave.me controller, and the other an Aeotec z-stick Gen5. Iā€™m not sure why the other thread reported that they continued to have problems, but certainly in my case the timeout issues resolved immediately after disabling the new driver (after spending a few days trying everything to figure out what had gone wrong following my upgrade to 6.5!).

What specifically is the issue you are facing with your VMDK file? If you have rolled back to 6.0, you will not be able to use the VMs created under 6.5 as they are on a newer ā€˜hardwareā€™ version (if I recall, 6.5 uses VM Machine hardware version 13, whilst 6.0 uses 11). If this is the case, then as you guessed, first step is to install 6.5, and then try to re-attach the VMDK.

Itā€™s weird actually. The first VM I tried to rebuild is an OpenMediaVault server. I created a brand new VM (it would only let me create a Version 6 VM). I had two vmdks attached to the old VM and when I tried to ā€œAdd Existing Diskā€ to the new one and selected the big vmdk from the old server it was treating it like I wanted to create a new disk rather than attaching the existing one.

At this point is was midnight and I probably was both a little tired and a little panicked so I very likely could have done something stupid. I donā€™t know. There is one folder with files that will be very difficult to recover and another that will take a loooong time to recreate so it is worth my spending some time to see if I can get at the data.

I found some links for how to fix a corrupt disk descriptor file which could be my problem. Honestly, Iā€™m hoping that Iā€™ll just install 6.5 and reregister the old VM and the disk will be there. Fingers crossed.

As an aside, what do you think of the zwave.me controller? Are you using the z-way binding or zwave binding? If I have to purchase a new controller I can consider that way.

The VMDK should just attach - again, I have done this many times, and in fact, also used to have an OMV install as well. One thing you could do if you are worried about the data is to create a new VM for OMV, get it up and running and then attach the old VMDKs as additional drives. Another question - is your large VMDK a -flat file? If so, the other should be the descriptor. Also when you say it was treating the existing VMDK as a new disk, is that at boot up or when you added the VMDK?

Iā€™ve had the zwave.me controller since I started out with zwave, back with OH 1.6 days. It has and continues to work well. It has very good range, reaching from my garage all the way to my loft (according to the the z-wave network diagram in HABmin). As I have the cheaper (Ā£25) unit, it doesnā€™t come with a z-way license. As such, I havenā€™t tried the z-way binding (beyond installing it and finding out that I needed to buy a separate license!). In any event, Chrisā€™ z-wave binding does everything I need, and works robustly. For the money, you canā€™t go wrong with the zwave.me controller. (I have on occasion also used it with an open-zwave control panel running in a VM for testing etc - again, works fine every time).

EDIT: Also what do you mean when you say: [quote=ā€œrlkoshak, post:9, topic:27904ā€]
it would only let me create a Version 6 VM
[/quote]

You should only be able to create version 13 machines on esxi 6.5. e.g. hereā€™s a screenshot from one of my VMs:

So have I. Which is why this was so troubling.

What seemed to work was upgrading to 6.5 and reattaching the old VM. The drive was there and Iā€™m able to get at the files. I am now moving the data off and plan on starting over completely from scratch. Given this weirdness I donā€™t trust that drive, not to mention I canā€™t seem to find the flat file in the Datastore any longer. :frowning: Next time Iā€™ll create smaller VMDKs that I can offload from the host if I need to do this sort of thing again.

This whole thing is just really weird. This is not my first time messing with ESXi and Iā€™ve never had these sorts of problems.

When I added it to the new VM. Basically what would happen is Iā€™d attach the drive and a message would pop up and say I canā€™t create a new drive that is larger than my available free space. And the area where I could change the size of the disk is grayed out so I couldnā€™t shrink it if I wanted to (which I wouldnā€™t want to).

On 6.0.0u2 I could only ever create a VM version 6, nothing higher. Consequently, I never had the option to attach a USB device (which begs the question why there are USB controllers). Unlike on 6.5 where the USB Device entry in the add device menu was grayed out, it was completely absent.

On 6.5 everything works fine. I can create version 13 VMs all day. It was just 6.0 that had problems.

Itā€™s good to hear your experience with the zwave.me controller. I might go that way if it proves that the S2 wonā€™t work even after reverting to the legacy USB drivers.

Thanks a ton for all your help. Iā€™ve got my files back so the major crisis is averted. Now it is just a matter of time to build everything back up again. I should be back in business and then some by this weekend.

Glad to hear youā€™re back up and running. One other thing you may want to look at if you are worried about data loss in a virtual nas is to pass whole disks into your OMV as raw disks. That way, even if you are not able to get esxi back up and running, you can always access your data from a native OMV (or other linux) install. There are some downsides (e.g not being able to use vMotion etc) but they probably wonā€™t matter for home/free use. That is the way I have my disks. This also gives noticeably faster disk performance.

Good luck and donā€™t hesitate to reach out if you come across any other stumbling blocks.

That is really what I want to do but I could never figure out how to make it work. I will research it some more. I have only the one server so vmotion is irrelevant to me.

I looked into it some more and since I have my data backed up now I gave it the old college try and got raw device mapping to work. Woohoo! Second time through Iā€™m able to make this look more like I originally wanted.

I think Iā€™ll still keep my backup drive as a USB so I can grab it and go in a pinch, though may change my mind later.

Thanks again for all the help!

Canā€™t go wrong with a backup USB drive! In fact, I use syncthings to automatically back up my data to a separate physical NAS.

Hi there

A lot of questions and experimenting with ESXi I see.

USB Passthrough should normally work, however you might want to check if you have passed on all devices, sometimes certain devices show up as a basic USB device Zwave is a serial protocol if I remember correctly so you might need to pass through a USB serial device too, post your devices here and Iā€™ll look in to it.

If the route above does not work: consider buying a well home-lab supported USB hub and pass this through completely and plug the Zwave usb stick in the hub.

And if your ESXi will serve some other things in the home too, consider upgrading to a VT-d capable setup. Doing so you can pass through a PCIe device (like a seperate USB controller card). Makes the investment a little less sourā€¦

Thanks for the offer. Iā€™ll take you up on that when I can. Iā€™ve started over and am doing things ā€œthe rightā€ way this time. Virtualization is on, Iā€™m making 64-bit VMs, Iā€™m passing my working drives in as RAW instead of vmdks, and Iā€™ve reverted back to the older USB drivers.

But Iā€™ve not yet had time to spin up a new VM for OH. Iā€™m having some trouble getting my Gogs server running from the backup and have very little time. So far I have Plex (the 4-year-old has gotta have his movies), OpenMediaVault, and a desktop VM rebuilt. I still need to get Gogs working properly and restore my repos, a Calibre server, Alfresco, and all the home automation stuff like mosquitto, influxdb, grafana, and openHAB.

When I get back to rebuilding my home automation VM and if I still have trouble Iā€™ll come back and post. So far Iā€™ve not had any more trouble with ESXi, though I havenā€™t tried to pass through the S2 dongle yet.

Thanks again!

Rich

Would be nice if you could write up something of combining OpenHAB and InfluxDB with Grafana.

I have a friend who implemented Grafana + InfluxDB here to log all my temperature data from the KNX bus but since OpenHAB can do the same I would like to centralise this stuff.

InfluxDB + Grafana + KNX was a little bit too much for me. AMA about vSphere (ESXi) or Hyper-V but as always the road to getting something to work under Linux is steep as ****

You donā€™t have any experience with Sonos and OpenHAB do you? :stuck_out_tongue:
Sonos - Spotify Playlist as favorite not starting

Something like this write-up from Thom? That is what I used and I put my experiences deploying it in Docker in a posting further down. Being able to deploy all these servers as Docker containers is the primary reason I need 64-bit VMs.

If you already have them both installed, it will be a simple matter of creating the users and DB in InfluxDB and setting up Persistence properly.

Unfortunately, I have no experience with Sonos. They are too pricey for me and I donā€™t have audio integrated with my automation. Everything runs from our phones so Iā€™ve had no need.

Once I do get this all set up and running I do plan on writing up a tutorial showing how I set up my environment, lessons learned, and posting my Ansible playbooks I used to configure everything. It might give someone somewhere some good ideas perhaps.

1 Like

Thank you for leading me in the right direction! I also have OpenHAB running in an Ubuntu VM under ESXI 6.5. I had the same problems as in post #1. I just upgraded ESXI to 6.5 Update 2 and now it seems to work without changing the serial drivers.

https://esxi-patches.v-front.de/ESXi-6.5.0.html

1 Like