Update Servers/Virtualization/Proxmox/Cloud-Init Templates/Ubuntu Server.md
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 8s
All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 8s
This commit is contained in:
@@ -10,6 +10,22 @@ mkdir -p /var/lib/vz/template/images/ubuntu && cd /var/lib/vz/template/images/ub
|
||||
# Download Ubuntu 24.04 LTS cloud image (amd64, server)
|
||||
wget -q --show-progress https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
|
||||
|
||||
# Create a Placeholder VM to Attach Cloud Image
|
||||
qm create 9000 --name ubuntu-2404-cloud --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0
|
||||
|
||||
# Set UEFI (OVMF) + SCSI controller (Cloud images expect UEFI firmware and SCSI disk.)
|
||||
qm set 9000 --bios ovmf --scsihw virtio-scsi-pci
|
||||
|
||||
# Import the disk into ProxmoxVE
|
||||
qm importdisk 9000 noble-server-cloudimg-amd64.img nfs-cluster-storage
|
||||
qm importdisk 9000 noble-server-cloudimg-amd64.img nfs-cluster-storage --format qcow2
|
||||
|
||||
# Query ProxmoxVE to find out where the volume was created
|
||||
pvesm list nfs-cluster-storage | grep 9000
|
||||
|
||||
# Attach the disk to the placeholder VM
|
||||
qm set 9000 --scsi0 nfs-cluster-storage:9000/vm-9000-disk-0.qcow2
|
||||
|
||||
# Configure Disk to Boot
|
||||
qm set 9000 --boot c --bootdisk scsi0
|
||||
|
||||
```
|
Reference in New Issue
Block a user