Vigiora

Ця сторінка ще недоступна мовою «Українська». Її показано англійською.

Install on ProxmoxЗ версії 1.8.0

Run Vigiora Server in its own Proxmox VE container with one script, or set the container up by hand.

If you run Proxmox VE, you can give Vigiora Server a small container of its own. A helper script creates the container, installs the server in it with the normal installer, and prints the address to open.

What you need#

  • Proxmox VE 8, and a root shell on the Proxmox host (Datacenter → your node → Shell, or SSH as root).
  • A storage that can hold container disks, with room for the disk size you choose (32 GB by default) and your recordings. See recordings storage below.
  • A network bridge (vmbr0 by default) that gives the container an address by DHCP, or a free address you pass with --ip. The script stops before creating anything if the bridge does not exist.
  • Internet access from the container: the installer downloads the signed release.

The container is a plain, unprivileged Debian 12 container with nesting on, as the Proxmox web UI does by default. If you prefer a virtual machine, make a Debian or Ubuntu VM and follow Install on Linux inside it.

Install with the script#

  1. Download the script and read it

    On the Proxmox host shell:

    Proxmox host shell
    curl --proto '=https' --tlsv1.2 -fsSL https://downloads.vigiora.com/proxmox.sh -o proxmox.sh
    less proxmox.sh
  2. Try it without changing anything

    Proxmox host shell
    bash proxmox.sh --dry-run

    It prints every pct, pveam, pvesm and pvesh command it would run. Only read-only queries run.

  3. Run it

    Proxmox host shell
    bash proxmox.sh

    It asks for the container id, storage, disk size, cores, memory, bridge and address, with a default for each, then asks before it creates anything. For no questions, pass the values as options and add --yes:

    Proxmox host shell
    bash proxmox.sh --yes --ctid 120 --disk 64 --ram 8192 --ip 192.168.1.50/24 --gw 192.168.1.1
  4. Open the server

    When it finishes it prints the address, for example http://192.168.1.50:8080. The installer shows the admin password once, in the output above that line: copy it. Then follow First sign-in.

    To pair the server with your account while it installs, copy the code from the install command on vigiora.com/download (the part after --pair) and add --pair <code> to the script. Otherwise pair it later, as the installer explains.

What the script does#

  • Creates one new unprivileged Debian 12 container with nesting on, with the id you chose, and starts it. It refuses an id that any container or virtual machine already uses, and never changes another guest.
  • Gets the Debian template only through pveam, the Proxmox tool for it.
  • Installs curl in the container, then runs the same one-line installer as Install on Linux inside it. That installer downloads only signed, checked files. The script adds no other download.
  • If ufw or firewalld is active in the container, the installer opens the web app only to private IPv4 networks and IPv6 local networks (fc00::/7 and fe80::/10), as on any Linux computer.
  • Prints every command before it runs it.
  • If the install fails, it leaves the container in place and prints how to look at the log, retry or remove it. It never deletes anything itself.

Options#

OptionОписЗа замовчуванням
--ctid NThe container id.The next free id
--hostname NAMEThe container hostname.vigiora
--storage NAMEThe storage for the container disk.The first storage that can hold container disks
--template-storage NAMEThe storage for the Debian template.local
--disk GBThe disk size in GB. Recordings need space: see below.32
--cores NCPU cores.2
--ram MBMemory in MB.4096
--swap MBSwap in MB.512
--bridge NAMEThe network bridge.vmbr0
--vlan IDA VLAN tag on the bridge.None
--ip dhcp|CIDRAn address by DHCP, or a fixed one such as 192.168.1.50/24 (add --gw).dhcp
--gw ADDRESSThe gateway, with a fixed --ip.—
--dns ADDRESSA DNS server for the container.The host's
--addonsTurns on nesting and keyctl, which Docker needs. See below.Off
--no-nestingTurns nesting off. Vigiora still runs, but Debian 12's own login and network services fail in the container.Nesting on
--pair CODEPairs the server with your account while it installs.—
--template NAMEUse this exact Debian template.The newest debian-12-standard
--yesNo questions: use the defaults and the options given.—
--dry-runPrint every command and change nothing.—

Each option can also be set with an environment variable, for example VIGIORA_CTID or VIGIORA_DISK.

Do it by hand#

