Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Clarify Proxmox Docker LXC host setup
rcourtmaneab067171ccd
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex a4fbee6b7f..136d225298 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -316,6 +316,12 @@ The setup guide must also present the source strategy at action time: APIInventory is the recommended least-privilege API path, Host Telemetry Agent isthe optional full-host-telemetry root-agent path, and Manual Token Setup is anadvanced manual API-token escape hatch.+For PVE, that same setup guide must keep Docker inside Proxmox LXCs attached+to the Host Telemetry Agent path, not the default API Inventory path: API+Inventory alone cannot run host-side guest Docker inventory, while the PVE Host+Telemetry Agent command must explicitly request Pulse command execution and+explain the separate server-side `PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY`+opt-in.For existing Proxmox API sources, that same setup guide must expose thenon-destructive Audit/Repair rerun path before asking operators to rotatecredentials. Audit/Repair is the first lifecycle response to suspected setup@@ -3066,7 +3072,9 @@ install path from Docker inside Proxmox LXCs: standalone runtimes use theDocker runtime profile on that host, while Proxmox LXC Docker inventory uses aProxmox VE node agent with command execution plus explicit server-side`PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true`, and the copy may not imply-that installing an agent inside every LXC is required.+that installing an agent inside every LXC is required. The Docker empty state,+infrastructure installer, and Proxmox node setup guide must all preserve that+same distinction.That same connected-systems summary must preserve canonical local operatoridentity for newly connected infrastructure. When governed resources such asPBS or PMG appear in the setup-completion poll, the surface must show theirdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 982e8811e3..13fa235019 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -463,6 +463,12 @@ payload shape change when the portal presents compact client rows.path is chosen: API Inventory is the recommended least-privilege API path,Host Telemetry Agent is the optional full-host-telemetry root-agent path,and Manual Token Setup is a manual API-token escape hatch.+ For PVE, the Host Telemetry Agent setup path is also the governed+ host-side Docker-in-LXC inventory setup path: the frontend request to+ `/api/agent-install-command` must explicitly ask for command execution, the+ generated install command must render `--enable-commands`, and the default+ API Inventory path must not imply it can run the opted-in host-side Docker+ inventory collector.The inline node credential slot must keep the visible submit sequence as`Endpoint`, `Authentication`, and `Coverage` before the API-backed setupcontrols. That sequence is presentation guidance for the existing setup@@ -473,6 +479,12 @@ payload shape change when the portal presents compact client rows.token-file and preflight transport contract: tokens are passed to theinstaller as ephemeral files, and host install snippets must verify thetarget Pulse URL plus exact agent binary artifact before root escalation.+ The shared Proxmox agent install command contract may expose+ `--enable-commands` only through an explicit request field. The PVE Host+ Telemetry Agent setup surface is the approved caller for that opt-in when+ the operator wants Patrol actions or server-opted-in Docker-in-LXC+ inventory from the Proxmox node; generic Proxmox API Inventory setup must+ remain least-privilege and command-execution-free.32a. `internal/api/cloud_agent_install_command.go` shared with `agent-lifecycle`, `cloud-paid`: hosted tenant agent install commands are agent lifecycle enrollment transport, hosted/provider MSP tenant boundary, and canonical API payload contract.The route and reusable helper must both mint PVE/PBS install tokens only inhosted mode, only for an existing tenant/org, and only into that tenant@@ -4310,6 +4322,10 @@ The frontend may tell operators to rerun the same canonical command and chooseAudit/Repair, but it must not imply the current API token is rotated duringrepair. Install/Configure remains the explicit rotation and re-registrationpath when the token value itself needs to be replaced.+That same setup surface must also keep the Docker-in-LXC guidance with the PVE+Host Telemetry Agent mode. API Inventory copy may point operators to Host+Telemetry Agent when Docker runs inside LXCs, but it must not claim that API+setup alone can run the host-side Docker collector.That same bootstrap artifact contract must also stay coherent in public-facingguidance: `docs/API.md` and operator setup guides may not describe`/api/setup-script-url` as if it only returned a token plus bare URL, and they@@ -4734,7 +4750,11 @@ transport in `frontend-modern/src/api/nodes.ts`: the canonical client requestshape for `/api/agent-install-command` must support both `type:"pve"` and`type:"pbs"` with the same explicit `enableProxmox` flag, so install-commandsurfaces do not fork into ad hoc raw POST payloads for different Proxmox node-types. That same shared client boundary must also validate a non-empty+types. PVE Host Telemetry Agent consumers that need Patrol actions or+server-opted-in Docker-in-LXC inventory must preserve the explicit+`enableCommands` request field instead of appending command-execution flags in+the browser or implying that the server will infer guest Docker authority from+`enableProxmox`. That same shared client boundary must also validate a non-empty`command` response and keep the raw backend `token` field inside`frontend-modern/src/api/nodes.ts` rather than leaking it into downstream UIstate. Downstream Proxmox install-command consumers like the extracted nodediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex eb14f3e8a0..4c2edbc062 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -348,10 +348,12 @@ recovery scope, or a storage/recovery-owned secret source.preserve the API-owned Docker / Podman module or host wording for managementresponses and must not introduce recovery-local container-runtime labels.Proxmox-side LXC Docker inventory wiring may also pass through- `internal/api/router.go`, but storage and recovery may consume the resulting- app-container/resource context only as workload inventory. It must not be- reinterpreted as backup freshness, restore coverage, or storage protection- evidence for the LXC guest.+ `internal/api/router.go` and Proxmox agent install-command generation, but+ storage and recovery may consume the resulting app-container/resource+ context only as workload inventory. The `--enable-commands` install opt-in+ for host-side Docker-in-LXC collection must not be reinterpreted as backup+ freshness, restore coverage, storage protection evidence, or remediation+ authority for the LXC guest.Global resource timeline routing may also pass through shared`internal/api/` handlers. Storage and recovery surfaces may read canonicaltimeline records as adjacent evidence, but they must not reinterpret andiff --git a/frontend-modern/src/api/__tests__/nodes.test.ts b/frontend-modern/src/api/__tests__/nodes.test.tsindex 2d1d9983d4..f23cd19a16 100644--- a/frontend-modern/src/api/__tests__/nodes.test.ts+++ b/frontend-modern/src/api/__tests__/nodes.test.ts@@ -244,13 +244,17 @@ describe('NodesAPI', () => {it('gets agent install command', async () => {vi.mocked(apiFetchJSON).mockResolvedValueOnce({ command: ' curl ... ', token: 'secret-token' });- const result = await NodesAPI.getAgentInstallCommand({ type: 'pve', enableProxmox: true });+ const result = await NodesAPI.getAgentInstallCommand({+ type: 'pve',+ enableProxmox: true,+ enableCommands: true,+ });expect(apiFetchJSON).toHaveBeenCalledWith('/api/agent-install-command',expect.objectContaining({method: 'POST',- body: JSON.stringify({ type: 'pve', enableProxmox: true }),+ body: JSON.stringify({ type: 'pve', enableProxmox: true, enableCommands: true }),}),);expect(result).toEqual({ command: 'curl ...' });diff --git a/frontend-modern/src/api/nodes.ts b/frontend-modern/src/api/nodes.tsindex 9e10a8232f..1e1b0b5dd1 100644--- a/frontend-modern/src/api/nodes.ts+++ b/frontend-modern/src/api/nodes.ts@@ -237,6 +237,7 @@ export class NodesAPI {static async getAgentInstallCommand(params: {type: 'pve' | 'pbs';enableProxmox: boolean;+ enableCommands?: boolean;}): Promise<AgentInstallCommandResponse> {const response = await apiFetchJSON<RawAgentInstallCommandResponse>('/api/agent-install-command', {method: 'POST',diff --git a/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx b/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsxindex 44e085a185..9a3721bf13 100644--- a/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx+++ b/frontend-modern/src/components/Settings/NodeModalSetupGuideSection.tsx@@ -124,8 +124,28 @@ export const NodeModalSetupGuideSection: Component<NodeModalSetupGuideSectionPro<li>Adds host-local telemetry such as temperatures, SMART, ZFS, Ceph, and mdadm</li>- <li>Enables Pulse Patrol command execution for VMs and containers</li>+ <li>+ Enables Pulse command execution for Patrol actions and opted-in Docker-in-LXC+ inventory+ </li></ul>+ <div class="rounded-md border border-blue-200 bg-blue-50 px-3 py-2 dark:border-blue-800 dark:bg-blue-950/30">+ <p class="text-xs text-blue-800 dark:text-blue-200">+ <strong>Docker inside Proxmox LXCs:</strong> use this host-agent path instead+ of installing Pulse Agent in every guest. The copied command enables Pulse+ command execution on the Proxmox node; the Pulse server still must be opted in+ with{' '}+ <code class="break-all rounded bg-blue-100 px-1 font-mono dark:bg-blue-900">+ PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true+ </code>+ , and you can limit guests with{' '}+ <code class="break-all rounded bg-blue-100 px-1 font-mono dark:bg-blue-900">+ PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102+ </code>+ . Pulse uses bounded <code>pct exec</code> Docker summary checks and skips+ guests that already report through their own agent.+ </p>+ </div><p class="text-blue-800 dark:text-blue-200 font-medium">Run this command on your Proxmox VE node:</p>@@ -205,6 +225,13 @@ export const NodeModalSetupGuideSection: Component<NodeModalSetupGuideSectionProagent-driven operations.</p></div>+ <div class="rounded-md border border-blue-200 bg-blue-50 px-3 py-2 dark:border-blue-800 dark:bg-blue-950/30">+ <p class="text-xs text-blue-800 dark:text-blue-200">+ <strong>Docker inside Proxmox LXCs?</strong> Switch to Host Telemetry Agent+ for the Proxmox node. API inventory alone does not run the opted-in host-side+ Docker inventory path.+ </p>+ </div><Show when={state.isEditingExistingNode()}><div class="rounded-md border border-blue-200 bg-blue-50 px-3 py-2 dark:border-blue-800 dark:bg-blue-950/30"><p class="text-xs text-blue-800 dark:text-blue-200">diff --git a/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx b/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsxindex d07a8753eb..cb13799cf6 100644--- a/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/NodeModalSetupGuideSection.test.tsx@@ -51,6 +51,8 @@ describe('NodeModalSetupGuideSection', () => {expect(screen.getByText('API inventory')).toBeInTheDocument();expect(screen.getByText(/Recommended least-privilege path/i)).toBeInTheDocument();expect(screen.getByText(/Recommended API inventory path/i)).toBeInTheDocument();+ expect(screen.getByText(/Docker inside Proxmox LXCs\?/i)).toBeInTheDocument();+ expect(screen.getByText(/API inventory alone does not run/i)).toBeInTheDocument();// Tab renamed from 'API Inventory' (internal term) to 'Connect via API'.expect(screen.getByRole('button', { name: /Connect via API/i })).toBeInTheDocument();expect(screen.queryByText('Manual API token')).not.toBeInTheDocument();@@ -65,6 +67,15 @@ describe('NodeModalSetupGuideSection', () => {expect(screen.getAllByText(/Optional full host telemetry/i).length).toBeGreaterThan(0);expect(screen.getAllByText(/Pulse Agent root service/i).length).toBeGreaterThan(0);expect(screen.getByText(/temperatures, SMART, ZFS, Ceph, and mdadm/i)).toBeInTheDocument();+ expect(screen.getByText(/Docker inside Proxmox LXCs:/i)).toBeInTheDocument();+ expect(screen.getAllByText(/Pulse command execution/i).length).toBeGreaterThan(0);+ expect(+ screen.getByText('PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true'),+ ).toBeInTheDocument();+ expect(+ screen.getByText('PULSE_PROXMOX_GUEST_DOCKER_INVENTORY_VMIDS=101,102'),+ ).toBeInTheDocument();+ expect(screen.getByText(/bounded/i)).toHaveTextContent(/pct exec/);});it('labels manual setup as the advanced token escape hatch', () => {diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.tsindex d82493b3c5..2adf61cdb7 100644--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts@@ -829,7 +829,12 @@ describe('settings architecture guardrails', () => {expect(nodeModalSetupGuideSectionSource).toContain('Existing source repair');expect(nodeModalSetupGuideSectionSource).toContain('Audit/Repair');expect(nodeModalSetupGuideSectionSource).toContain('without rotating the current API token');+ expect(nodeModalSetupGuideSectionSource).toContain('Docker inside Proxmox LXCs');+ expect(nodeModalSetupGuideSectionSource).toContain(+ 'PULSE_ENABLE_PROXMOX_GUEST_DOCKER_INVENTORY=true',+ );expect(nodeModalStatusFooterSource).toContain('guidedSetupOnlyMode');+ expect(nodeModalStateSource).toContain("enableCommands: type === 'pve'");expect(nodeModalStateSource).toContain('data.setupMode !==');expect(vmwareCredentialSlotSource).toContain('TlsVerificationWarningBanner');diff --git a/frontend-modern/src/components/Settings/useNodeModalState.ts b/frontend-modern/src/components/Settings/useNodeModalState.tsindex fdc1dbde8f..7d6770f79d 100644--- a/frontend-modern/src/components/Settings/useNodeModalState.ts+++ b/frontend-modern/src/components/Settings/useNodeModalState.ts@@ -79,6 +79,7 @@ export const useNodeModalState = (props: NodeModalProps) => {const data = await NodesAPI.getAgentInstallCommand({type,enableProxmox: true,+ enableCommands: type === 'pve',});setAgentInstallCommand(data.command);const copied = await copyToClipboard(data.command);diff --git a/internal/api/agent_install_command_shared.go b/internal/api/agent_install_command_shared.goindex 32aa82932a..bebe75b839 100644--- a/internal/api/agent_install_command_shared.go+++ b/internal/api/agent_install_command_shared.go@@ -89,6 +89,7 @@ type agentInstallCommandOptions struct {Token stringInstallType stringIncludeInstallType bool+ EnableCommands bool}type setupScriptInstallArtifact struct {@@ -221,6 +222,11 @@ func buildProxmoxAgentInstallCommand(opts agentInstallCommandOptions) string {--proxmox-type %s`, posixShellQuote(opts.InstallType))}+ if opts.EnableCommands {+ command += ` \+ --enable-commands`+ }+return withPrivilegeEscalation(command) + tokenCleanup}diff --git a/internal/api/agent_install_command_shared_test.go b/internal/api/agent_install_command_shared_test.goindex 9b820c5d0d..10fc18df02 100644--- a/internal/api/agent_install_command_shared_test.go+++ b/internal/api/agent_install_command_shared_test.go@@ -32,6 +32,7 @@ func TestBuildProxmoxAgentInstallCommand(t *testing.T) {require.Contains(t, command, `--token-file "$token_file"`)require.Contains(t, command, `rm -f "$token_file"`)require.Contains(t, command, "--proxmox-type "+posixShellQuote("pbs"))+ require.NotContains(t, command, "--enable-commands")}func TestBuildProxmoxAgentInstallCommand_IncludesInsecureForPlainHTTP(t *testing.T) {@@ -106,6 +107,22 @@ func TestBuildProxmoxAgentInstallCommand_NormalizesTrailingSlashes(t *testing.T)require.NotContains(t, command, "--url "+posixShellQuote("https://pulse.example.com/base/"))}+func TestBuildProxmoxAgentInstallCommand_IncludesCommandsWhenRequested(t *testing.T) {+ command := buildProxmoxAgentInstallCommand(agentInstallCommandOptions{+ BaseURL: "https://pulse.example.com/",+ Token: "token-123",+ InstallType: "pve",+ IncludeInstallType: true,+ EnableCommands: true,+ })++ require.Contains(t, command, "--enable-proxmox")+ require.Contains(t, command, "--proxmox-type "+posixShellQuote("pve"))+ require.Contains(t, command, "--enable-commands")+ require.Contains(t, command, `| { if [ "$(id -u)" -eq 0 ]; then bash -s --`)+ require.Contains(t, command, `rm -f "$token_file"`)+}+func TestBuildContainerRuntimeAgentInstallCommand_UsesLifecycleTransport(t *testing.T) {command := buildContainerRuntimeAgentInstallCommand("https://pulse.example.com/base", "token-123")diff --git a/internal/api/config_setup_handlers.go b/internal/api/config_setup_handlers.goindex 63eff63654..591d14b845 100644--- a/internal/api/config_setup_handlers.go+++ b/internal/api/config_setup_handlers.go@@ -1569,7 +1569,8 @@ func (h *ConfigHandlers) generateOrLoadSSHKey(sshDir, privateKeyPath, publicKeyP// AgentInstallCommandRequest represents a request for an agent install commandtype AgentInstallCommandRequest struct {- Type string `json:"type"` // "pve" or "pbs"+ Type string `json:"type"` // "pve" or "pbs"+ EnableCommands bool `json:"enableCommands,omitempty"`}// AgentInstallCommandResponse contains the generated install command@@ -1636,11 +1637,13 @@ func (h *ConfigHandlers) handleAgentInstallCommand(w http.ResponseWriter, r *httToken: rawToken,InstallType: installType,IncludeInstallType: true,+ EnableCommands: req.EnableCommands,})log.Info().Str("type", installType).Bool("token_issued", rawToken != "").+ Bool("enable_commands", req.EnableCommands).Msg("Generated agent install command")w.Header().Set("Content-Type", "application/json")