Install a new server

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

Moderator: leecollings

User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Install a new server

Post by Egregius »

Sorry, stupid webshops :?
https://www.coolblue.be/nl/product/8160 ... ifications indicates a M2 SSD size of 80mm of wich I concluded that a M2 slot was available.
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

I have the NUC running ...

It was quite a challenge.
The proposed Ubuntu Mate does not work for a NUC, but after some searching, a correct ubuntu version can be found on the Intel site.

I only missed that the firmware also needs to be updated, otherwise the nuc doesn't "understand" what you want with the burned iso on the USB.

Eventually succeeded, only ubuntu got stuck, so installed again, and then it turned out to be stable.

After some searching I found an explanation via google to install Oracle VirtualBox, but do not get in error to install the ready version, you really need the version of the website, otherwise you cannot install the extension pack.
And reading is also something a technician sometimes forgets.

I made a viruele machine for domoticz, first with a Ubuntu version, but I didn't get Domoticz installed on it, so I went for the raspbian desktop, hoping that the easy installation method would work ..
Well that does not work, so eventually installed via the "not so easy way", that was ultimately successful.

After domoticz was running I made an attempt to load the configuration of one of the pi's, I succeeded, but with this configuration domoticz keeps crashing, the log says that something would go wrong in the MySensors plugin .. so I started using the Pi again, considering that it was all about (yes, I had stopped Domoticz on the Pi).
I only think now that I have the pi also run as a slave, maybe it goes wrong there ..

The "point" is that I have quite a bit of historical (weather) sensor data in domoticz that I don't want to throw away, but maybe that I will eventually do so.

In short, after many hours of work, I finally have the configuration running, but I wanted to throw the NUC through the window a few times because everything didn't work ....

As a monitor I used a TV which is on my desk as an extra screen, but it did not occur when I rebooted, which I finally solved by reducing the resolution.

Furthermore, I have not yet managed VirtualBox and the Virtual machines to start automatically after a reboot.


Do you perhaps know if there is a way to import historical sensor data into a new config?
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Install a new server

Post by waaren »

dzjr wrote: Saturday 04 January 2020 0:10 I have the NUC running ...
I followed a different approach and installed Debian buster on the NUC and that went surprisingly smooth. Also installing domoticz out of the box "the easy way" worked first time. The only real issue I experienced was that I ordered the wrong storage as there was no slot for the NVM storage so I ended up using my spare SSD. I have not tested any USB connected hardware (Zwave stick / RFLink / P1) yet.
Compiling and testing are a bit faster on this system (with 8GB Ram) then on a RPI-4 with 4 Gbyte using Synology NAS as storage but for normal domoticz use, the Raspberry will do just fine.
Do you perhaps know if there is a way to import historical sensor data into a new config?
You can use the procedure as described in this topic
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Install a new server

Post by Egregius »

So you installed Ubuntu to get virtualbox running and then a virtual machine for domoticz?
Why not installed a real hypervisor like Proxmox?
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 »

Egregius I also use Proxmox (with Domoticz running as a VM), really like the easy backup and restore to / from my NAS.

I agree if the goal is just to run Domoticz as a VM then I'd suggest using Proxmox.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

Egregius wrote: Saturday 04 January 2020 12:05 So you installed Ubuntu to get virtualbox running and then a virtual machine for domoticz?
Why not installed a real hypervisor like Proxmox?
Just becouse i am not a Linux engineer, and i dont Know Proxmox or other server software, sorry for that :|

I searched for virtual machines so i can run two servers on one machine, and Google came up with VirtualBox.

I was already happy that I had the nuc up and running with two servers / controller software packages.

perhaps it was/is a better idea to use the Pi4 instead of a NUC. ;)
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

waaren wrote: Saturday 04 January 2020 0:34
dzjr wrote: Saturday 04 January 2020 0:10 I have the NUC running ...
I followed a different approach and installed Debian buster on the NUC and that went surprisingly smooth. Also installing domoticz out of the box "the easy way" worked first time
Do you perhaps know if there is a way to import historical sensor
You can use the procedure as described in this topic
probably i copied the wrong rules, got the message that the server where the domoticz software came from today.

again, I was glad that I had everything running, especially considering that outside of some things on a raspberry pi I have no linux and server experience.


I had seen your response to the post of importing old data, thank you for your response, i removed the question there, i am very sorry dit the crossposting.
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Install a new server

Post by Egregius »

dzjr wrote: Sunday 05 January 2020 0:53 Just becouse i am not a Linux engineer, and i dont Know Proxmox or other server software, sorry for that :|
It's quite simple. Boot from USB stick, follow some basic steps. Once installed everything is webbased so you can move the nuc away from a monitor.
But hey, if it's up and running and it's stable why do it over.
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

Egregius wrote: Sunday 05 January 2020 8:22
dzjr wrote: Sunday 05 January 2020 0:53 Just becouse i am not a Linux engineer, and i dont Know Proxmox or other server software, sorry for that :|
It's quite simple. Boot from USB stick, follow some basic steps. Once installed everything is webbased so you can move the nuc away from a monitor.
But hey, if it's up and running and it's stable why do it over.
I will delve into the benefits of Proxmus compared to the current configuration.
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

Egregius wrote: Sunday 05 January 2020 8:22 It's quite simple. Boot from USB stick, follow some basic steps. Once installed everything is webbased so you can move the nuc away from a monitor.
But hey, if it's up and running and it's stable why do it over.
I have taken the step, and installed Proxmox, which is indeed more convenient than the old config with virtualbox, thank you for thank you for pointing it out to me.

Starting a VM at Boot is also very easy.

