Update 4 files

- /Ubuntu-LTS-Large.sh
- /Ubuntu-LTS-Medium.sh
- /Ubuntu-LTS-Small.sh
- /Ubuntu-22-04-LTS.sh
This commit is contained in:
2024-05-01 17:58:18 +00:00
parent bb649e94d5
commit 6409d3e6dd
4 changed files with 14 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
VM_ID=5002
VM_ID=1000
VM_NAME="Ubuntu-24-04-LTS-Small"
CPU_CORE=2
CPU_SOCKET=2
@@ -7,9 +7,9 @@ DISK=50
#getting latest image"
wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
#installing qemu guest agent and remove HW ID
virt-customize -a noble-server-cloudimg-amd64.img --install qemu-guest-agent #docker.io,docker-compose
virt-customize -a noble-server-cloudimg-amd64.img --install qemu-guest-agent
virt-customize -a noble-server-cloudimg-amd64.img --run-command "curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh"
virt-customize -a noble-server-cloudimg-amd64.img --run-command "echo -n > /etc/machine-id"
#virt-customize -a noble-server-cloudimg-amd64.img --run-command "curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh"
qm create $VM_ID --name $VM_NAME --net0 virtio,bridge=vmbr0
qm set $VM_ID --cores "$CPU_CORE" --sockets "$CPU_SOCKET" --memory "$RAM"
qm importdisk "$VM_ID" noble-server-cloudimg-amd64.img local-lvm
@@ -21,5 +21,5 @@ qm resize $VM_ID scsi0 "$DISK"G
qm set "$VM_ID" --ipconfig0 ip=dhcp
qm set "$VM_ID" --agent enabled=1
qm template "$VM_ID"
#rm noble-server-cloudimg-amd64.img #clean iso
rm noble-server-cloudimg-amd64.img clean iso
echo "Template er ferdig med id "$VM_ID""