diff --git a/Ubuntu-LTS-Large.sh b/Ubuntu-LTS-Large.sh index a0330f6..ce38d1b 100644 --- a/Ubuntu-LTS-Large.sh +++ b/Ubuntu-LTS-Large.sh @@ -10,6 +10,7 @@ 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 --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 diff --git a/Ubuntu-LTS-Medium.sh b/Ubuntu-LTS-Medium.sh index 169cd40..21ab3fa 100644 --- a/Ubuntu-LTS-Medium.sh +++ b/Ubuntu-LTS-Medium.sh @@ -10,6 +10,7 @@ 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 --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 +22,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"" \ No newline at end of file