diff --git a/create_organisation b/create_organisation index bc81ba0..3f8548d 100755 --- a/create_organisation +++ b/create_organisation @@ -20,7 +20,7 @@ pveum group add "${ORGA}" --comment "group for the organisation '${ORGA}'" pveum pool add "${ORGA}" --comment "pool for the organisation '${ORGA}'" # allow group to access resource pool -pveum acl modify "/pool/${ORGA}/" --roles PVEVMUser,PVEDatastoreAdmin,RDNTZVMSnapshot --groups "${ORGA}" +pveum acl modify "/pool/${ORGA}/" --roles PVEPoolUser,PVEVMUser,PVEDatastoreAdmin,RDNTZVMSnapshot,RDNTZVMOptions --groups "${ORGA}" # create zfs filesystem for isos, backups and stuff zfs create -o quota=150G -p "${ZFS_PARENT_PATH}/${ORGA}-images" diff --git a/create_vm b/create_vm index 5d3e0b5..7b3f9de 100755 --- a/create_vm +++ b/create_vm @@ -3,7 +3,7 @@ set -e CPUS=1 -MEMORY=512 +MEMORY=2048 BRIDGE=vmbr0 STORAGE=customer-disks OS_TYPE=l26 @@ -34,10 +34,10 @@ qm create "${ID}" \ --ide2 ${STORAGE}:cloudinit # import debian cloud image -qm set ${ID} --virtio0 ${STORAGE}:0,import-from=${DISK_IMAGE} +qm set ${ID} --virtio0 ${STORAGE}:0,import-from=${DISK_IMAGE},iothread=1,discard=on # resize imported disk to 50GB qm disk resize ${ID} virtio0 50G # change boot device to debian cloud image -qm set ${ID} --boot order=virtio0 +qm set ${ID} --boot order=sata0\;virtio0