VirtualBox

Opened 2 years ago

Closed 17 months ago

#20769 closed defect (fixed)

Partitioning error message at unattended Windows 10 Pro installation

Reported by: isobot Owned by: gombara
Component: virtual disk Version: VirtualBox 6.1.30
Keywords: debian bullseye unattended windows Cc:
Guest type: Windows Host type: Linux

Description

when running an unattended Win10 installation, the installation breaks with an error message (translated from German):

Could not create a partition on storage media "0". The error occured when applying the setting <DiskConfiguration> of the answer file for the unattended installation. Error code: 0x80042565

Attachments (2)

Unattended_Partition_Error.PNG (13.0 KB ) - added by isobot 2 years ago.
error message screenshot
auto_install_win.sh (2.7 KB ) - added by isobot 2 years ago.

Download all attachments as: .zip

Change History (8)

by isobot, 2 years ago

error message screenshot

by isobot, 2 years ago

Attachment: auto_install_win.sh added

comment:1 by gombara, 2 years ago

Owner: set to gombara
Status: newassigned

comment:2 by gombara, 2 years ago

I cannot reproduce this problem. I am testing the script you have provided with some minimal changes such as ISO file location etc. Is it possible to give me the URL of the ISO file that you used? The one I use has the name Win10_21H2_EnglishInternational_x64.iso.

comment:3 by Klaus Espenlaub, 2 years ago

You can save yourself a lot of typing effort in the script by using

VBoxManage createvm --name $vm_name --ostype Windows10_64 --default --register

This creates VM with default config, including storage controller (for Windows 10 it'll be AHCI) but without hard disk image (since you might want a different size than the default). You can of course change VM settings afterwards to you liking, like memory size and so on.

Since VirtualBox 6.1.30 you no longer need to specify options --script-template and --post-install-template, because the long standing packaging bug in the Linux deb and rpm packages has been fixed which caused the templates to be not found without those options.

Version 0, edited 2 years ago by Klaus Espenlaub (next)

comment:4 by Klaus Espenlaub, 2 years ago

Doh. What you see is actually a regression introduced in 6.1.28, and was fixed shortly after 6.1.30 was built. Suspect that's why it wasn't reproducible for gombara.

Will be fixed in 6.1.32.

If you need a quick workaround: configure the VM to use EFI. Not that it's the default config, but it avoids the bug. The partitioning failure is caused by VirtualBox creating a GPT partitioning unconditionally, not the MBR one which should be used for legacy BIOS.

comment:5 by isobot, 2 years ago

thank you very much for the fast update. I'm going to test 6.1.32 and give you feedback afterwards.

comment:6 by aeichner, 17 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use