Closed icksa closed 5 years ago
Hello, Could you give us some details about your workflow? Did you use the New-WindowsOnlineImage or New-WindowsCloudImage? How does your config file look like?
Hello,
You have hit a weird PowerShell issue for the Resize-Partition, as the minimum partition size does not coincide with the minimum resizeable partition size. As your image file has already been generated, you can unmount it manually and run "qemu-img.exe convert -O qcow2 image.vhdx image.qcow2". You will find qemu-img.exe in the bin folder.
To try to fix the code, you can increase the number of retries of the resize or increase the minimum buffer for the resize. https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/WinImageBuilder.psm1#L990 or https://github.com/cloudbase/windows-openstack-imaging-tools/blob/master/WinImageBuilder.psm1#L963
By default, the number of retries is 4.
Thank you for responding so quickly. I increased the retry count in WinImageBuilder.psm1 and was able to get around this issue.
Thanks again.
@icksa I will make a patch to increase the retry count to a higher value so that this issue does not happen anymore.
@icksa I added also a binary search resize retry as sometimes not even 20 or 30 retries are not enough on Windows 10 updated. https://github.com/cloudbase/windows-openstack-imaging-tools/pull/294
I'm trying to create a windows 10 openstack image. During the Resize-Image step, I am getting a "Not Enough Available Capacity" error. Do you have any suggestions about how to get around this?
Thanks