Skip to main content
Community Scripts logo
Skip to Content
Tools & Add-onsPVE Tools

PVE Post Install

Set up package repositories, the subscription notice, high availability services and updates on a fresh Proxmox VE 8 or 9 host.

post-pve-install.sh walks through the steps most people do by hand after installing Proxmox VE: fix the APT sources, switch from the enterprise to the no-subscription repository, remove the subscription notice, turn high availability services on or off, update and reboot. Every step is a question. A few things also happen on a no or without a question; they are noted in the tables below.

Website entry: post-pve-install. Source: tools/pve/post-pve-install.sh.

Run

In the Proxmox VE host shell, as root:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/post-pve-install.sh)"

In a cluster, run it on every node.

Supported versions

The script reads the version from pveversion and exits with code 105 on anything else:

VersionRoutineSources format
8.0 to 8.9start_routines_8.list files, Debian bookworm
9.0 to 9.2start_routines_9deb822 .sources files, Debian trixie

It starts with the text prompt Start the Proxmox VE Post Install Script (y/n)?. All later questions are whiptail menus. Cancel or Esc in a menu ends the script at that point; earlier steps stay applied.

Proxmox VE 8 steps

Each menu offers yes and no.

Menu titleOn yes
SOURCESOverwrites /etc/apt/sources.list with the bookworm, bookworm-updates and bookworm-security entries (main contrib) and writes /etc/apt/apt.conf.d/no-bookworm-firmware.conf to silence the non-free-firmware warning.
PVE-ENTERPRISEOverwrites /etc/apt/sources.list.d/pve-enterprise.list with the entry commented out.
PVE-NO-SUBSCRIPTIONWrites /etc/apt/sources.list.d/pve-install-repo.list with deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription.
CEPH PACKAGE REPOSITORIESWrites /etc/apt/sources.list.d/ceph.list with the ceph-quincy and ceph-reef entries (enterprise and no-subscription), all commented out.
PVETESTWrites /etc/apt/sources.list.d/pvetest-for-beta.list with the pvetest entry commented out.

Proxmox VE 9 steps

On 9.x the script looks at what is already there instead of overwriting it.

Sources format. If any *.sources file exists in /etc/apt/sources.list.d/, a message box says so and the format steps are skipped. Otherwise:

DialogChoicesEffect
"Disable legacy sources?" (only if sources.list has active deb lines or .list files exist)YesCopies sources.list to sources.list.bak and comments out its deb lines; renames every /etc/apt/sources.list.d/*.list to *.list.bak.
NoKeeps them.
SOURCES "Migrate to deb822 sources format?"yesDeletes /etc/apt/sources.list.d/*.list, removes lines containing proxmox or bookworm from sources.list and writes /etc/apt/sources.list.d/debian.sources for trixie, trixie-security and trixie-updates (main contrib).
noNo change.

Repositories. What you are asked depends on the current state:

RepositoryStateChoices
pve-enterprisepresent in a .sources filekeep, disable (sets Enabled: false in that file), delete (removes the file)
absentno (default) or yes: writes /etc/apt/sources.list.d/pve-enterprise.sources
Ceph enterprisea .sources file points at enterprise.proxmox.com Cephkeep, disable (Enabled: false), delete. Not asked if absent.
pve-no-subscriptionpresent and activekeep, disable (comments the stanza out), delete
present but commented outenable (uncomments it), keep, delete
absentyes: writes /etc/apt/sources.list.d/proxmox.sources; no
Ceph no-subscriptiona component no-subscription existsSkipped with a message.
absentyes: writes /etc/apt/sources.list.d/ceph.sources, using ceph-tentacle on 9.2 and ceph-squid on 9.0 and 9.1. no: sets Enabled: false on Ceph enterprise .sources entries and comments them out in .list files.
pve-testpresentSkipped with a message.
absentyes: writes /etc/apt/sources.list.d/pve-test.sources with Enabled: false; no

Steps on both versions

Menu titleChoicesEffect
SUBSCRIPTION NAGyesWrites /usr/local/bin/pve-remove-nag.sh and the APT hook /etc/apt/apt.conf.d/no-nag-script (DPkg::Post-Invoke), so the patch is reapplied after every package operation. The script patches /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js and, if present, /usr/share/pve-yew-mobile-gui/index.html.tpl.
noDeletes both files. This is how you undo the patch.
HIGH AVAILABILITY (asked if pve-ha-lrm is not active)yesEnables and starts pve-ha-lrm, pve-ha-crm and corosync.
HIGH AVAILABILITY (asked if pve-ha-lrm is active, which includes right after you enabled it in the step above)yesDisables and stops pve-ha-lrm and pve-ha-crm, then asks COROSYNC.
COROSYNCyesDisables and stops corosync.
UPDATEyesapt update and apt -y dist-upgrade.
REBOOTyesReboots the host.

After the nag question, in both cases, the script reinstalls proxmox-widget-toolkit (and pve-yew-mobile-gui if installed). With the hook in place that applies the patch; with the hook removed it restores the original files.

Before the reboot question a reminder tells you to run the script on every cluster node and to clear the browser cache or reload with Ctrl+Shift+R.

Undo

ChangeHow to revert
Subscription noticeRun the script again and answer no at SUBSCRIPTION NAG.
High availabilityRun the script again; it offers the opposite action.
Legacy sources on 9.xRestore /etc/apt/sources.list.bak and rename the *.list.bak files back. This only works if you answered Yes to "Disable legacy sources?"; the deb822 migration itself deletes .list files without a backup.
Repositories on 9.xRun the script again; existing repositories get keep, disable, enable or delete.
Sources on 8.xNo backup is made. Restore the files by hand.

Environment variables

VariableDefaultPurpose
COMMUNITY_SCRIPTS_CORE_URLhttps://raw.githubusercontent.com/community-scripts/core/mainBase URL the script loads api/api.func from.

Limits

  • Disabling HA services and Corosync is meant for single nodes. Do not do it on a cluster member.
  • On 8.x the yes answers overwrite the named files, including third-party entries you put into /etc/apt/sources.list.
  • The script does not upgrade between major versions. For 7 to 8 see pve8-upgrade.
  • Proxmox VE 9.3 and later are rejected until the script is extended.