diff --git a/REFENCES.md b/REFENCES.md index 0560906..b901ab8 100644 --- a/REFENCES.md +++ b/REFENCES.md @@ -1,2 +1,4 @@ * * +* +* diff --git a/create-proxmox-cloudinit-images.sh b/create-proxmox-cloudinit-images.sh index ef4cfe9..45b4089 100755 --- a/create-proxmox-cloudinit-images.sh +++ b/create-proxmox-cloudinit-images.sh @@ -50,9 +50,10 @@ function createImage() { qm create ${IMAGE_ID} --name "${IMAGE_NAME}" --memory ${IMAGE_RAM} --cores ${IMAGE_CORES} \ --net0 virtio,bridge=vmbr0 - qm importdisk ${IMAGE_ID} ${IMAGE_FILE} ${IMAGE_STORE} + qm importdisk ${IMAGE_ID} ${IMAGE_FILE} ${IMAGE_STORE} --format qcow2 qm set ${IMAGE_ID} --cpu cputype=x86-64-v2 qm set ${IMAGE_ID} --scsihw virtio-scsi-pci --scsi0 ${IMAGE_STORE}:vm-${IMAGE_ID}-disk-0 +# qm resize ${IMAGE_ID} virtio0 +15G qm set ${IMAGE_ID} --boot c --bootdisk scsi0 qm set ${IMAGE_ID} --ide2 ${IMAGE_STORE}:cloudinit @@ -70,6 +71,7 @@ function createImage() { qm set ${IMAGE_ID} --ipconfig0 ip=dhcp qm set ${IMAGE_ID} --agent enabled=1 qm set ${IMAGE_ID} --sshkeys ${SSH_KEYS_FILE} +# qm template ${IMAGE_ID} rm -vf "${IMAGE_FILE}" }