@u4/spice
v0.2.0
Published
commandline spice helper for proxmox
Downloads
3
Readme
proxmox access helper
Setup
Install
npm install -g @u4/spice
ensure that you have a spice client installed
List your proxmox servers
Create a googleSheet
doc like:
| hostname | ip1 | ip2 | ip3 | ip4 | ... | |----------|----------------------------------|--------------|---------------|------|-----| | proxmox1 | proxmox.example.com:8006 | 192.168.1.2 | 10.0.1.2 | | | | proxmox2 | 1.2.3.4 | 10.0.0.2 | | | | | proxmox3 | 2.3.3.4:8006,http://2.3.3.4:3128 | 10.0.0.2 | | | |
- This sheet can contains any number of ip collumn, commonly use to give multiple access ip for public / local / vpn access
- Each ip call contain an address:port to access you proxmox https server (usualy on port 8006).
- Each value can be postfid with an http://ip:port to provid a non default proxmox proxy port (default is port 3128)
Configure access
Once the google sheet is filled, enable sharing for Anyone on the internet with this link can view
get the document id from the URL.
Then configure some environnement variable:
| variable name | value |
|---------------|--------------------------|
| PROX_SHEET_ID | your google sheet id |
| PROX_USER | your proxmox user (default is root@pam
) |
| PROX_PASS | your proxmox password |
Usage
| command | action |
|-----------------|---------------------------------------|
| spice --help
| list all actions |
| spice index
| force updating your proxmox VM status |
| spice cert
| extract all your proxmox certificat to enforce certificat checking useing NODE_EXTRA_CA_CERTS
|
| spice info
| list you hosts VMs |
| spice list
| list you hosts VMs |
| spice 12
| connect to your 12th VM |
| spice pass
| dump your proxmox password |