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.
First console
Section titled “First console”-
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.zipunzip cv4pve-pepper-linux-$arch.zipchmod +x cv4pve-peppercurl -s https://api.github.com/repos/Corsinvest/cv4pve-pepper/releases/latest | grep -o "https://[^\"]*-$(dpkg --print-architecture)\.deb" | xargs curl -LOsudo dpkg -i cv4pve-pepper-*-$(dpkg --print-architecture).debcurl -s https://api.github.com/repos/Corsinvest/cv4pve-pepper/releases/latest | grep -o "https://[^\"]*-$(rpm --eval %_target_cpu)\.rpm" | xargs curl -LOsudo rpm -i cv4pve-pepper-*-$(rpm --eval %_target_cpu).rpmyay -S cv4pve-pepperbrew install corsinvest/tap/cv4pve-peppercurl -s https://api.github.com/repos/Corsinvest/cv4pve-pepper/releases/latest | grep -o "https://[^\"]*-$(uname -m)\.pkg" | xargs curl -LOsudo installer -target / -pkg cv4pve-pepper-*-$(uname -m).pkgarch=$(uname -m | sed 's/x86_64/x64/')curl -LO https://github.com/Corsinvest/cv4pve-pepper/releases/latest/download/cv4pve-pepper-osx-$arch.zipunzip cv4pve-pepper-osx-$arch.zipchmod +x cv4pve-pepperwinget install Corsinvest.cv4pve.pepper$arch = @{ AMD64 = 'x64'; x86 = 'x86'; ARM64 = 'arm64' }[$env:PROCESSOR_ARCHITECTURE]Invoke-WebRequest https://github.com/Corsinvest/cv4pve-pepper/releases/latest/download/cv4pve-pepper.exe-win-$arch.zip -OutFile cv4pve-pepper.zipExpand-Archive cv4pve-pepper.zip -DestinationPath . -ForceAll files are on the latest release page.
-
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--vieweroption.winget install RedHat.VirtViewerThe 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.sudo apt install virt-viewer # /usr/bin/remote-viewersudo dnf install virt-viewer # /usr/bin/remote-viewerSee the SPICE macOS client page, then pass the path of
remote-viewerto--viewer. -
Create an API token
Create a dedicated user and API token: see Permissions.
-
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-viewerOn 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. --vmidtakes the id or the name of the VM or container: see Options.- If the guest is stopped, add
--start-or-resumeto start it first.
With SPICE pepper exits as soon as the viewer has started, and the viewer stays open. With
--vncpepper keeps running until you close the viewer, because it carries the console traffic. - 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
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.