Update install.sh
This commit is contained in:
parent
ca78c0509f
commit
04f22973f4
@ -54,7 +54,7 @@ echo -e "\n\n\n" \
|
||||
VMDISK=vm-${VMID}-disk-
|
||||
qm create $VMID -bios ovmf -name $(sed -e "s/\_//g" -e "s/.vdi.gz//" <<< $FILE) \
|
||||
-net0 virtio,bridge=vmbr0 -onboot 1 -ostype l26 -scsihw virtio-scsi-pci && \
|
||||
pvesm alloc $VM_STORAGE $VMID ${VMDISK}0$(if [ "$STORAGE_TYPE" = "dir"]; then echo "qcow2";fi) 128 1>&/dev/null && \
|
||||
pvesm alloc $VM_STORAGE $VMID ${VMDISK}0$(if [ "$STORAGE_TYPE" = "dir" ];then echo "qcow2";fi) 128 1>&/dev/null && \
|
||||
qm importdisk $VMID ${FILE%".gz"} $VM_STORAGE 1>&/dev/null && \
|
||||
qm set $VMID -bootdisk sata0 -efidisk0 ${VM_STORAGE}:${VMDISK}0,size=128K \
|
||||
-sata0 ${VM_STORAGE}:${VMDISK}1,size=6G > /dev/null && \
|
||||
|
Loading…
Reference in New Issue
Block a user