Openhab 5.0.1 on Debian virtual machine

SOLVED : Need to execute this before –>

sudo apt update
sudo apt install curl gnupg -y

Hello everyone

I installed Debian 13 (Trixie) on a Ugreen DXP 4800 Plus NAS, in a virtual machine. Goal: Install OpenHab 5.0.1.

I successfully installed Java 21 (OpenJDK).

But reading the OpenHab documentation, I apparently need to enter this line of code in the OpenHab installation protocol (add repository key):

wget -qO - ‘``https://openhab.jfrog.io/artifactory/api/gpg/key/public’`` | sudo tee /etc/apt/trusted.gpg.d/openhab.gpg > /dev/null

And I get this error:

bash: curl: command not found
gpg: No valid OpenPGP data found.

What should I do? I didn’t think I’d have any problems following the installation protocol mentioned on the OpenHab website, and I was previously using a Raspberry Pi. I’m stuck.

Thanks.

Debian doesn’t install a lot of things on a clean install. It doesn’t even install sudo.
Basically if it says not found it is usually because it is not installed, as you have found out.

I am running Debian 13 and openHab 5.0.1 on proxmox vm no problems. Enjoy.

1 Like

Do I read this correctly?

openHAB 5 on a Debian 13 VM on Proxmox?!

If so, why (if you do not mind me asking), instead of a LXC?

I am currently playing with Proxmox; I bought two Minisforum UM773 (and use a rPi as 3rd quorum member) specifically for openHAB, to ensure uptime, as it has become a critical system for the house. In fact, it is now essential (like electricity) for the house to run.

I didn’t use LXC because I have external devices on the host (eg sdr for the weather station) and it is easier to pass the external devices to the vm.

I am running LXC for zoneminder.
Like you the system is essential for running the house now.
I don’t have an automatic fail over but I do have another machine that I use proxmox backup to back up to and I have bareos for the files backups on all machines so it is fairly easy to get things going again. (if I am at home)

I don’t have an internet modem. I use opnsense on a proxmox vm and it does the modem stuff, so one less piece of hardware, but a single point of failure if proxmox dies.

Passing hardware into a LXC container can be a pain so I too use a VM (Ubuntu instead of Debian but mostly the same idea). Also because of the hardware passthrough challenges, I never bothered trying to set up a cluster. openHAB is the only thing close to a vital service I run that would need to be run like this (though it’s starting to annoy my wife when Mealie is down) so I’ve not pursued it. But I’ve a spare machine now that I’ve upgraded my opnSense to one with 2.5 GB ports and plan on starting to experiment with that.

So my config is similar to @ubeaut’s in a lot of ways (and different in other ways).

I think the hardware issue can be addressed with a dongle similar to Amazon.com: SMLIGHT SLZB-06M – A Zigbee 3.0 to Ethernet, USB, and WiFi Adapter with PoE Support, Works with Zigbee2MQTT, Home Assistant, ZHA : Electronics or ser2net. But I’ve heard lots of problems with ser2net and I don’t have PoE so the expense for this is kind of high. I may just leave OH on a VM pinned to the host with the dongle for good.

1 Like

As already stated, if you need to attach usb dongles (zwave, zigbee, …) it is a lot easier to use a vm instead of a lxc.

openHAB: VM
zigbee2mqtt: lxc
mqtt: lxc
mariadb persistence: lxc
gitea: lxc
openmediavault: lxc
zwave-js-ui: lxc
grott: lxc

If you have problems in one area, all the other areas are not affected.

1 Like

I am using smlight poe and it works very well. No issues. I don’t use ZigBee binding but zigbee2mqtt as it is well supported for devices and upgrades. As a matter of fact I just upgraded it just before writing this. I am running out in docker.

1 Like

Thanks to all three of you… I am certainly slow, or shall we say pragmatic.

@ubeaut suggested the Smilight SLZB-06M elsewhere to me; I now have three (house, shed, garage). Like ubeaut said: no issues. (Thanks for suggestion these.)

I am building a Proxmox cluster as we speak to ensure most 9s possible for openHAB’s uptime.

I will have similar things @sihui suggested; e.g Gitea for version control (file based just don’t cut it any more); the Zigbee2MQTT instances, mqtt, etc.

I have only managed switches, and got some with PoE @rlkoshak mentioned, to feed cameras and the SLXB-06M devices.

I actually have two Proxmox systems; the cluster for the house, and a single Proxmox for the private network; e.g., should we die or ever move out; as openHAB will (have to) stay.

It was debated in various places why anyone would rely on an open source system for essential services; but I can attest to openHAB’s stability, having seen uptime of 700 days+ (only interrupted due to upgrade or hardware failure)… one reason why I am dragging my feet with upgrades. But Proxmox will allow for an easy switch in the future.

# [2025-09-02 08:18] openhabian@openhabian ~ $ 
uptime
 08:18:28 up 419 days,  9:10,  3 users,  load average: 0.49, 0.47, 0.58

I spend 15k USD on heating and water related services for the house build; why would I not spend 2k on openHAB related gear?!

Happy virtualising! :smile: