Raspberry or VM - Which installation recommended?

Hello everyone
I have a few questions about the best way to install Gladys and Snips.
I have a raspberry 3b+ and a server running unraid.

I read somewhere that it is recommended to install Snips alone.
So I wonder which of the following configurations is the most optimal:

  • Snips on unraid VM with Linux qemu
  • Gladys on another unraid VM with Linux qemu
  • use the raspberry as a satellite (in this case I buy a zero and keep the 3b+ for retro gaming)

Option 2

  • Snips and Gladys on the raspberry

Option 3

  • Snips on unraid VM
  • Gladys on the raspberry

Option 4…
If you have another solution to suggest I’m interested!

Thanks to you

Hi :slight_smile:

Wanting to associate a web server in addition to Gladys on my Raspberry 3B+
https://community.gladysassistant.com/t/serveur-web-derriere-gladys/3823?u=jean34

I had a lot of trouble and so I looked into VMs to do my tests and @VonOx explained that it wasn’t really reliable since the architecture is not the same (no ARM for the VMs). I don’t know Linux qemu so I can’t confirm my statements but it may be important to mention, so here you go :smiley: :rofl:

@Jean34 That’s not exactly it, you can’t run an ARM VM on x86.

@elysium Why QEMU? Gladys is multiarch, it depends on Node.js.
Gladys isn’t resource-intensive, you can run both side by side.

Thank you for your answers.

Why QEMU? Because I found a video tutorial titled « How to virtualize a Raspberry PI using QEMU in Linux and/or unRAID, » so I thought it was perfect :wink:

I need to test all of that a bit. I think I’ll leave Gladys on my Raspberry to start with. I’ll take care of Snips later, when the module is operational.

If you’re running a VM, you might as well run Gladys directly with Docker, no need to bother with that, you’ll lose performance :slight_smile:

To improve performance, it would be better if I installed the Docker image directly on Unraid, which allows running Docker containers.
I will see if I can install Gladys without too much trouble.
I’m just wondering, if I connect a Zigate to my server, whether this device will be recognized by Gladys.

I need to look into all this!

Thanks

I’m digging up an old topic because I have a server running Unraid and I would like, for the moment, to do without my Rpi3 on which Gladys was running until now.
Has anyone run Gladys directly on Unraid? If so, would it be possible to guide me a bit?

Hi @guim31

You just need to install docker Unraid Docs

Actually, there’s no need to install Docker, I already have plenty of containers running.
What bothers me is the configuration:

docker run -d \
--restart=always \
--privileged \
--network=host \
--name gladys \
-e NODE_ENV=production \
-e SERVER_PORT=80 \
-e TZ=Europe/Paris \
-e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/gladysassistant:/var/lib/gladysassistant \
-v /dev:/dev \
gladysassistant/gladys:4.0.0-beta-amd64

I don’t know what I should map the SQLITE_FILE_PATH, and the variables /var/run/docker.sock and /var/lib/gladysassistant to…
I’m used to basic things like pointing a folder /config, which in Unraid is /usr/appdata/gladys/ for me.

This is a container variable, you don’t need to touch it.

I think you don’t need to touch the docker.sock.

This is the volume mount on your system, this is where you should put /usr/app data etc…

This is to be able to use USB dongles (Z-Wave for example).

Thanks a lot @VonOx for these clarifications, I will try this afternoon to do some tests :slight_smile:

It’s been a while since I haven’t dived back into Gladys (because my devices are not / not well supported yet) I hope to see some changes!

EDIT:
Perfect it worked :+1: (I did this remotely so I haven’t plugged in my dongles yet to see if they were recognized)