From 137d4b564d89a29c7eb41c3429ee65b1364cf2a4 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Fri, 15 Dec 2023 21:08:36 -0700 Subject: [PATCH] Update readme.md --- Kubernetes/Cloud-Init/readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kubernetes/Cloud-Init/readme.md b/Kubernetes/Cloud-Init/readme.md index dc2f845..ecbccca 100644 --- a/Kubernetes/Cloud-Init/readme.md +++ b/Kubernetes/Cloud-Init/readme.md @@ -1,6 +1,6 @@ 1. Download the ISO using the GUI (tested on https://cloud-images.ubuntu.com/lunar/current/lunar-server-cloudimg-amd64-disk-kvm.img) 1. Create the VM via CLI -``` +```bash qm create 5000 --memory 2048 --core 2 --name ubuntu-cloud --net0 virtio,bridge=vmbr0 cd /var/lib/vz/template/iso/ qm importdisk 5000 lunar-server-cloudimg-amd64-disk-kvm.img @@ -10,5 +10,8 @@ qm set 5000 --boot c --bootdisk scsi0 qm set 5000 --serial0 socket --vga serial0 ``` 3. Expand the VM disk size to a suitable size (suggested 10 GB) +```bash +qm disk resize 5000 scsi0 10G +``` 4. Create the Cloud-Init template 5. Deploy new VMs by cloning the template (full clone)