Repository navigation
EN Proxmox
From the shell of the Proxmox host, as root:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Guiyomee/RustNVR/main/packaging/proxmox/rustnvr-lxc.sh)"The script creates a Debian container (13, otherwise 12) that starts with the host, installs FFmpeg and the latest RustNVR in it, then shows the address, the account and the password. The script's screens are in French.
Run in a terminal without options, the script offers:
- Default settings: unprivileged container, 2 cores, 2 GB, 8 GB of disk, DHCP; a summary to confirm before the creation;
- Advanced settings: every setting of the Proxmox VE Helper-Scripts, one screen per setting, « Back » returns to the previous one: type, root password, number, name, disk, cores, memory, swap, storages, Debian 12 or 13, bridge or SDN vnet, IPv4 (DHCP or fixed), IPv6, MTU, DNS, MAC address, VLAN, tags, SSH, features (nesting, keyctl, FUSE, TUN…), graphics card, mounts, apt cache, proxy, time zone, protection; then RustNVR's: port, admin password, version, where recordings go (container disk, a host folder or an SMB share). The final summary still lets you go back; the settings can then be saved;
-
Saved settings for RustNVR and My default settings (those of the
Helper-Scripts) when these files exist
(
/usr/local/community-scripts/defaults/rustnvr.vars,/usr/local/community-scripts/default.vars). The number, fixed addresses, MAC address and passwords are never written there.
Without a root password, root is signed in automatically on Proxmox's web
console and pct console.
With options, nothing is asked. With the one-line command, they go after
--. Settings can also come from the environment, under the names of the
Helper-Scripts (var_cpu, var_ram, var_disk, var_brg…):
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Guiyomee/RustNVR/main/packaging/proxmox/rustnvr-lxc.sh)" -- --help
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Guiyomee/RustNVR/main/packaging/proxmox/rustnvr-lxc.sh)" -- --ctid 120 --ip 192.168.1.50/24 --gw 192.168.1.1 --gpu
var_cpu=4 var_ram=4096 bash -c "$(curl -fsSL https://raw.githubusercontent.com/Guiyomee/RustNVR/main/packaging/proxmox/rustnvr-lxc.sh)" -- -y| Option | Default | |
|---|---|---|
--ctid N, --hostname NAME
|
the next free one, rustnvr
|
|
--cores, --memory, --swap, --disk
|
2, 2048 MB, 512 MB, 8 GB | 2 GB leave room for object recognition |
--storage ID, --template-storage ID
|
the first active storage, local
|
container disk, Debian template |
--debian 12|13, --privileged
|
13, unprivileged | privileged: not advised, useless to RustNVR |
--root-password P, --ssh-key FILE, --ssh
|
none | root access; --ssh installs the SSH server |
--bridge, --ip, --gw
|
vmbr0, dhcp
|
--ip 192.168.1.50/24 --gw 192.168.1.1 |
--ipv6 none|auto|dhcp|ADDR/MASK, --gw6
|
none |
|
--mtu, --mac, --vlan, --dns "IP IP", --searchdomain
|
those of Proxmox and the host | |
--tags, --timezone, --protection, --console tty|console|shell
|
rustnvr, the host's, no, tty
|
the time zone drives the night hours of the AI |
--no-nesting, --keyctl, --fuse, --tun, --mknod, --mount-fs nfs,cifs
|
nesting only | RustNVR only needs nesting |
--apt-cacher IP, --proxy URL, --no-proxy LIST, --host-ca
|
— | downloads of the installation |
--post-install FILE, --verbose
|
— | a host script run at the end |
--port N, --password P, --version vX
|
8080, drawn at random, the latest |
--password: RustNVR's admin account |
--gpu, --gpu-device PATH
|
— | graphics card for the H.264 conversions |
--recordings DIR |
— | a host folder for the recordings |
--smb '\\IP\share\folder', --smb-user, --smb-domain
|
— | an SMB share for the recordings |
--archive FILE |
— | an archive on the host (its .sha256 next to it) instead of the download |
-y |
— | no menu, even in a terminal |
Passwords: given as options, they stay in the shell history and show in
the process list during the installation. The menu asks for them without
showing them; without the menu, prefer the environment:
RUSTNVR_ROOT_PASSWORD, RUSTNVR_WEB_PASSWORD, RUSTNVR_SMB_PASSWORD.
Updating, from the host: pct exec <ctid> -- /usr/local/bin/rustnvr-update. From the interface too (since 2026.11.10): About → Updates → Update to
… (administrators). A separate service, as root, downloads the version from
the repository chosen at installation, checks its fingerprint, installs it and
restarts RustNVR (about a minute); the page reloads by itself. That service is
installed by an update by hand made with the rustnvr-update of 2026.11.10 or
later. If the button does not show (update made from an older version),
reinstall the current version once, from the host:
pct exec <ctid> -- /usr/local/bin/rustnvr-update --version v<installed version>.
Container disk (default, --disk).
A host folder: --recordings /path/on/the/host adds it as mount point
mp0 on /var/lib/rustnvr/recordings. In an unprivileged container, account
N of the container is account 100000 + N of the host: the script gives the
folder to the container's rustnvr account (usually 100999:100999). On a
share where the host's root cannot change the owner (NFS with root_squash,
CIFS), the script warns and goes on: set the owner on the server side or in
the mount options. The database and thumbnails stay on the container disk.
SMB share (--smb, or the menu). An unprivileged container cannot mount
a share itself: the script mounts it on the host. It tries the share
before creating anything, then:
- writes the credentials to
/etc/rustnvr-lxc/smb-<ctid>.cred(root only); - adds a line to
/etc/fstab:/mnt/rustnvr-<ctid>, owned by the container'srustnvraccount,soft,nofail; - makes
/mnt/rustnvr-<ctid>unchangeable while the share is not mounted there: RustNVR never fills the host's disk in its place; - gives the share to the container on
/nasand declares it in RustNVR as the default destination, « network share must be mounted »: without the share, recording goes on on the container disk; - turns on
rustnvr-smb@<ctid>.timer: every 2 minutes, it mounts the share again if missing (a NAS that starts after Proxmox), then restarts the container so that it sees it.
NAS by hand (container already created, or NFS): mount the share on the
host (fstab), then give it with pct set <ctid> -mp1 /mnt/nas/rustnvr,mp=/nas;
declare /nas in Settings → Storage (« Network share must be mounted »).
The share's account on the host side must match (option
uid=100999,gid=100999 of a CIFS mount; pct exec <ctid> -- id rustnvr
gives the account, add 100000).
vzdump backups: a mount point taken on a host folder (mp0, mp1…) is
not in the container's backups; only its disk is. For the configuration
alone, RustNVR has its own backup (Settings → Backup).
--gpu installs the VAAPI drivers and gives /dev/dri/renderD128 to the
container (option dev0 of Proxmox VE 8.2 and later, with the container's
render group). By hand, or on an older version, in
/etc/pve/lxc/<ctid>.conf:
dev0: /dev/dri/renderD128,gid=<gid of the render group in the container>
Before 8.2: lxc.cgroup2.devices.allow: c 226:128 rwm and
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file.
Then Settings → Network → « Convert on the graphics card »: the card's state
shows next to it. A card added later is taken into account at the next
rustnvr-update.
Give it to the container with the video group (44 on Debian), then run the
installation again to open /dev to the service:
pct set <ctid> -dev1 /dev/video0,gid=44
pct reboot <ctid>
pct exec <ctid> -- /usr/local/bin/rustnvr-updateThen Cameras → Add → « USB webcam ».
RUSTNVR_SOURCE (or --source) takes the script, install.sh and the
archives from that server rather than from GitHub. Its releases must hold the
archive and its .sha256:
RUSTNVR_SOURCE=https://gitea.example.org bash -c "$(curl -fsSL https://gitea.example.org/Guiyomee/RustNVR/raw/branch/main/packaging/proxmox/rustnvr-lxc.sh)"rustnvr-update then uses that server by itself (/etc/rustnvr/update.conf).
Without access to GitHub (offline machine, development version):
--archive installs an archive already on the host. Updates work the same
way: pct push <ctid> <archive> /root/… (and its .sha256), then
pct exec <ctid> -- /usr/local/bin/rustnvr-update --archive /root/….
For those who prefer a VM: a Debian VM with Docker, then the published image
(see Docker). The graphics card is then given to the VM (PCI
passthrough of the iGPU), then to the container (/dev/dri, render group).