Skip to content

Install cv4pve-pepper and open a Proxmox VE console

cv4pve-pepper runs on the computer where the console should appear and talks only to the Proxmox VE REST API. Nothing is installed on the nodes.

  1. Install cv4pve-pepper

    arch=$(uname -m | sed 's/x86_64/x64/;s/aarch64/arm64/;s/armv7l/arm/')
    wget https://github.com/Corsinvest/cv4pve-pepper/releases/latest/download/cv4pve-pepper-linux-$arch.zip
    unzip cv4pve-pepper-linux-$arch.zip
    chmod +x cv4pve-pepper

    All files are on the latest release page.

  2. Install remote-viewer

    pepper does not draw the console itself: it starts remote-viewer, the viewer of the virt-viewer project, and passes it the connection. Its path is the required --viewer option.

    winget install RedHat.VirtViewer

    The viewer is C:\Program Files\VirtViewer v<version>\bin\remote-viewer.exe, e.g. VirtViewer v11.0-256. The installer is also on the SPICE download page.

  3. Create an API token

    Create a dedicated user and API token: see Permissions.

  4. Open the first console

    Open the console of VM 100:

    cv4pve-pepper --host=pve01 --api-token='pepper@pve!console=<uuid>' --vmid=100 --viewer=/usr/bin/remote-viewer

    On Windows:

    cv4pve-pepper --host=pve01 --api-token='pepper@pve!console=<uuid>' --vmid=100 `
    --viewer="C:\Program Files\VirtViewer v11.0-256\bin\remote-viewer.exe"
    • Without other options pepper opens the SPICE console. A VM needs its display set to SPICE for that; containers always have it. For any other running VM add --vnc: see SPICE and VNC.
    • --vmid takes the id or the name of the VM or container: see Options.
    • If the guest is stopped, add --start-or-resume to start it first.

    With SPICE pepper exits as soon as the viewer has started, and the viewer stays open. With --vnc pepper keeps running until you close the viewer, because it carries the console traffic.

Several nodes, username and password, certificates and options in a file: see Connection.

When the command works, put it in a parameter file and a desktop shortcut.