[GH-ISSUE #6718] virt-resize expand failed?? #1427

Closed
opened 2026-02-26 12:48:52 +03:00 by kerem · 8 comments
Owner

Originally created by @hjscott7690 on GitHub (Aug 9, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/6718

Have you read and understood the above guidelines?

yes

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

DOCKER VM

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

⚙️ Using Default Settings
🆔 Virtual Machine ID: 104
📦 Machine Type: i440fx
💾 Disk Size: 10G
💾 Disk Cache: None
🏠 Hostname: docker
🖥️ CPU Model: KVM64
🧠 CPU Cores: 2
🛠️ RAM Size: 4096
🌉 Bridge: vmbr0
🔗 MAC Address: ###############
🏷️ VLAN: Default
⚙️ Interface MTU Size: Default
🌐 Start VM when completed: yes
🚀 Creating a Docker VM using the above default settings
✔️ Using USB_1 for Storage Location.
✔️ Virtual Machine ID is 104.
✔️ https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2
############################################################################################################################################################### 100.0%
✔️ Downloaded debian-12-nocloud-amd64.qcow2
Adding Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image virt-customize: error: libguestfs error: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the complete output
into a bug report or message to the libguestfs mailing list.

If reporting bugs, run virt-customize with debugging enabled and include
the complete output:

virt-customize -v -x [...]
✔️ Added Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image successfully
Expanding root partition to use full disk space
[ERROR] in line 515: exit code 1: while executing command virt-resize --expand /dev/sda1 ${FILE} expanded.qcow2 > /dev/null 2>&1

🔄 Steps to reproduce the issue.

just ran default and choose different hard drive but keep getting same result

Paste the full error output (if available).

This usually means the libguestfs appliance failed to start or crashed.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the complete output
into a bug report or message to the libguestfs mailing list.

If reporting bugs, run virt-customize with debugging enabled and include
the complete output:

virt-customize -v -x [...]
✔️ Added Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image successfully
Expanding root partition to use full disk space
[ERROR] in line 515: exit code 1: while executing command virt-resize --expand /dev/sda1 ${FILE} expanded.qcow2 > /dev/null 2>&1

🖼️ Additional context (optional).

No response

Originally created by @hjscott7690 on GitHub (Aug 9, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/6718 ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? DOCKER VM ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/vm/docker-vm.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. ⚙️ Using Default Settings 🆔 Virtual Machine ID: 104 📦 Machine Type: i440fx 💾 Disk Size: 10G 💾 Disk Cache: None 🏠 Hostname: docker 🖥️ CPU Model: KVM64 🧠 CPU Cores: 2 🛠️ RAM Size: 4096 🌉 Bridge: vmbr0 🔗 MAC Address: ############### 🏷️ VLAN: Default ⚙️ Interface MTU Size: Default 🌐 Start VM when completed: yes 🚀 Creating a Docker VM using the above default settings ✔️ Using USB_1 for Storage Location. ✔️ Virtual Machine ID is 104. ✔️ https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2 ############################################################################################################################################################### 100.0% ✔️ Downloaded debian-12-nocloud-amd64.qcow2 Adding Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image virt-customize: error: libguestfs error: guestfs_launch failed. This usually means the libguestfs appliance failed to start or crashed. Do: export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 and run the command again. For further information, read: http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs You can also run 'libguestfs-test-tool' and post the *complete* output into a bug report or message to the libguestfs mailing list. If reporting bugs, run virt-customize with debugging enabled and include the complete output: virt-customize -v -x [...] ✔️ Added Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image successfully Expanding root partition to use full disk space [ERROR] in line 515: exit code 1: while executing command virt-resize --expand /dev/sda1 ${FILE} expanded.qcow2 > /dev/null 2>&1 ### 🔄 Steps to reproduce the issue. just ran default and choose different hard drive but keep getting same result ### ❌ Paste the full error output (if available). This usually means the libguestfs appliance failed to start or crashed. Do: export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1 and run the command again. For further information, read: http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs You can also run 'libguestfs-test-tool' and post the *complete* output into a bug report or message to the libguestfs mailing list. If reporting bugs, run virt-customize with debugging enabled and include the complete output: virt-customize -v -x [...] ✔️ Added Docker and Docker Compose Plugin to Debian 12 Qcow2 Disk Image successfully Expanding root partition to use full disk space [ERROR] in line 515: exit code 1: while executing command virt-resize --expand /dev/sda1 ${FILE} expanded.qcow2 > /dev/null 2>&1 ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:48:52 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MickLesk commented on GitHub (Aug 9, 2025):

What is usb1 for an storage ?

<!-- gh-comment-id:3172066941 --> @MickLesk commented on GitHub (Aug 9, 2025): What is usb1 for an storage ?
Author
Owner

@hjscott7690 commented on GitHub (Aug 9, 2025):

yes, and i tried it on my local-lvm

<!-- gh-comment-id:3172068496 --> @hjscott7690 commented on GitHub (Aug 9, 2025): yes, and i tried it on my local-lvm
Author
Owner

@MickLesk commented on GitHub (Aug 10, 2025):

Ive asked what Type of storage is usb1 ^^

Whats your pve Version?

<!-- gh-comment-id:3172432478 --> @MickLesk commented on GitHub (Aug 10, 2025): Ive asked what Type of storage is usb1 ^^ Whats your pve Version?
Author
Owner

@hjscott7690 commented on GitHub (Aug 10, 2025):

usb1 is a ssd via usb 3.0

<!-- gh-comment-id:3172756844 --> @hjscott7690 commented on GitHub (Aug 10, 2025): usb1 is a ssd via usb 3.0
Author
Owner

@hjscott7690 commented on GitHub (Aug 10, 2025):

8.4.6

<!-- gh-comment-id:3172756931 --> @hjscott7690 commented on GitHub (Aug 10, 2025): 8.4.6
Author
Owner

@MickLesk commented on GitHub (Aug 13, 2025):

  1. USB storage mounted via FUSE/NTFS/exFAT → libguestfs fails

  2. Missing libguestfs-tools or KVM support

  3. Wrong partition name (/dev/vda1 vs /dev/sda1)

  4. virt-resize blocked by mount options like noexec

Try this:

apt install libguestfs-tools libvirt-daemon-system libvirt-clients on your Host

Otherwise i cant help you

<!-- gh-comment-id:3183171829 --> @MickLesk commented on GitHub (Aug 13, 2025): 1. USB storage mounted via FUSE/NTFS/exFAT → libguestfs fails 2. Missing libguestfs-tools or KVM support 3. Wrong partition name (/dev/vda1 vs /dev/sda1) 4. virt-resize blocked by mount options like noexec Try this: apt install libguestfs-tools libvirt-daemon-system libvirt-clients on your Host Otherwise i cant help you
Author
Owner

@lazyd3v commented on GitHub (Aug 16, 2025):

I had the same issue, here's the command that helped me

apt-get install --reinstall binutils-x86-64-linux-gnu

<!-- gh-comment-id:3193752171 --> @lazyd3v commented on GitHub (Aug 16, 2025): I had the same issue, here's the command that helped me `apt-get install --reinstall binutils-x86-64-linux-gnu`
Author
Owner

@hjscott7690 commented on GitHub (Aug 23, 2025):

turns out to be a storage issue on the pve-root, it needs enough room to expand debian qcow2 and then import to the selected storage i picked, thanks for the help

<!-- gh-comment-id:3216207805 --> @hjscott7690 commented on GitHub (Aug 23, 2025): turns out to be a storage issue on the pve-root, it needs enough room to expand debian qcow2 and then import to the selected storage i picked, thanks for the help
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#1427
No description provided.