/proxmox-cloud-init-tools

Proxmox cloud-init tools

Primary LanguageShellGNU Affero General Public License v3.0AGPL-3.0

Proxmox cloud-init tools

ShellScript tools to deploy VM cloud-init in Proxmox Virtual Environment (PVE)

Supported PVE Versions

  • PVE 6 Not tested
  • PVE 6.1 [OK] - Tested
  • PVE 6.2 [OK] - Tested
  • PVE 6.3 [OK] - Tested

Features

  1. Auto cloud images download
  • Debian 9 - Stretch
  • Debian 10 - Buster
  • Ubuntu Server 18.04 LTS - Bionic
  • Ubuntu Server 20.04 LTS - Focal
  • OpenSUSE LEAP 15.2
  1. Set VM Hostname
  2. Set VM Description
  3. Memory (Available to select 2GB,4GB,8GB and 16GB)
  4. CPU Cores
  5. CPU Sockets
  6. Storage destination (Local, NFS, LVM/LVM-Thin, etc)
  7. Define user, by default root user is defined. If you change to another, this user can be used with sudo powers without password;
  8. Insert SSH authorized keys to user defined on step 8 Very important;
  9. Select bridge network;
  10. Select Static/IP or DHCP usage;
  11. Define uniq VMID;
  12. Can start or not, VM after deployment.

Usage

  1. Login on your Proxmox VE server over SSH or Console Shell
  2. Clone proxmox-cloud-init project
git clone https://github.com/kmee/proxmox-cloud-init-tools.git
cd proxmox-cloud-init-tools
  1. Create authorized keys files
mkdir pub_keys
touch pub_keys/id_rsa.pub

copy your public ssh keys to pub/keys/id_rsa.pub file

  1. Adjust permission, then run deploy.sh
chmod +x deploy.sh
./deploy.sh
  1. Follow instructions on screen.

Important

Before deploy VM using things script, upload your public ssh key to ./pub_keys/id_rsa.pub file. if you do not upload keys do pub_keys/id_rsa.pub, you will not access VM.

Contributors

Ananias Filho - @ananiasfilho

Frederico Siena