use downloaded authorized_keys
Use the authorized_keys getting downloaded into the temp directory, by popping out of it later.
This commit is contained in:
parent
ea0fc6e65a
commit
ab47e4f43c
2 changed files with 1 additions and 3 deletions
|
@ -46,7 +46,6 @@ qm destroy ${VMID} || true
|
|||
qm create ${VMID} --name "creating-vm" --memory 2048 --net0 virtio,bridge=${BRIDGE}
|
||||
qm importdisk ${VMID} disk.raw ${STORAGE}
|
||||
rm disk.raw
|
||||
popd
|
||||
|
||||
qm set ${VMID} --scsihw virtio-scsi-pci --scsi0 ${STORAGE}:vm-${VMID}-disk-0,ssd=1,discard=on
|
||||
qm set ${VMID} --ide2 ${STORAGE}:cloudinit
|
||||
|
@ -64,3 +63,4 @@ qm set ${VMID} --ipconfig0 ip=dhcp
|
|||
qm set ${VMID} --name ${NAME} --tags debian12
|
||||
qm cloudinit update ${VMID}
|
||||
qm template ${VMID}
|
||||
popd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue