VirtualBox

3 年 前 建立

2 年 前 結束

#20769 closed defect (fixed)

Partitioning error message at unattended Windows 10 Pro installation

回報者: isobot 負責人: gombara
元件: virtual disk 版本: VirtualBox 6.1.30
關鍵字: debian bullseye unattended windows 副本:
Guest type: Windows Host type: Linux

描述

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

附加檔案 (2)

Unattended_Partition_Error.PNG (13.0 KB ) - 3 年 前, 由 isobot 新增
error message screenshot
auto_install_win.sh (2.7 KB ) - 3 年 前, 由 isobot 新增

下載所有附檔: .zip

更動歷史 (8)

3 年 前isobot 編輯

error message screenshot

3 年 前isobot 編輯

附檔: 新增 auto_install_win.sh

comment:1 3 年 前gombara 編輯

狀態: newassigned
負責人: 指定為 gombara

comment:2 3 年 前gombara 編輯

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 3 年 前Klaus Espenlaub 編輯

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 your 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.

最後由 Klaus Espenlaub 編輯於 3 年 前 (上一筆) (差異)

comment:4 3 年 前Klaus Espenlaub 編輯

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 3 年 前isobot 編輯

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

comment:6 2 年 前aeichner 編輯

狀態: assignedclosed
處理結果: fixed
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette