Skip to main content
Community Scripts logo
Core engine

Install menu and Advanced Install wizard

Every dialog a container script shows before it creates the container, in order, with what each one sets.

A container script calls start, which on a host runs install_script (ui/menu.func). That function runs the host checks, shows the install menu and, for Advanced Install, the 32-step wizard advanced_settings (ui/advanced.func). ui/build-ui.func loads these parts; the same dialogs run on Proxmox VE and on Incus.

Before the menu

install_script runs these in order. Each one either passes silently or stops the run.

CheckWhat it does
shell_checkRequires Bash, otherwise exit 103
root_checkRequires root and refuses sudo, otherwise exit 104
pve_checkRequires a supported host and a working /etc/pve
ensure_whiptailInstalls whiptail when it is missing
arch_checkamd64 or arm64 only; on arm64 follows the script's var_arm64
arm64_noticeOn arm64 shows the ARM64 SUPPORT message box
ssh_checkWarns when connected over SSH from another subnet
maxkeys_checkOffers to raise the kernel key limits when they are nearly used up
storage_content_checkRequires a storage for templates and one for container disks; offers to enable the content on an existing storage
diagnostics_checkOn the first run asks whether to send diagnostics

The DIAGNOSTICS dialog asks Send Diagnostics of LXC Installation? once and stores the answer as DIAGNOSTICS=yes or DIAGNOSTICS=no in the file diagnostics in the state directory (/usr/local/community-scripts). Later runs read the file and do not ask.

Scripts that support two operating systems, such as ct/adguard.sh, ask Choose the container OS in plain text before all of this, with a 10 second timeout that picks the first entry. Setting var_os skips the question.

The install menu

Title Community-Scripts Options, buttons Select and Exit Script.

Entrymode=What happens
Default InstalldefaultUses the script's defaults and any var_* from the command line, prints the summary and continues.
Advanced InstalladvancedRuns the wizard below.
User DefaultsmydefaultsLoads default.vars. Creates it on first use.
App Defaults for the appappdefaultsLoads defaults/<app>.vars. Only listed when that file exists.
SettingssettingsOpens the settings menu and returns here.

Setting mode on the command line picks the entry without showing the menu. The accepted spellings are in the configuration reference. What each entry loads and which value wins is in Defaults and install modes.

After Default Install, Advanced Install and User Defaults the storage for the template and for the container is settled against default.vars; after App Defaults against the app's file. With one suitable storage it is taken silently, with several the Storage Pools dialog asks.

Settings

Title Community-Scripts SETTINGS Menu.

EntryWhat it does
Manage API-Diagnostic SettingShows the current diagnostics choice and offers to switch it
Edit Default.varsOpens default.vars in nano
Configure dev modeOpens the dev mode picker
Edit App.vars for the appOpens defaults/<app>.vars in nano. Only listed when the file exists.
Back to Main MenuReturns to the install menu

Advanced Install, step by step

The wizard shows Step N/32 in the top line. Next accepts a step, Back returns to the previous one, and Exit on step 1 ends the script. In the yes/no steps, Yes and No both move forward; Esc goes back. Nothing is applied until the last step is confirmed.

Fields that show a value start from the var_* the script or the command line set. Steps 4 and 11 to 15 start empty or from the app name regardless of var_hostname, var_mtu, var_searchdomain, var_ns, var_mac and var_vlan, and an empty answer there means "not set".

StepDialog titleSetsStarts atAccepts
1CONTAINER TYPEUnprivileged or privilegedvar_unprivileged, else unprivileged. A script that needs privileged labels that entry Privileged (app default).one of the two
2ROOT PASSWORD, then PASSWORD VERIFICATIONRoot passwordblankBlank for automatic login. Otherwise no spaces and at least 5 characters after leading - are removed; typed twice.
3CONTAINER ID (on Incus CONTAINER NAME)Container IDvar_ctid if free, else the next free IDOn Proxmox VE a number from 100 up without leading zero. An ID in use opens ID Already In Use and offers the next free one.
4HOSTNAMEHostname or FQDNapp name in lower caseLower-cased, spaces removed. Labels of letters, digits and hyphens, max 63 each, 253 total.
5DISK SIZERoot disk in GBvar_diskpositive whole number
6CPU CORESCPU coresvar_cpupositive whole number
7RAM SIZEMemory in MiBvar_ramwhole number, at least 128. A smaller number gets Did you mean ... MiB.
8NETWORK BRIDGEBridge, or an SDN vnetlist of bridges found in /etc/network/interfaces and interfaces.d, plus vnets marked [SDN]An entry that exists. With no bridge found, vmbr0 is used without asking, or the run ends with exit 116 if it is missing.
9IPv4 CONFIGURATIONIPv4 address and gatewaydhcpdhcp; static asks STATIC IPv4 ADDRESS (address with prefix) and GATEWAY IP (must be in the subnet); range asks IP RANGE SCAN, pings the range for the first free address, then asks GATEWAY IP.
10IPv6 CONFIGURATIONIPv6 method, address, gatewayfirst entry, autoauto (SLAAC), dhcp, static (asks STATIC IPv6 ADDRESS and the optional IPv6 GATEWAY), none, disable
11MTU SIZEInterface MTUblankblank, or 576-65520
12DNS SEARCH DOMAINSearch domainblank (host setting)blank, or DNS names
13DNS SERVERDNS serversblank (host setting)blank, or IP addresses separated by spaces
14MAC ADDRESSMAC addressblank (generated)blank, or XX:XX:XX:XX:XX:XX
15VLAN TAGVLAN tagblankblank, or 1-4094
16CONTAINER TAGSTagscommunity-script plus the script's var_tagsletters, digits, -, _, separated by ;
17SSH KEY SOURCE, then SSH ACCESSRoot SSH keys and SSH loginno keys, SSH offKeys: found (pick from the host's keys in SELECT HOST KEYS), manual (paste one in SSH Public Key), folder (Scan Folder/Glob, then SELECT FOLDER KEYS), none. Then Enable root SSH access?, default No.
18FUSE SUPPORTFUSE featurevar_fuse, else NoYes / No
19TUN/TAP SUPPORT/dev/net/tun in the containervar_tun, else NoYes / No
20NESTING SUPPORTNesting featurevar_nesting, else YesYes / No. No shows a NESTING WARNING unless the OS is Alpine.
21GPU PASSTHROUGHGPU detection and passthroughvar_gpu, else NoYes / No
22KEYCTL SUPPORTkeyctlvar_keyctl, else NoYes / No. Skipped for an unprivileged container, where it is always on.
23APT CACHER PROXY, then APT CACHER IPapt-cacher-ng use and addressvar_apt_cacher, else NoYes asks for an IP or URL
24HTTP/HTTPS PROXY, then HTTP PROXY URL and NO_PROXY EXCEPTIONSProxy and exceptionsYes when a proxy is already set, else NoYes asks for the URL, then the exceptions, pre-filled with localhost,127.0.0.1,.local
25HOST CA INHERITANCECopy host CA certificates into the containervar_inherit_host_ca, else NoYes / No. Skipped, and set to no, when the host has no *.crt in /usr/local/share/ca-certificates.
26CONTAINER TIMEZONETimezonevar_timezone, else the host'sblank for the host's zone, or a zone name such as Europe/Berlin
27CONTAINER PROTECTIONProtection against removalvar_protection, else NoYes / No
28CONSOLE MODEHow the web console attachesvar_cmode, else ttytty, console, shell
29DEVICE NODE CREATIONmknod featurevar_mknod, else NoYes / No
30MOUNT FILESYSTEMSFilesystem types the container may mountvar_mount_fsblank, or types such as nfs,cifs; paths are refused
31POST-INSTALL HOOK (HOST)Script run on the host after the installvar_post_installblank, or an absolute path without shell metacharacters. A path that does not exist opens FILE NOT FOUND and can be kept.
32VERBOSE MODE, then CONFIRM SETTINGSVerbose output; final confirmationvar_verbose, else NoThe summary lists every choice; Create LXC starts the build, Back returns to step 31.

Operating system and version are not part of the wizard. They come from the script or from var_os and var_version.

After the last step

  1. The chosen settings are printed and written to the build log.
  2. Storage is settled as described above.
  3. maybe_offer_save_app_defaults offers to keep the answers for this app: Save these advanced settings as defaults for <app>? when no file exists, or the APP DEFAULTS menu with Update Defaults, Keep Current, View Diff and Cancel when the answers differ from the saved file. See Defaults and install modes.

Other dialogs you may see

TitleWhen
Storage PoolsMore than one storage can hold the template or the container disk and none was preselected
UPDATE DEFAULTSA storage named in default.vars no longer holds that content; offers to write the new choice back
OS VERSION NOT AVAILABLEThe host's template catalog lacks the requested release; pick another
STORAGE ALMOST FULLThe chosen storage is at least 95% full
POST-INSTALL HOOK FAILEDThe hook from step 31 was not found or returned an error; the container is kept

Preflight is optional

run_preflight loads host/preflight.func only when ENABLE_PREFLIGHT=1 is set. A normal run skips it.