Creating a Proxmox template from a Cloud Image, cloning to create additional VMs

Download a Cloud Image as a .qcow2 image from https://cloud-images.ubuntu.com/

Steps to create template and cloning a template are from docs here: https://pve.proxmox.com/wiki/Cloud-Init_Support

Create Proxmox Template from image

Note that the path to the image is an absolute path.

I’m numbering my base image/template as 200 but you can use any value that’s not already in use:

qm create 200 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci
qm set 200 --scsi0 local-lvm:0,import-from=/root/ubuntu-server-24.04-cloudimg-amd64.img
qm set 200 --ide2 local-lvm:cloudinit
qm set 200 --boot order=scsi0
qm template 200

Clone template to a new VM

qm clone 200 201 -name [VM_NAME]
qm set 201 --sshkey [YOUR_SSH_KEY].pub
qm set 201 --ipconfig0 ip=[YOUR-IP]/24,gw=[YOUR-GW]
qm disk resize 201 scsi0 20G

Repurposing HDDs from my HP DL380 rack server in a downsized HP Elitedesk 800 g5 homelab

I used to run an HP DL380 G7 2U rack server for my homelab, but it would have been too expensive to ship during an international house move so abandoned it during the move. In the meantime I went back to running Proxmox on my 2008 MacPro (which I did have shipped), but after a few years of service (I got it used from eBay in 2017) it’s now started to have some random hardware issues:

  • the RAM has slowly been dying, stick by stick
  • one of the RAM riser boards is showing a red error LED when any of the sticks are in a certain position on the board, so I think the whole board might need to be replaced

Anyway, short story is I’m down in 16GB in the Mac Pro.

In the meantime I’ve been browing r/homelab and other places, and eventually settled on the realisation that a used small form factor office desktop, like the HP Prodesk and Elitedesk PCs is more than enough for what I need (and substantially quieter). Given that you can pick them up in various specs around £100+ I even thought about getting a couple to set up a Kubernetes cluster, but I just picked up one to start with, an Elitedesk 800 G5 SFF with an i7 and 32GB. The SFF model has room inside for a few HDD and/or SDDs, and a slot on the mobo for a NVMe SDD too.

I wanted to do a stock check of what I had on the shelf that I can repurpose for the new Elitedesk – most of these were pulled from the DL380:

Purchased 2017- first HDDs in the DL380, but replaced because of the fan noise (I’m not sure if I still have these):

  • HGST 7K750-500 HTS727550A9E364 (0J23561) 500GB 7200RPM 16MB Cache SATA 3.0Gb/s 2.5″

Purchased in 2017: Second set of disks added to the RAID array to my DL380:

  • 2x WD Black 2.5″ 750GB

Purchased in 2019 to add additional space to the RAID array on my DL380 – these were refurbs from Amazon:

  • 2x WD Blue 1TB Mobile Hard Disk Drive – 5400 RPM SATA 6 Gb/s 128MB Cache 2.5 Inch – WD10SPZX (Certified Refurbished)

The SDD that came with the Elitedesk is also used (wasn’t lucky enough to get a new one), and according to SMART it has 13300 power-on hours on it. No errors, but about half way through it’s life. Although it’s probably ok for a while I’ll probably swap it out. Now I’ve looked at the stats I may go for a new NVMe for the boot disk, and add the 2x WD Blacks for storage.

Before I start moving things around though, I need to get some SATA cables…

Proxmox inplace upgrade – v8 to v9

I have Proxmox 8 installed on my Mac Pro 2008 which I’ve run for a few years. Noticing that there was recently an update to 9, I followed the inplace upgrade instructions here, followed all the prompts during install as per the guide and everything went well.

Before:

After upgrade and reboot:

The only question I ran into was this prompt about updating an UEFI boot loader:

Removable bootloader found at '/boot/efi/EFI/BOOT/BOOTX64.efi', but GRUB packages not set up to update it!
Run the following command:

echo 'grub-efi-amd64 grub2/force_efi_extra_removable boolean true' | debconf-set-selections -v -u

Since I’ve tried installing OCLP on this Mac Pro before, I assumed this was something to do with that … so ignored it, rebooted…. and everything was ok …

ssh to solaris 10 error: “no matching key exchange method found”

I first ran into this error after installing Solaris 10 on a Sun Ultra 60 that I had a while back, but I’ve recently ran into it again installing Solaris 10 on Proxmox:

Unable to negotiate with 192.168.1.95 port 22: no matching key exchange method found. Their offer: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

The solution to configure my Mac to be able to use older key algorithms was a combination from here and answers on this post.

I edited my ~/.ssh/config and added a Host entry for the ip of my Solaris 10 instance, adding:

Host 192.168.1.95
HostKeyAlgorithms=+ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1

And now I can just ssh in as normal (no need for any additional params as shown in the first post, as the required options are configured in my .ssh/config.