Install a new server

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Jordindc
Posts: 13
Joined: Monday 31 December 2018 7:48
Target OS: Linux
Domoticz version: 2020.2
Contact:

Re: Install a new server

Post by Jordindc »

Hi all,

Reading this thread I decided to move my domoticz platform from Raspberry/Razzberry to NUC/Z-stick. I’m currently into the process of setting up the new server. Finally, I have a NUC8i3BEK 16Gb RAM/ 240SSD, and AEOTEC z-stick to control z-wave network. Installed Proxmox 6.1 on buster (img from proxmox site) and I decided to create a debian container from a template. Everything is working fine and smoothly. Installed domoticz in the container with some virtual devices and linked Netatmo devices (weather and heating). Everything is ok, so far. Now I just plugged z-stick to NUC, and I can see /dev/ttyAMC0 port. Modifying 101.conf I achieved to passthrough it to container. I can see ttyAMC0 port with right owner and permissions (root:dialout). But when I try to create OpenZWave USB hardware on domoticz, no available port is shown in pulldown field. And no idea of how to fix it. Any clue of what is going on?

Thank you very much in advance,
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Install a new server

Post by ben53252642 »

I'm pretty sure I would have previously mentioned it but you need to setup a Virtual Machine in Proxmox and manually install Debian via an ISO. The reason for this is that you can set to pass-through a USB device to a virtual machine. Even if you manage to find a way to pass through to the container, it may stop the ability to backup the container.

Backup and restore of containers and virtual machines is easily one of the most awesome features of Proxmox.

Containers are great too for some applications, for example I run Pi-Hole and Plex within containers.

With 16gb of memory your Proxmox should be able to run quite a lot of containers and virtual machines if you want to play with other things.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
Jordindc
Posts: 13
Joined: Monday 31 December 2018 7:48
Target OS: Linux
Domoticz version: 2020.2
Contact:

Re: Install a new server

Post by Jordindc »

Thanks for replying, Ben.

According my requirements, I thought using a container ti create my domoticz server was more suitable. And I achieved to pass thorugh the USB stick to the container using documentation found in proxmox forum with members from staff. So it is an "official" way to pass through USB devices to containers. What's more, I can read USB storage devices from my container ... but I can't see /dev/ttyAMC0 from my domoticz instance (and it exists).

So I created a VM and it is now working perfectly, it's true, but I still think there has to be a way to do it using containers (and I was so close ...).

Regards
ben53252642
Posts: 543
Joined: Saturday 02 July 2016 5:17
Target OS: Linux
Domoticz version: Beta
Contact:

Re: Install a new server

Post by ben53252642 »

For my setup, generally if the application needs USB pass-through or multiple network adapters I use a VM, otherwise I use containers.

I gave my Domoticz VM 4gb of memory in Proxmox which I think is heaps.

You will probably also want to enable memory ballooning (so the VM hands back un-used memory to Proxmox and only takes what it needs).

It's set where you set the amount of RAM for the VM in the Proxmox web interface

https://pve.proxmox.com/wiki/Dynamic_Me ... Ballooning
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest