Update cloud-init-template.sh
This commit is contained in:
parent
4a2b0d3c7b
commit
78f1ffefbf
@ -8,7 +8,7 @@ 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,rsyslog]
|
virt-customize -a $IMAGE --install ['qemu-guest-agent','rsyslog']
|
||||||
virt-customize -a $IMAGE --truncate /etc/machine-id
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user