This commit is contained in:
root 2024-01-21 02:44:45 +02:00
parent b578fe559f
commit 92b86cebb2

View File

@ -34,7 +34,7 @@ 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 set ${IMAGE_ID} --scsihw virtio-scsi-pci --scsi0 ${IMAGE_STORE}:vm-9000-disk-0
qm set ${IMAGE_ID} --scsihw virtio-scsi-pci --scsi0 ${IMAGE_STORE}:vm-${IMAGE_ID}-disk-0
qm set ${IMAGE_ID} --boot c --bootdisk scsi0
qm set ${IMAGE_ID} --ide2 ${IMAGE_STORE}:cloudinit
qm set ${IMAGE_ID} --serial0 socket --vga serial0