Skip to content

Running ProxSave inside a privileged LXC with #255

Description

@villabajo

Problem

Running ProxSave inside a privileged LXC with
pct set XXX -mp0 /,mp=/host,ro=1
pct set XXX -mp1 /etc/pve,mp=/host/etc/pve,ro=1

and .../config/backup.env
SYSTEM_ROOT_PREFIX=/host

already works surprisingly well.

However:

  • Proxmox detection still inspects the container root
  • host-only commands are skipped even when the host filesystem is available
  • absolute symlinks (/etc/ceph/ceph.conf -> /etc/pve/ceph.conf) are not rewritten

Proposal

Introduce a supported something like

HOST_BACKUP_MODE=true

which

  • detects Proxmox under SYSTEM_ROOT_PREFIX
  • executes host commands through nsenter (optional)
  • resolves absolute symlinks relative to SYSTEM_ROOT_PREFIX
  • officially supports backup appliances running as HA LXC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions