Opened 18 months ago
Last modified 15 months ago
#21712 new defect
Unattend install failure: "Windows cannot find the Microsoft Software License Terms"
Reported by: | foxinthevbox | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox-7.0.8 |
Keywords: | VBoxManage unattended install | Cc: | foxinthevbox |
Guest type: | Windows | Host type: | Windows |
Description
As per the following user forum topic: TITLE: "Windows cannot find the Microsoft Software License Terms" LINK: https://forums.virtualbox.org/viewtopic.php?t=86695
I am hitting this error now too, removing the floppy .img file from the floppy controller didn't fix the issue. Neither did removing the floppy controller.
As per other users, a manual creation (so create the VM while NOT running the 'unattended' line) works fine. I'm having the issue on Windows 2016, and a newly downloaded 2019 .iso file too.
ERROR (pop up dialogue): Windows cannot find the Microsoft Software License Terms. Make sure the installation sources are valid and restart the installation.
Any suggestions are most welcome - thanks VERSION: Version 7.0.8 r156879 (Qt5.15.2). Windows 11 Home 64bit; 32GB RAM; Processor: 12th Gen Intel(R) Core(TM) i7-1260P (16 CPUs), ~2.1GHz
CODE: # Add path to Virtualbox to my Powershell Path $Env:Path += ";C:\Program Files\Oracle\VirtualBox\"
$VBOX_VMNAME = "SQL-SERVER05_SQL2019_WIN2019_SI"
# Create empty VM: VBoxManage createvm --name $VBOX_VMNAME --ostype Windows2019_64 --register --groups "/SQL"
# ModifyVM Config VBoxManage modifyvm $VBOX_VMNAME --cpus 4 --memory 8192 --vram 128 --graphicscontroller vboxsvga --nic1 bridged --bridgeadapter1 "Intel(R) Wi-Fi 6E AX211 160MHz"
# Add disk controllers VBoxManage storagectl $VBOX_VMNAME --name "SATA" --add sata --controller IntelAHCI --portcount 30 --bootable on
# Attach the OS ISO $isoFile="C:\VirtualBox_FILES\software\OS\Windows_Server_2019_Datacenter_EVAL_en-us.ISO" VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 0 --device 0 --type dvddrive --medium $isoFile
# Add C drive # FYI: DELETE A MEDIUM: VBoxManage closemedium $temp_path --delete $temp_size_GB=40 $temp_path="C:\VirtualBox_FILES\STORAGE\" + $VBOX_VMNAME + "_C_" + $temp_size_GB +"GB.vdi" VBoxManage createmedium --filename $temp_path --size ($temp_size_GB*1024) --variant Standard VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 1 --device 0 --type hdd --medium $temp_path
# Add D drive, SQLHOME, for DBA files $temp_size_GB=5 $temp_path="C:\VirtualBox_FILES\STORAGE\" + $VBOX_VMNAME + "_D_" + $temp_size_GB +"GB.vdi" VBoxManage createmedium --filename $temp_path --size ($temp_size_GB*1024) --variant Standard VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 2 --device 0 --type hdd --medium $temp_path
# Add E drive, SQL DATA $temp_size_GB=50 $temp_path="C:\VirtualBox_FILES\STORAGE\" + $VBOX_VMNAME + "_E_" + $temp_size_GB +"GB.vdi" VBoxManage createmedium --filename $temp_path --size ($temp_size_GB*1024) --variant Standard VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 3 --device 0 --type hdd --medium $temp_path
# Add F drive, SQL LOGS $temp_size_GB=20 $temp_path="C:\VirtualBox_FILES\STORAGE\" + $VBOX_VMNAME + "_F_" + $temp_size_GB +"GB.vdi" VBoxManage createmedium --filename $temp_path --size ($temp_size_GB*1024) --variant Standard VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 4 --device 0 --type hdd --medium $temp_path
# Add T drive, SQL TEMPDB $temp_size_GB=20 $temp_path="C:\VirtualBox_FILES\STORAGE\" + $VBOX_VMNAME + "_T_" + $temp_size_GB +"GB.vdi" VBoxManage createmedium --filename $temp_path --size ($temp_size_GB*1024) --variant Standard VBoxManage storageattach $VBOX_VMNAME --storagectl "SATA" --port 5 --device 0 --type hdd --medium $temp_path
# Add shard folder $sharedFolder = "C:\VirtualBox_FILES" VBoxManage sharedfolder add $VBOX_VMNAME --name VirtualBox_FILES --hostpath $sharedFolder --automount --auto-mount-point='Z'
# Clipboard sharing on VBoxManage modifyvm $VBOX_VMNAME --clipboard-mode bidirectional
# Unattended Install: Config files go to: C:\VirtualBox_FILES\SQL\SQL-SERVER04_SQL2019_WIN2016_SI $isoFile="C:\VirtualBox_FILES\software\OS\Windows_Server_2019_Datacenter_EVAL_en-us.ISO" $isoFileAdditions="C:\VirtualBox_FILES\software\Accessories\VBoxGuestAdditions.iso" $userName="Administrator" $fullUserName="Administrator" $password="xxx"
VBoxManage unattended install $VBOX_VMNAME --iso=$isoFile --user=$userName --password=$password --full-user-name=$fullUserName --install-additions --additions-iso=$isoFileAdditions --locale=ll_UK --image-index=4
# Start VM VBoxManage startvm $VBOX_VMNAME
Attachments (2)
Change History (3)
by , 18 months ago
Attachment: | install6_ERROR.png added |
---|
by , 18 months ago
Attachment: | install5_SUMMARYsmall.png added |
---|
So I used 7zip to open the floppy image with the autounattend.xml, and if you miss out providing the serial key, Virtualbox the absolute moron it is, just puts hyphens in the key field.
I Just confirmed by editing the floppy image with winimage, and it worked. I Just deleted the <ProductKey> entity from <UserData>, it works.
If someone can point me to where that file is generated, I'd be happy to submit a patch to fix. This really is a silly bug.