### Apply schema, seed, and start proxcenter-ui server Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Loads the environment file, applies database migrations, seeds the default tenant and roles, and starts the server from the frontend directory. The server listens on 0.0.0.0:3000 by default, overridable with PORT and HOSTNAME. The seed is idempotent and safe to run again. ```bash set -a && . /opt/proxcenter_data/.env && set +a npx prisma migrate deploy npx prisma db seed node start.js # listens on 0.0.0.0:3000, override with PORT and HOSTNAME ``` -------------------------------- ### Install ProxCenter Community Edition Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Downloads and runs the community installer script. Requires Linux with Docker Engine 24+ and Docker Compose v2. Sets up Docker, Compose stack, PostgreSQL, and persistent volumes under /opt/proxcenter. ```bash curl -fsSL https://proxcenter.io/install/community | sudo bash ``` -------------------------------- ### Install nbdkit and nbd-client (Debian main) Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Installs nbdkit and nbd-client from Debian repositories. On nodes without a Proxmox subscription, apt-get update may return a 401 on the enterprise repository, which is harmless for this step. ```bash apt-get update apt-get install -y nbdkit nbd-client ``` -------------------------------- ### Install ProxCenter Enterprise Edition Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Downloads and runs the enterprise installer script with a token. Requires Linux with Docker Engine 24+ and Docker Compose v2. Sets up Docker, Compose stack, PostgreSQL, and persistent volumes under /opt/proxcenter. ```bash curl -fsSL https://proxcenter.io/install/enterprise | sudo bash -s -- --token YOUR_TOKEN ``` -------------------------------- ### Create environment file for proxcenter-ui Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Example environment file, e.g., /opt/proxcenter_data/.env, readable by root only. Contains database URL, app secrets, and URLs. APP_SECRET and NEXTAUTH_SECRET can be generated with openssl rand -base64 32. ```bash NODE_ENV=production DATABASE_URL=postgresql://proxcenter:PASSWORD@localhost:5432/proxcenter?schema=public APP_SECRET=... # openssl rand -base64 32 NEXTAUTH_SECRET=... # openssl rand -base64 32 NEXTAUTH_URL=http://your-server:3000 APP_URL=http://your-server:3000 ``` -------------------------------- ### Enable Debian non-free and install nbdkit-plugin-vddk Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Adds contrib, non-free, and non-free-firmware components to the Debian sources list, then installs the nbdkit VDDK plugin. Adjust the mirror or codename if using a custom Debian mirror. ```bash . /etc/os-release echo "deb http://deb.debian.org/debian ${VERSION_CODENAME} contrib non-free non-free-firmware" \ > /etc/apt/sources.list.d/proxcenter-nonfree.list apt-get update apt-get install -y nbdkit-plugin-vddk ``` -------------------------------- ### Upgrade ProxCenter with Docker Compose Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Run these commands from /opt/proxcenter to pull the latest images and restart the stack. Schema migrations run automatically on startup; nothing else is required for a Community install. ```bash cd /opt/proxcenter docker compose pull docker compose up -d ``` -------------------------------- ### Download and build proxcenter-ui from source Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Builds the Community Edition from a release tarball. Requires Node.js 22.12+, PostgreSQL 16+, and 4 GB RAM for the build. The PROXCENTER_SKIP_TYPECHECK=1 flag skips the TypeScript check of next build, which needs about 3 GB of heap; keep it on when building modified sources with about 8 GB RAM and NODE_OPTIONS=--max-old-space-size=4096. ```bash VERSION=vX.Y.Z # the release to install mkdir -p /opt/proxcenter && cd /opt/proxcenter curl -fsSL https://github.com/adminsyspro/proxcenter-ui/archive/refs/tags/$VERSION.tar.gz | tar xz --strip-components=1 cd frontend npm ci --legacy-peer-deps --ignore-scripts npm run build:icons npx prisma generate PROXCENTER_SKIP_TYPECHECK=1 npm run build ``` -------------------------------- ### Extract VDDK tarball to default libdir Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Creates the default libdir, extracts the VDDK tarball to /tmp, copies the distribution contents to /usr/lib/vmware-vix-disklib, and removes the temporary directory. ```bash mkdir -p /usr/lib/vmware-vix-disklib tar -xzf vmware-vix-disklib-*.tar.gz -C /tmp cp -a /tmp/vmware-vix-disklib-distrib/. /usr/lib/vmware-vix-disklib/ rm -rf /tmp/vmware-vix-disklib-distrib ``` -------------------------------- ### Load nbd kernel module and configure boot options Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Loads the nbd kernel module with max_part=0 and persists the module and its option across reboots via /etc/modules-load.d and /etc/modprobe.d. ```bash modprobe nbd max_part=0 echo nbd > /etc/modules-load.d/proxcenter-nbd.conf printf 'options nbd max_part=0\n' > /etc/modprobe.d/proxcenter-nbd.conf ``` -------------------------------- ### Verify nbdkit VDDK plugin with --dump-plugin Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Runs nbdkit with the VDDK plugin and a custom libdir to verify the plugin loads and the VDDK library is accessible. A missing libvixDiskLib.so.8 indicates a symlink issue from step 3. ```bash nbdkit vddk libdir=/usr/lib/vmware-vix-disklib --dump-plugin ``` -------------------------------- ### Create libvixDiskLib.so.8 symlink for nbdkit 1.42 Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Adds a symlink from libvixDiskLib.so.9 to libvixDiskLib.so.8 if the .so.9 file exists and .so.8 does not, then runs ldconfig. VDDK 8.0.x ships .so.8 directly and needs no symlink. ```bash if [ -e /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.9 ] \ && [ ! -e /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8 ]; then ln -sf libvixDiskLib.so.9 /usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so.8 fi ldconfig ``` -------------------------------- ### Check upgrade result with Docker Compose Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/README.md Use these commands to verify service status, follow logs, and restart the stack after an upgrade. They are run from /opt/proxcenter. ```bash cd /opt/proxcenter docker compose ps # Service status docker compose logs -f # Follow the logs docker compose restart # Restart the stack ``` -------------------------------- ### Switch to no-subscription repository for clean apt-get update Source: https://github.com/adminsyspro/proxcenter-ui/blob/main/docs/warm-migration-node-setup.md Disables the enterprise Proxmox repository and adds the no-subscription repository to avoid 401 errors during apt-get update. The sed command comments out the enterprise line, and the echo command writes the no-subscription source. ```bash sed -i 's|^deb https://enterprise.proxmox.com|# &|' /etc/apt/sources.list.d/pve-enterprise.list 2>/dev/null || true echo "deb http://download.proxmox.com/debian/pve $(. /etc/os-release && echo "$VERSION_CODENAME") pve-no-subscription" \ > /etc/apt/sources.list.d/pve-no-subscription.list apt-get update ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.