The script only automates these steps. Replace 120 with a free container id and the template name with the one pveam lists:

Proxmox host shell
pveam update
pveam available --section system | grep debian-12-standard
pveam download local debian-12-standard_12.7-1_amd64.tar.zst
 
pct create 120 local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst \
  --hostname vigiora --ostype debian --unprivileged 1 \
  --features nesting=1 \
  --cores 2 --memory 4096 --swap 512 \
  --rootfs local-lvm:32 \
  --net0 name=eth0,bridge=vmbr0,ip=dhcp,firewall=0 \
  --onboot 1
pct start 120
 
pct exec 120 -- sh -c 'apt-get update && apt-get install -y curl ca-certificates'
pct exec 120 -- bash -c 'curl --proto "=https" --tlsv1.2 -fsSL https://downloads.vigiora.com/install.sh | sh'
pct exec 120 -- hostname -I

The last command shows the container's address. Open http://<that address>:8080.

Replace local-lvm with a storage that pvesm status --content rootdir lists; Proxmox installed on top of Debian has only local.

Add-ons and Docker#

Home Assistant and community add-ons run in Docker. Docker inside a container needs nesting and keyctl, which --addons turns on (or, by hand, pct set 120 --features nesting=1,keyctl=1, then restart the container).

The script turns nesting on by default. With --no-nesting, Vigiora Server runs but the container reports degraded; turn nesting back on with pct set 120 --features nesting=1 and restart the container.

Graphics card and Coral USB#

Vigiora Server records without any of this. These notes are for add-ons or your own software that use a graphics device or a Google Coral. We have not tested them with Vigiora, and the script does not do them for you.

Intel graphics (/dev/dri)#

On the Proxmox host (version 8.1 or newer), pass the render device into the container with the group id of the container's render group:

Proxmox host shell
pct exec 120 -- getent group render
pct set 120 --dev0 /dev/dri/renderD128,gid=104
pct reboot 120

Replace 104 with the group id the first command prints. The program that uses the device must run as a member of that group.

Coral USB accelerator#

A USB Coral shows up under a different USB id after its first use. Allow the USB bus in the container's file /etc/pve/lxc/120.conf:

/etc/pve/lxc/120.conf
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/bus/usb dev/bus/usb none bind,optional,create=dir

An unprivileged container also needs the device files to be readable by it, usually with a udev rule on the host. Restart the container afterwards.

Recordings storage#

Recordings are written to /var/lib/theia/recordings inside the container, on its disk. Three ways to give them more room:

  • A bigger container disk: pct resize 120 rootfs +100G.
  • A disk or folder on the host: bind-mount it into the container.
  • A NAS share: mount the share on the Proxmox host (NFS or SMB, in Datacenter → Storage or /etc/fstab), then bind-mount that folder. An unprivileged container cannot mount network shares itself.

To bind-mount a host folder, do this before you add cameras (moving recordings that already exist is not covered here):

  1. Stop the server and find its user id

    Proxmox host shell
    pct exec 120 -- systemctl stop vigiora
    pct exec 120 -- id -u vigiora

    Note the number the second command prints, for example 998.

  2. Give the folder to that user

    In an unprivileged container, user ids on the host are shifted by 100000. For the example above:

    Proxmox host shell
    chown -R 100998:100998 /mnt/recordings
  3. Mount it and start again

    Proxmox host shell
    pct set 120 --mp0 /mnt/recordings,mp=/var/lib/theia/recordings
    pct reboot 120

Proxmox backups of the container (vzdump) leave bind-mounted folders out, so back those up separately. To choose the data folder at install time instead, see put recordings on a separate disk.

Update#

The server updates itself. Keep the container's own system current like any Debian machine:

Proxmox host shell
pct exec 120 -- sh -c 'apt-get update && apt-get -y upgrade'

Do not run the Proxmox script again to update: it refuses a container id that is in use. To repair the installation, run the installer inside the container again; it is safe to repeat:

Proxmox host shell
pct exec 120 -- bash -c 'curl --proto "=https" --tlsv1.2 -fsSL https://downloads.vigiora.com/install.sh | sh'

Remove it#

First disconnect the server from your account, as described in Uninstall. Then:

Proxmox host shell
pct stop 120
pct destroy 120
Редагувати цю сторінку на GitHub