2019-10-14 14:12:54 +00:00
|
|
|
# cv4pve-pepper
|
2019-10-23 06:43:03 +00:00
|
|
|
|
2022-05-29 09:39:18 +00:00
|
|
|
[![License](https://img.shields.io/github/license/Corsinvest/cv4pve-pepper.svg)](LICENSE.md)
|
2019-10-23 06:43:03 +00:00
|
|
|
|
|
|
|
```text
|
2022-05-28 20:51:07 +00:00
|
|
|
______ _ __
|
|
|
|
/ ____/___ __________(_)___ _ _____ _____/ /_
|
|
|
|
/ / / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/
|
|
|
|
/ /___/ /_/ / / (__ ) / / / / |/ / __(__ ) /_
|
|
|
|
\____/\____/_/ /____/_/_/ /_/|___/\___/____/\__/
|
2019-10-23 06:43:03 +00:00
|
|
|
|
2022-05-28 20:51:07 +00:00
|
|
|
|
2024-05-02 10:20:45 +00:00
|
|
|
Launching SPICE remote-viewer for Proxmox VE (Made in Italy)
|
2022-05-28 20:51:07 +00:00
|
|
|
|
|
|
|
cv4pve-pepper is a part of suite cv4pve.
|
2024-05-02 10:20:45 +00:00
|
|
|
For more information visit https://www.corsinvest.it/cv4pve
|
2022-05-28 20:51:07 +00:00
|
|
|
|
|
|
|
Usage:
|
2024-05-02 10:20:45 +00:00
|
|
|
cv4pve-pepper [options]
|
2019-10-23 06:43:03 +00:00
|
|
|
|
|
|
|
Options:
|
2022-09-13 14:02:39 +00:00
|
|
|
--api-token <api-token> Api token format 'USER@REALM!TOKENID=UUID'. Require Proxmox VE 6.2 or later
|
|
|
|
--username <username> User name <username>@<realm>
|
|
|
|
--password <password> The password. Specify 'file:path_file' to store password in file.
|
2024-05-02 10:20:45 +00:00
|
|
|
--validate-certificate Validate SSL Certificate Proxmox VE node.
|
|
|
|
--host <host> (REQUIRED) The host name host[:port],host1[:port],host2[:port]
|
2022-09-13 14:02:39 +00:00
|
|
|
--vmid <vmid> The id or name VM/CT
|
|
|
|
--proxy <proxy> SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs
|
|
|
|
'spiceproxy', so it is up to the client to choose one. By default, we return the node to connect. If specify
|
|
|
|
http(s)://[host]:[port] then replace proxy option in file .vv. E.g. for reverse proxy.
|
2023-12-19 12:43:51 +00:00
|
|
|
--viewer <viewer> (REQUIRED) Executable SPICE client remote viewer (remote-viewer executable)
|
2022-09-13 14:02:39 +00:00
|
|
|
--viewer-options <viewer-options> Send options directly SPICE Viewer (quote value).
|
|
|
|
--start-or-resume Run stopped or paused VM
|
|
|
|
--wait-for-startup <wait-for-startup> Wait sec. for startup VM [default: 5]
|
|
|
|
--version Show version information
|
2023-12-19 12:41:49 +00:00
|
|
|
--debug Show debug information
|
2022-09-13 14:02:39 +00:00
|
|
|
-?, -h, --help Show help and usage information
|
2019-10-23 06:43:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Copyright and License
|
|
|
|
|
|
|
|
Copyright: Corsinvest Srl
|
|
|
|
For licensing details please visit [LICENSE.md](LICENSE.md)
|
|
|
|
|
|
|
|
## Commercial Support
|
|
|
|
|
2024-05-02 10:20:45 +00:00
|
|
|
This software is part of a suite of tools called cv4pve-tools. If you want commercial support, visit the [site](https://www.corisnvest.it/cv4pve)
|
2019-10-23 06:43:03 +00:00
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
Launching SPICE remote-viewer having access VM running on Proxmox VE.
|
|
|
|
|
|
|
|
this software aims to simplify run SPICE client from Proxmox VE using command line. The reasons are:
|
|
|
|
|
|
|
|
* Proxmox VE uses tickets that expire
|
|
|
|
* do not use graphical interface (GUI)
|
|
|
|
* no download .vv file to run remove viewer
|
|
|
|
* use a simple client
|
|
|
|
|
|
|
|
## Main features
|
|
|
|
|
|
|
|
* Completely written in C#
|
|
|
|
* Use native api REST Proxmox VE (library C#)
|
|
|
|
* Independent os (Windows, Linux, Macosx)
|
|
|
|
* Installation unzip file extract binary
|
|
|
|
* Not require installation in Proxmox VE
|
|
|
|
* Execute out side Proxmox VE
|
|
|
|
* Not require Web login
|
2019-12-17 10:26:15 +00:00
|
|
|
* Support multiple host for HA in --host parameter es. host[:port],host1[:port],host2[:port]
|
2022-09-03 13:59:39 +00:00
|
|
|
* Start or Resume VM on connection
|
2019-12-17 10:26:15 +00:00
|
|
|
* Check-Update and Upgrade application
|
2020-07-30 13:22:20 +00:00
|
|
|
* Use Api token --api-token parameter
|
2021-07-19 14:49:55 +00:00
|
|
|
* Send options directly to viewer
|
2022-05-28 20:51:07 +00:00
|
|
|
* Execution with file parameter e.g. @FileParameter.parm
|
2024-05-02 10:20:45 +00:00
|
|
|
* Validate certificate SSL, default not validate
|
2020-07-30 13:22:20 +00:00
|
|
|
|
|
|
|
## Api token
|
|
|
|
|
|
|
|
From version 6.2 of Proxmox VE is possible to use [Api token](https://pve.proxmox.com/pve-docs/pveum-plain.html).
|
|
|
|
This feature permit execute Api without using user and password.
|
|
|
|
If using **Privilege Separation** when create api token remember specify in permission.
|
2019-10-23 06:43:03 +00:00
|
|
|
|
|
|
|
## Configuration and use
|
|
|
|
|
|
|
|
E.g. install on linux 64
|
|
|
|
|
|
|
|
Download last package e.g. Debian cv4pve-pepper-linux-x64.zip, on your os and install:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
root@debian:~# unzip cv4pve-pepper-linux-x64.zip
|
|
|
|
```
|
|
|
|
|
|
|
|
This tool need basically no configuration.
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
```sh
|
|
|
|
root@debian:~# cv4pve-pepper --host=192.168.0.100 --username=root@pam --password=fagiano --vmid 100 --viewer path-spice-viewer
|
|
|
|
```
|
2020-02-21 17:56:26 +00:00
|
|
|
|
|
|
|
## SPICE client
|
|
|
|
|
|
|
|
* [Windows: virt-viewer 0.5.6 or higher,](http://www.spice-space.org/download.html)
|
|
|
|
|
|
|
|
* Linux: virt-viewer 0.5.6 or higher
|
|
|
|
|
|
|
|
* [OS X (not yet working as expected): virt-viewer 0.5.7 or higher](https://www.spice-space.org/osx-client.html)
|
|
|
|
|
2022-11-24 03:51:27 +00:00
|
|
|
## Topical path of remote viewer
|
2020-02-21 17:56:26 +00:00
|
|
|
|
|
|
|
* Linux /usr/bin/remote-viewer
|
|
|
|
* Windows C:\Program Files\VirtViewer v?.?-???\bin\remote-viewer.exe
|
2020-09-09 08:17:39 +00:00
|
|
|
|
2023-12-19 12:41:49 +00:00
|
|
|
## Options of remote viewer
|
2021-07-19 14:49:55 +00:00
|
|
|
|
|
|
|
Use --viewer-options to send options to viewer.
|
|
|
|
E.g. --viewer-options "-f" for full screen.
|
|
|
|
|
2020-09-09 08:17:39 +00:00
|
|
|
## Error
|
|
|
|
|
|
|
|
* **no spice port**: This error appears when you have not configured the display hardware on SPICE.
|
2022-05-28 20:51:07 +00:00
|
|
|
|
|
|
|
## Execution with file parameter
|
|
|
|
|
|
|
|
Is possible execute with file parameter
|
|
|
|
|
|
|
|
```sh
|
|
|
|
root@debian:~# cv4pve-pepper @FileParameter.parm
|
|
|
|
```
|
|
|
|
|
|
|
|
File **FileParameter.parm**
|
|
|
|
|
|
|
|
```txt
|
|
|
|
--host=192.168.0.100
|
|
|
|
--username=root@pam
|
|
|
|
--password=fagiano
|
|
|
|
--vmid 100
|
|
|
|
--viewer path-spice-viewer
|
|
|
|
```
|