I tried to set up a VM for Domoticz, but I can't get it working.
I tried it in a Ubuntu 16.04.6 LTS container, it looks like domoticz is installed (built from source), but I can't reach the webpage.
I also tried it via raspbian desktop, here I could even install it on the "Easy way", but here too I can't reach it in the webpage, not even in the browser in the VM itself.
On both machines I see an IP address, on the Raspbian I even have internet, so there is a connection ...

Furthermore I tried a debian container and with unbutu mate, but it didn't even work to install ....


Is there a recommended solution for domoticz in Proxmox?
Or perhaps a tutorial how to tackle it?


Another VM with its own OS and web server is working properly.

Thanks in advance!

dzjr
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
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 »

You don't want to be using a "container", I'm assuming you chose LXC for running Domoticz which is not ideal since it won't be easy to pass through USB devices.

Delete the container and create a VM, upload the ISO for debian or ubuntu whichever you want and go through the installation on screen in Proxmox.

I'd suggest Debian Buster or Ubuntu Mate.
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
User avatar
sancla
Posts: 105
Joined: Wednesday 01 January 2020 23:01
Target OS: -
Domoticz version:
Contact:

Re: Install a new server

Post by sancla »

Here you go:

Domoticz on virtual Debian 10.2 (Buster) with VMware vSphere

https://sancla.com/domoticz/domoticz-on ... e-vsphere/

Works just as well on Proxmox ;) ...
Check these howto's: https://sancla.com
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 »

sancla I don't think telling the dzjr to switch to another virtualization platform is the answer.

read the thread..
Unless otherwise stated, all my code is released under GPL 3 license: https://www.gnu.org/licenses/gpl-3.0.en.html
User avatar
sancla
Posts: 105
Joined: Wednesday 01 January 2020 23:01
Target OS: -
Domoticz version:
Contact:

Re: Install a new server

Post by sancla »

ben53252642 wrote:sancla I don't think telling the dzjr to switch to another virtualization platform is the answer.

read the thread..
Totally agree, but remind me again, who is telling dzjr to switch to another virtualization platform?

Not really sure if you have read the article...

If you did you would know that the article is just as much a guide for using Debian Buster for Domoticz, per your suggestion. Based on your comment I created that guide. You're welcome...

Now, if I can add to that with more information about Proxmox and how to create an virtual machine, I am more then willing to provide support on that subject... How can I help?

Sent from mobile phone

Check these howto's: https://sancla.com
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Install a new server

Post by Egregius »

edit: Just saw your first reaction on mobile and responded on computer without reading the other replies. Sancla's how-to looks pretty good. The hypervisor platform doesn't really matter, weither it's on vSphere or ProxMox or wathever. The most important part about it is that you use a real hypervisor and not Virtualbox on top of another OS. Virtualbox is great for testing something on a Desktop. A hypervisor is good for the long run.
I choose Proxmox because we use it at work so I don't need to now multiple systems and it never failed me in 10 years.


Is's been a long time ago, but I think something like this:

Download the amd64 ISO from Debian: https://cdimage.debian.org/debian-cd/cu ... 64/iso-cd/
Upload it to Proxmox
Create a new VM. I give it 4 cores and 4GB of RAM. Choose the HD size, mine is at 20GB. Choose the Debian ISO for CD and a bridged network device.
Screenshot at jan. 08 06-30-11.png
Screenshot at jan. 08 06-30-11.png (38.64 KiB) Viewed 2118 times
Boot and install Debian, a desktop version is not needed as this is a server. Once installed give it a fixed IP address, or make a reservation in the DHCP server. On the hardware details of the VM you can add the USB devices.

Domoticz must be available on the chosen IP as there's no firewall by default.
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

Both as @sancla and @Egregius thank you very much for the help,

I have the domoticz server up and running in Proxmox, entirely according to the explanation of @sancla
It was simple and quick to install.

So for me the thumbs up for the two of you!

Thanks again!
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

sancla wrote: Wednesday 08 January 2020 1:17
ben53252642 wrote:sancla I don't think telling the dzjr to switch to another virtualization platform is the answer.

read the thread..
Totally agree, but remind me again, who is telling dzjr to switch to another virtualization platform?

Not really sure if you have read the article...
Friends, arguing is not necessary it is better to have a cup of coffee!
The explanation of @sancla was very clear, and if the settings of @Egregius can be added, is it perhaps a welcome addition to a wiki?

for example if: installing Domoticz on a Virtual Machine on minipc.
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Install a new server

Post by Egregius »

Feel free to add it, it’s fresh in your memory ;)
dzjr
Posts: 45
Joined: Monday 02 July 2018 23:35
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.100xx
Location: Alkmaar, The Netherlands
Contact:

Re: Install a new server

Post by dzjr »

A small addition,

You have to install pip3 manually
sudo apt install python3-pip

and than you can add the plugin manager.
NUC Proxmox VM Stable & Raspberry Pi-3 Domoticz Beta
Tradfri Pluging by Moroen, Home made MySensors, Luftdaten, Home & Garden automatisation.
APC Back-UPS XS 700U, Modbus RTU & Janitza UMG103, RF-Link
Sonos plugins
User avatar
sancla
Posts: 105
Joined: Wednesday 01 January 2020 23:01
Target OS: -
Domoticz version:
Contact:

Re: Install a new server

Post by sancla »

dzjr wrote:A small addition,

You have to install pip3 manually
sudo apt install python3-pip

and than you can add the plugin manager.
I'll add this to the guides soon, thanks for the feedback!

Sent from mobile phone

Check these howto's: https://sancla.com
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest