Skip to content

Instantly share code, notes, and snippets.

@ridgebackdad
ridgebackdad / proxmox_cloud-init.md
Last active October 12, 2021 04:24
Create a Proxmox Cloud-init image for Ubuntu
cd /var/lib/vz
wget http://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
export VM_ID="9010"
qm create $VM_ID --memory 2048 --net0 virtio,bridge=vmbr0 --sockets 1 --cores 2 --vcpu 2  -hotplug network,disk,cpu,memory --agent 1 --name cloud-init-focal2 --ostype l26
qm importdisk $VM_ID focal-server-cloudimg-amd64.img local-lvm
qm set $VM_ID --scsihw virtio-scsi-pci --virtio0 local-lvm:vm-$VM_ID-disk-0
qm set $VM_ID --ide2 local-lvm:cloudinit
qm set $VM_ID --boot c --bootdisk virtio0
qm set $VM_ID --serial0 socket
@ridgebackdad
ridgebackdad / public_key.md
Last active April 5, 2021 16:43
Copy your public key to many hosts via jump box

Copy your public key to many hosts via jump box

1. Log into your jump box (or your laptop)

2. Check to see if you have already created a public/private key pair by typing:

ls -la ~/.ssh/
### Keybase proof
I hereby claim:
* I am ridgebackdad on github.
* I am highness (https://keybase.io/highness) on keybase.
* I have a public key whose fingerprint is 54A5 12EB 8340 FE98 030A 6D51 8648 F30E 7FB2 BC92
To claim this, I am signing this object: