Pulse for Proxmox VE
A lightweight monitoring application for Proxmox VE that displays real-time status for VMs and containers via a simple web interface.
📋 Table of Contents
- Configuration
- Installation
- Running the Application
- Running the Application (Node.js)
- Running with Docker Compose
- Running with LXC Installation Script
- Features
- System Requirements
- Contributing
- License
- Trademark Notice
- Support
🛠️ Configuration
Environment Variables
-
Copy Example File: This application requires environment variables for configuration. Copy the example environment file from
server/.env.exampletoserver/.env.cp server/.env.example server/.env -
Edit
.env: Openserver/.envin a text editor and update the values for your Proxmox environment, including the Host, Token ID, and Token Secret obtained below.The following variables are available:
PROXMOX_HOST: URL of your Proxmox server (e.g.,https://your-proxmox-ip:8006).PROXMOX_TOKEN_ID: Your API Token ID (e.g.,user@pam!tokenid).PROXMOX_TOKEN_SECRET: Your API Token Secret.PROXMOX_ALLOW_SELF_SIGNED_CERTS: (Optional) Set totrueif your Proxmox server uses self-signed SSL certificates. Defaults tofalse.PORT: (Optional) Port for the Pulse server to listen on. Defaults to7655.PROXMOX_USERNAME,PROXMOX_PASSWORD,PROXMOX_REALM: (Optional) Fallback credentials if API token is not provided.
Creating a Proxmox API Token
An API token is recommended for connecting Pulse to Proxmox.
-
Log in to the Proxmox web interface
-
Create a dedicated user (optional but recommended for security)
- Go to
Datacenter→Permissions→Users. - Click
Add. - Enter a
User name(e.g., "pulse-monitor"), set Realm toProxmox VE authentication server, set a password, and ensureEnabledis checked. ClickAdd.
- Go to
-
Create an API token
- Go to
Datacenter→Permissions→API Tokens. - Click
Add. - Select the
Useryou created (e.g., "pulse-monitor@pam") orroot@pam. - Enter a
Token ID(e.g., "pulse"). - Leave
Privilege Separationchecked (more secure). - Click
Add. - Important: Copy the displayed
Secretvalue immediately and store it securely. It will only be shown once.
- Go to
-
Assign permissions
- Go to
Datacenter→Permissions→Add→User Permission. - Path:
/ - User: Select the user the token belongs to (e.g., "pulse-monitor@pam").
- Role:
PVEAuditor(provides read-only access). - Ensure
Propagateis checked. - Click
Add.
- Go to
-
Update your
server/.envfile with theToken ID(which looks likeuser@realm!tokenid, e.g.,pulse-monitor@pam!pulse) and theSecretyou saved.
Required Permissions
The PVEAuditor role is recommended as it provides the necessary read-only permissions for Pulse to monitor your Proxmox environment:
Datastore.AuditPermissions.Read(implicitly included)Pool.AuditSys.AuditVM.Audit
💾 Installation
Navigate to the project root directory and install the necessary Node.js dependencies.
# Install root dependencies
npm install
You also need to install dependencies for the server component:
# Install server dependencies
cd server
npm install
cd ..
▶️ Running the Application (Node.js)
These instructions are for running the application directly using Node.js.
Development Mode
To run the application in development mode (useful for testing changes):
npm run dev
This command starts the server, typically using nodemon or similar for automatic restarts on file changes. Check the terminal output for the URL (e.g., http://localhost:7655).
Production Mode
To run the application normally:
npm run start
This command starts the server using node. Access the application via the configured host and port.
🐳 Running with Docker Compose
Using Docker Compose is the recommended way to run the application in a containerized environment.
Prerequisites:
- Docker (Install Docker)
- Docker Compose (Install Docker Compose)
Steps:
-
Configure Environment: Ensure you have created and configured your
server/.envfile as described in the Environment Variables section above. -
Run: Navigate to the project root directory in your terminal and run:
docker compose up -d- This command will download the pre-built
rcourtman/pulse:latestimage from Docker Hub (if not already present) and start the container. -d: Runs the container in detached mode (in the background).
- This command will download the pre-built
-
Access: The application should now be running. Access it via
http://<your-host-ip>:7655(or the host port you mapped indocker-compose.yml).
Stopping the Application:
To stop the container(s) defined in the docker-compose.yml file, run:
docker compose down
Note: If you modify the server/.env file after the container is already running, you may need to restart the container for the changes to take effect. You can do this by running docker compose down followed by docker compose up -d, or by using docker compose up -d --force-recreate.
🚀 Automated Proxmox LXC Installation (Recommended)
This method uses a script run on the Proxmox VE host to automatically create a new LXC container and install Pulse inside it.
Prerequisites:
- A running Proxmox VE host.
- SSH access or direct console access to the Proxmox VE host.
- An available LXC template (Debian or Ubuntu based) downloaded on your Proxmox storage (e.g., via
Datacenter->Storage->Templates). - Network connectivity for the new LXC (DHCP is assumed by default).
- Root access on the Proxmox VE host.
Steps:
-
Log in to Proxmox Host: Access your Proxmox VE host shell via SSH or the web UI console.
-
Download and Run the Setup Script: Execute the following command as root on the Proxmox host shell:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/rcourtman/Pulse/main/scripts/setup-proxmox-lxc.sh)" --- Alternatively, download first:
wget https://raw.githubusercontent.com/rcourtman/Pulse/main/scripts/setup-proxmox-lxc.sh chmod +x setup-proxmox-lxc.sh sudo ./setup-proxmox-lxc.sh
- Alternatively, download first:
-
Follow Prompts: The script will guide you through configuring the new LXC container:
- Container ID (suggests the next available ID).
- Hostname for the container (e.g.,
pulse-monitor). - Root password for the container.
- Storage location for the container's disk.
- OS template to use.
- Disk size, CPU cores, and RAM allocation.
- (Network is currently set to DHCP on
vmbr0).
-
Wait for Installation: The script will then perform the following actions:
- Create the LXC container using the details provided.
- Start the container.
- Wait for the container to boot and get network access.
- Automatically execute the Pulse installation process inside the new container.
-
Access Pulse: Once the script finishes, it will display the likely URL (based on the container's detected IP and the default port 7655) where you can access the Pulse dashboard. You can also find the container's IP address in the Proxmox web UI.
Managing the Container/Service:
- Container Management: Use the Proxmox web UI or
pctcommands (e.g.,pct start <ID>,pct stop <ID>,pct enter <ID>) on the host. - Pulse Service Management (inside LXC): Access the container's console (
pct enter <ID>) and use systemd commands:systemctl status pulse-proxmox.servicesystemctl stop pulse-proxmox.servicesystemctl start pulse-proxmox.servicejournalctl -u pulse-proxmox.service -f
✨ Features
- Lightweight monitoring for Proxmox VE nodes.
- Displays real-time status for VMs and Containers via WebSocket updates.
- Simple, responsive web interface.
- Efficient polling: Only queries the Proxmox API when a user is actively viewing the UI, reducing load on the Proxmox server(s).
- Docker support for easy deployment.
💻 System Requirements
- Node.js (for local development/running): Version 16.x or higher recommended.
- Docker & Docker Compose (for containerized deployment): Recent versions recommended.
- Network: Connectivity between the Pulse server and your Proxmox server(s).
👥 Contributing
Contributions are welcome! Please follow standard fork-and-pull-request workflow. Refer to the main repository's contributing guidelines if available.
- Fork the repository
- Create a feature branch: `
