fixup
This commit is contained in:
parent
74412c51a4
commit
d3f35b4954
2 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue