Compressing Windows Image Fails

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Compressing Windows Image Fails

Post by rustyjarz » Tue Jun 28, 2022 6:22 am

Hi,

Setup a new Windows 10 Node. Trying to compress the image as described here https://www.eve-ng.net/index.php/docume ... n-the-eve/. I'm getting the below errors. There is ample free space on the EVE system.

root@SYD4-VM-EVE01:/opt/unetlab/addons/qemu/win-10# ls -l
total 14787844
-rw-r--r-- 1 root root 15143862272 Jun 27 10:09 virtioa.qcow2
root@SYD4-VM-EVE01:/opt/unetlab/addons/qemu/win-10# virt-sparsify --compress virtioa.qcow2 compressedvirtioa.qcow2
[ 0.0] Create overlay file in /tmp to protect source disk
[ 0.1] Examine source disk
- 25% [##############################---------------------------------------------------------------------------------------------] --:--
virt-sparsify: 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.htm ... 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-sparsify with debugging enabled and include the
complete output:

virt-sparsify -v -x [...]

rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Re: Compressing Windows Image Fails

Post by rustyjarz » Tue Jun 28, 2022 10:34 pm

Hello, I need some help here.

Uldis (UD)
Posts: 5084
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Compressing Windows Image Fails

Post by Uldis (UD) » Wed Jun 29, 2022 8:30 pm

nex eve update this will be fixed, it will be another sparsify command

rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Re: Compressing Windows Image Fails

Post by rustyjarz » Wed Jun 29, 2022 11:06 pm

Thanks, when is the next update planned?

Uldis (UD)
Posts: 5084
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Compressing Windows Image Fails

Post by Uldis (UD) » Thu Jun 30, 2022 6:28 am

It is script nased solution you can make it ready today.
1.Download and unzip attached file
2. Load it in your EVE Location:

Code: Select all

/usr/local/bin
instead of virt-sparsify
use command

Code: Select all

eve-sparsify  --compress virtioa.qcow2 compressedvirtioa.qcow2
You do not have the required permissions to view the files attached to this post.

rustyjarz
Posts: 28
Joined: Sun Jun 14, 2020 12:53 am

Re: Compressing Windows Image Fails

Post by rustyjarz » Tue Jul 05, 2022 6:38 am

Thanks this did the trick.

Post Reply