pvesh get /cluster/nextid
pct create 100 \
local:vztmpl/ubuntu-16.04-standard_16.04-1_amd64.tar.gz \
--cores 2 --cpuunits 1024 \
| # Generate a unique private key (KEY) | |
| sudo openssl genrsa -out mydomain.key 2048 | |
| # Generating a Certificate Signing Request (CSR) | |
| sudo openssl req -new -key mydomain.key -out mydomain.csr | |
| # Creating a Self-Signed Certificate (CRT) | |
| openssl x509 -req -days 365 -in mydomain.csr -signkey mydomain.key -out mydomain.crt | |
| # Append KEY and CRT to mydomain.pem |
| #!/bin/bash | |
| # proxvm | |
| # Output in specifed format (default csv) all virtual machines on proxmox 4+ | |
| SERVER=localhost | |
| USERNAME=apiread@pve | |
| PASSWORD=123456 | |
| FORMAT=csv | |
| while [[ $# > 0 ]]; do | |
| key="$1" |