Update cloud-init-template.sh

This commit is contained in:
Matthew Fisher 2024-04-10 13:56:04 -05:00
parent f3a73f9201
commit 4a2b0d3c7b

View File

@ -8,8 +8,8 @@ IMAGE=jammy-server-cloudimg-amd64.img
# remove existing image in case last execution did not complete successfully # remove existing image in case last execution did not complete successfully
rm *-server-cloudimg-amd64.img rm *-server-cloudimg-amd64.img
wget http://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img wget http://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
virt-customize -a $IMAGE --install qemu-guest-agent virt-customize -a $IMAGE --install [qemu-guest-agent,rsyslog]
virt-customize -a $IMAGE --install rsyslog virt-customize -a $IMAGE --truncate /etc/machine-id
qm create 9004 --name "ubuntu-2204-cloudinit-template" --memory 2048 --cores 2 --net0 virtio,bridge=vmbr1 qm create 9004 --name "ubuntu-2204-cloudinit-template" --memory 2048 --cores 2 --net0 virtio,bridge=vmbr1
qm importdisk 9004 jammy-server-cloudimg-amd64.img local-ssd qm importdisk 9004 jammy-server-cloudimg-amd64.img local-ssd