3
Config File
Michel Roegl-Brunner edited this page 2025-05-12 11:44:33 +02:00

You can install the scripts as usual.

Note: There is currently no support for Alpine Linux.

🖥️ Run LXC Install Script

Use our scripts from the development or main repo.

After starting the script, select:

4 Use Config File

Script Menu


⚙️ Config File Setup

Create a config file on your PVE Host before running the scripts.
Default path: /opt/community-scripts/.settings

You may change this path during the script prompt.

Config File Path

If any values are missing in your config file, the script will fall back to default settings.

Defaults


🔧 Available Settings

Caution

Input validation is limited. Incorrect values may break the script.

Name Value
CT_ID LXC ID (single number or range e.g. 100-9999)
CT_TYPE 1 = unprivileged, 0 = privileged
PW Root password
HN Container hostname
DISK_SIZE Disk size in GB
CORE_COUNT Number of CPU cores
RAM_SIZE RAM size in MiB
BRG Bridge name (e.g., vmbr0)
NET IP address/CIDR (e.g., 192.168.0.1/24)
GATE Gateway IP (e.g., 192.168.0.254)
APT_CACHER_IP APT-cacher IP (e.g., 192.168.0.2)
DISABLEIP6 yes or no
MTU Network MTU (e.g., 1500)
SD Search domain (e.g., example.com)
NS DNS server IP (e.g., 192.168.0.100)
MAC MAC address
VLAN VLAN ID (e.g., 100)
TAGS Custom tags (semicolon-separated)
SSH yes or no
SSH_AUTHORIZED_KEY Public SSH key
VERB Verbose mode: yes or no

📄 Example Config File

Each value must be wrapped in double quotes:

DISK_SIZE="25"
CORE_COUNT="33"
RAM_SIZE="4500"
HN="TEST"
BRG="vmbr1"
NET="10.10.10.171/24"
GATE="10.10.10.254"
VLAN="100"
SSH="yes"
TAGS="dev;testing"
SSH_AUTHORIZED_KEY="REDACTED"