[GH-ISSUE #10687] Setup error when storage is a ZFS pool and succeeds with lvmthin #2303

Closed
opened 2026-02-26 12:51:59 +03:00 by kerem · 1 comment
Owner

Originally created by @Keugon on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/10687

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

No (this issue will likely be closed automatically)

📜 What is the name of the script you are using?

Nextcloud VM

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/nextcloud-vm.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

pve-manager/9.1.4/5ac30304265fbd8e (running kernel: 6.17.4-2-pve)

📝 Provide a clear and concise description of the issue.

The helperscript stucks after the line "Download" with "Created a", and emits the following error if "escpae" gets pressd:
[ERROR] in line 500: exit code 1: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null
It only achives to create the vm disk number 0 but not the 1 and 2 eg "vm-118-disk-0"

in the script in the reagion of:

STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}')
case $STORAGE_TYPE in
nfs | dir)
  DISK_EXT=".raw"
  DISK_REF="$VMID/"
  DISK_IMPORT="-format raw"
  THIN=""
  ;;
btrfs)
  DISK_EXT=".raw"
  DISK_REF="$VMID/"
  DISK_IMPORT="-format raw"
  FORMAT=",efitype=4m"
  THIN=""
  ;;
esac
for i in {0,1,2}; do
  disk="DISK$i"
  eval DISK${i}=vm-${VMID}-disk-${i}${DISK_EXT:-}
  eval DISK${i}_REF=${STORAGE}:${DISK_REF:-}${!disk}
done

msg_info "Creating a $NAME"
qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios seabios${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \
  -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci
pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null
pvesm alloc $STORAGE $VMID $DISK1 12G 1>&/dev/null
qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null
qm set $VMID \
  -efidisk0 ${DISK0_REF}${FORMAT} \
  -scsi0 ${DISK1_REF},${DISK_CACHE}${THIN} \
  -scsi1 ${DISK2_REF},${DISK_CACHE}${THIN} \
  -boot order='scsi1;scsi0' >/dev/null

Here it gets stuck after the command pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null

my solution is to choose a storage of type lvmthin

🔄 Steps to reproduce the issue.

Use the helper script with default or advanced option and choose a Storage that is of type ZFS and it will fail

Paste the full error output (if available).

[ERROR] in line 500: exit code 1: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null

🖼️ Additional context (optional).

No response

Originally created by @Keugon on GitHub (Jan 10, 2026). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/10687 ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? No (this issue will likely be closed automatically) ### 📜 What is the name of the script you are using? Nextcloud VM ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/nextcloud-vm.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? pve-manager/9.1.4/5ac30304265fbd8e (running kernel: 6.17.4-2-pve) ### 📝 Provide a clear and concise description of the issue. The helperscript stucks after the line "Download" with "Created a", and emits the following error if "escpae" gets pressd: [ERROR] in line 500: exit code 1: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null It only achives to create the vm disk number 0 but not the 1 and 2 eg "vm-118-disk-0" in the script in the reagion of: ```bash STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}') case $STORAGE_TYPE in nfs | dir) DISK_EXT=".raw" DISK_REF="$VMID/" DISK_IMPORT="-format raw" THIN="" ;; btrfs) DISK_EXT=".raw" DISK_REF="$VMID/" DISK_IMPORT="-format raw" FORMAT=",efitype=4m" THIN="" ;; esac for i in {0,1,2}; do disk="DISK$i" eval DISK${i}=vm-${VMID}-disk-${i}${DISK_EXT:-} eval DISK${i}_REF=${STORAGE}:${DISK_REF:-}${!disk} done msg_info "Creating a $NAME" qm create $VMID -agent 1${MACHINE} -tablet 0 -localtime 1 -bios seabios${CPU_TYPE} -cores $CORE_COUNT -memory $RAM_SIZE \ -name $HN -tags community-script -net0 virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU -onboot 1 -ostype l26 -scsihw virtio-scsi-pci pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null pvesm alloc $STORAGE $VMID $DISK1 12G 1>&/dev/null qm importdisk $VMID ${FILE} $STORAGE ${DISK_IMPORT:-} 1>&/dev/null qm set $VMID \ -efidisk0 ${DISK0_REF}${FORMAT} \ -scsi0 ${DISK1_REF},${DISK_CACHE}${THIN} \ -scsi1 ${DISK2_REF},${DISK_CACHE}${THIN} \ -boot order='scsi1;scsi0' >/dev/null ``` Here it gets stuck after the command `pvesm alloc $STORAGE $VMID $DISK0 4M 1>&/dev/null` my solution is to choose a storage of type lvmthin ### 🔄 Steps to reproduce the issue. Use the helper script with default or advanced option and choose a Storage that is of type ZFS and it will fail ### ❌ Paste the full error output (if available). [ERROR] in line 500: exit code 1: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:51:59 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Keugon commented on GitHub (Jan 10, 2026):

zfs had a hang and the host needed to restart

<!-- gh-comment-id:3732508459 --> @Keugon commented on GitHub (Jan 10, 2026): zfs had a hang and the host needed to restart
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2303
No description provided.