improvements to VMWare and VirtualBox test VM

- enable HPET in VMWare to fix BSOD with multiple CPU's enabled
- revised "Auto" cpu selection to balance guest/host performance
- disable paravirtulization interface in VirtualBox to improve stability when more then one CPU is defined. This prevents the CPU from consuming all resources initializing multiple CPU's and hanging on boot
- enable HPET and disable PAE in VirtualBox
This commit is contained in:
Homes32
2022-05-26 16:42:59 -05:00
parent e616a664fb
commit 977e2a11b7
6 changed files with 53 additions and 32 deletions

View File

@@ -476,7 +476,7 @@ btn_SetDefaultOptions=,1,8,543,5,25,25,SetDefaultOptions,SetDefaults_16.png,Fals
btn_AdvancedOptions=,1,8,574,5,25,25,ToggleAdvancedOptions,Advanced_16.png,True,"__Show Advanced Options"
btn_ScriptInfo=,1,8,605,5,25,25,ShowScriptInfo,Help_16.png,True,"__Script Info"
bvl_SourceCfg="Configure Source",1,12,5,50,625,105,8,Bold
web_SourceCompatibility="Supported Sources",1,10,451,67,94,18,https://github.com/PhoenixPE/PhoenixPE/wiki/Source-Compatibility
web_SourceCompatibility="Compatible Sources",1,10,449,67,94,18,https://github.com/PhoenixPE/PhoenixPE/wiki/Source-Compatibility
lbl_Source="Source Files:",1,1,17,99,83,18,8,Bold
lbl_ClickSave="Select the directory containing your extracted ISO image.",1,1,15,71,354,16,8,Normal
lbl_SupportedVer1="It is strongly recommended to use Win10 2004 EN (10.0.19041)",1,1,95,121,431,16,8,Normal
@@ -496,7 +496,7 @@ lbl_OutputDir="Output Dir:",0,1,17,339,70,16,8,Bold
fb_OutputDir=%BaseDir%\Output\%ProjectTitle%\,0,13,94,333,525,20,dir,"Title=Select the directory where the final build will be saved","__The directory where the final build will be saved. (eg. BOOT.WIM, Programs, etc.)"
lbl_IsoOutputDir="ISO Dir:",0,1,17,370,70,16,8,Bold
fb_IsoOutputDir=%BaseDir%\Output\,0,13,94,364,526,20,dir,"Title=Select the directory where the final ISO file will be saved","__The directory where the final ISO file will be saved."
txt_YProgramsDirName="Ext. Programs folder:",0,0,94,417,200,21,Programs,"__The name of the 'Programs' folder on the final media (CD/DVD/USB).#$x#$xChanges will take effect on the next build."
txt_YProgramsDirName="Ext. Programs folder:",0,0,94,417,200,21,Programs,"__The name of the 'Programs' folder on the final media (CD/DVD/USB).#$xChanging the name of the Programs folder can be useful if you run more then one WinPE from a single USB drive.#$x#$xChanges will take effect on the next build."
cb_RunFromWim="Run all programs from RAM (Boot.wim)",0,3,341,417,215,18,False,"__Select this option to pack all programs into Boot.wim regardless of individual script settings.#$x#$xRequired for PXE/Network boot."
[InterfaceEncoded]

View File

@@ -30,20 +30,20 @@
[Main]
Title=Notepad++
Description=(v8.4.0.0) Notepad++ is a free and open source code editor and Notepad replacement that supports multiple languages.
Description=(v8.4.1.0) Notepad++ is a free and open source code editor and Notepad replacement that supports multiple languages.
Author=Homes32
Level=5
Selected=True
Mandatory=False
Version=1.4.0.0
Date=2022-04-28
Version=1.4.1.0
Date=2022-05-24
[Variables]
%ProgramFolder%="Notepad++"
%ProgramExe%="notepad++.exe"
%ShellExtDll%="NppShell_06.dll"
%ProgramVersion%=8.4
%DownloadURLx32%=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%ProgramVersion%/npp.%ProgramVersion%.portable.7z
%ProgramVersion%=8.4.1
%DownloadURLx86%=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%ProgramVersion%/npp.%ProgramVersion%.portable.7z
%DownloadURLx64%=https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%ProgramVersion%/npp.%ProgramVersion%.portable.x64.7z
%aToolbarIconMap%=Fluent UI: small|small|Fluent UI: large|large|Filled Fluent UI: small|small2|Filled Fluent UI: large|large2|Standard icons: small|standard
@@ -267,7 +267,7 @@ If,%SourceArch%,Equal,x64,Begin
End
Else,Begin
Echo,"Downloading Notepad++ x86..."
WebGet,%DownloadURLx32%,"%ProgramsCache%\%ProgramFolder%\npp-x86.7z",NOERR
WebGet,%DownloadURLx86%,"%ProgramsCache%\%ProgramFolder%\npp-x86.7z",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
End

View File

@@ -43,7 +43,7 @@ Date=2022-04-11
%ProgramExe%="pwsh.exe"
%ProgramVersion%=7.2.2
%SetupFile%="PowerShell_x86.zip"
%DownloadURLx32%=https://github.com/PowerShell/PowerShell/releases/download/v%ProgramVersion%/PowerShell-%ProgramVersion%-win-x86.zip
%DownloadURLx86%=https://github.com/PowerShell/PowerShell/releases/download/v%ProgramVersion%/PowerShell-%ProgramVersion%-win-x86.zip
%DownloadURLx64%=https://github.com/PowerShell/PowerShell/releases/download/v%ProgramVersion%/PowerShell-%ProgramVersion%-win-x64.zip
[Process]
@@ -92,7 +92,7 @@ If,%SourceArch%,Equal,x64,Begin
End
Else,Begin
Echo,"Downloading %ScriptTitle% x86..."
WebGet,%DownloadURLx32%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
WebGet,%DownloadURLx86%,"%ProgramsCache%\%ProgramFolder%\%SetupFile%",NOERR
If,Not,#r,Equal,200,Halt,"Download failed: The code returned was [#r]."
End
@@ -222,10 +222,6 @@ lines=0
lines=0
0=iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADZklEQVQ4jUWT3WubdRTHP89L3p8mTfpim7ZL37ZZp6UTV1F0g00dXky9myAiXhf8A0QRvFCGF96o4IViJ0Mm4lSUIbIqdVs6W+3W1da+LW3SpC9Jm6TJ8+RJ+uT5SdLBDpzD4cD3e76Hc470zIUTHJiMU4szP3Yav+stXr00PVQqNL4SG1ea/ltYW29wp8Y2/roxuTF2CzOhANU6StVLe/VEkqBg5sHv8vf2D38b+Hv4bJdS5chRgcdUuZ28hud4elr+ff1lSCbud0UtapkaHCFnMLNPhc8+/8XsyEsEIxK4VYVCBXo98PP8Ga7eOnbc8l2/pzg/HHD1xJaNhSxq/+N9gI1pO/CrI9+c7yM46AMnIGqDqTCgQjoCi3EX0ptBVaRPfR/76Z/BuoL9vIGo6pjejhcOO7wnxVacsd0k4YYAgz2P4LEhU3P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C6sUKZZv2DQrrCoyxVGePpDQQqQJL/zhcXCCwRrCeUH7h3InKWzjdVKBZv2oe9B4+hoXQ/XJ1tmjCLHB6OyIgI7+/IibLX83kTlJ/1wtU9xHPM2TNn3R9WsYQyy0aOGc/lfVB5oKXm0sUgs0L5tXnP4smZ07jAobtQkCprP38EzZcLqSL4sRnTsPGtldxzsszZ3IasJcvwr03rFPJH9DoH3e5IvosboLydlVpZdkHgCtnuLWbhkUIxK+tdVJ3M7YanvWsYE2/pFXjEhAH9sWb5axgSaVFJGzY8YrfHWTVPILDMDfC7ClgLTucJ3Pmve50XXu1VJ2Ys+ATvbtuJBtu3uN78i1J7ybzwD1Mm+8uLauSxkEkPZFKFMstSJ/3RnjGe3UCQmxTC1nNF+YImXHXgCSGeD+yMbPf357BqywHUFh9AW0OVMmdRJEpj47VeBUispbOvRiizjDQQeMMXshC2XKqqDDIjlK85r8HZ3MqcmBSKF9d+jazV23HxZG43PG3IqvXZjk93Gj6dYMaITPrx8Ldc8IjxNBA0AD0C2iYw4TFgbvl4N3VSUigemf8xvtrzBRwX9qKzw9l9nPGtWGOjA9NmveBuX/XUiPc/sXgHGipOcM8UHZvCJaAl63uonDyBYAtrb2sNMNtRznn7HQT0G4

View File

@@ -127,13 +127,18 @@ If,%SourceArch%,Equal,x64,Set,%VMOS%,windows9-64
Else,Set,%VMOS%,windows9
TXTAddLine,%VMCfg%,"guestOS = #$q%VMOS%#$q",Append
// Video RAM (in bytes). 16-128MB - Default is auto-detect. Uncomment the next 2 lines to set manually.
//TxtAddLine,%VMCfg%,"svga.autodetect = #$qFALS#$q",Append
//TxtAddLine,%VMCfg%,"svga.vramSize = #$q134217728#$q",Append
// Processor
If,%cmb_numProc%,Equal,Auto,Begin
System,GetEnv,"NUMBER_OF_PROCESSORS",%numProcessors%
If,%numProcessors%,Equal,"",Set,%numProcessors%,1
Else,Begin
// Set to n-1 to reserve an entire processor for the host system
Math,Sub,%numProcessors%,%numProcessors%,1
// Assign the VM half of the total CPU's, reserving the other half for the host system. IntDiv used to prevent error if NUM_OF_PROCESSORS returns an odd number.
Math,IntDiv,%numProcessors%,%remainder%,%numProcessors%,2
Set,%remainder%,Nil
End
End
Else,Set,%numProcessors%,%cmb_numProc%
@@ -143,6 +148,9 @@ TXTAddLine,%VMCfg%,"cpuid.coresPerSocket=#$q%numProcessors%#$q",Append
// Disable CPU Side Channel Mitigation that can make our VM run like crap. (No Script UI Setting and not available in VMware Player Pref.)
TxtAddLine,%VMCfg%,"ulm.disableMitigations = #$qTRUE#$q",Append
// Enable the High Precision Event Timer (HPET). This avoids BSOD issues with multiple vCPU's (System Thread Exception) and VM performance issues.
TxtAddLine,%VMCfg%,"hpet0.present = #$qTRUE#$q",Append
// Memory
TXTAddLine,%VMCfg%,"memsize = #$q%cmb_MemSize%#$q",Append
@@ -336,7 +344,7 @@ Else,WriteInterface,Visible,%ScriptFile%,Interface,fb_VirtualHDD,False
// Related........:
// ===============================================================================================================================
[SetDefaultOptions]
WriteInterface,Value,%ScriptFile%,Interface,cmb_numProc,"1"
WriteInterface,Value,%ScriptFile%,Interface,cmb_numProc,"Auto"
WriteInterface,Value,%ScriptFile%,Interface,cmb_MemSize,2048
WriteInterface,Value,%ScriptFile%,Interface,cmb_Audio,"Intel HD Audio"
WriteInterface,Value,%ScriptFile%,Interface,cmb_NetworkAdapter,"Intel 82545EM"
@@ -347,6 +355,7 @@ WriteInterface,Value,%ScriptFile%,Interface,num_BootDelay,0
WriteInterface,Value,%ScriptFile%,Interface,cmb_SharedFolder,"Disabled"
WriteInterface,Value,%ScriptFile%,Interface,fb_SharedFolder,"#$pBaseDir#$p\Workbench\VM-Shared"
WriteInterface,Value,%ScriptFile%,Interface,cmb_VirtualHDD,"Disabled"
// Toggle cmb_Firmware to visible so we force ToggleAdvancedOptions to hidden
WriteInterface,Visible,%ScriptFile%,Interface,cmb_Firmware,True
WriteInterface,Visible,%ScriptFile%,Interface,cb_EnableTPM,False
@@ -431,7 +440,7 @@ btn_SetDefaultOptions=,1,8,543,5,25,25,SetDefaultOptions,SetDefaults_16.png,True
btn_AdvancedOptions=,1,8,574,5,25,25,ToggleAdvancedOptions,Advanced_16.png,True,"__Show Advanced Options"
btn_ScriptInfo=,1,8,605,5,25,25,ShowScriptInfo,Help_16.png,True,"__Script Info"
bvl_vmOptions="Virtual Machine Settings",1,12,5,50,257,265,8,Bold
cmb_numProc=1,1,4,140,67,112,21,Auto,1,2,3,4,5,6,7,8
cmb_numProc=Auto,1,4,140,67,112,21,Auto,1,2,3,4,5,6,7,8
lbl_numProc="Number of Processors:",1,1,15,74,117,16,8,Normal
lbl_AllocMem="Allocated Memory (MB):",1,1,15,101,123,16,8,Normal
cmb_MemSize=2048,1,4,140,95,112,21,1024,2048,4096,8192,16384,32768,65536

View File

@@ -110,8 +110,11 @@ ShellExecute,Hide,%VBoxManage.exe%,"closemedium disk #$q%fb_VirtualHDD%#$q"
ShellExecute,Hide,%VBoxManage.exe%,"createvm --name #$q%vmName%#$q --basefolder #$q%VMPath%#$q --ostype Windows10_64 --register"
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --description #$qCreated by %ProjectTitle% VirtualBox script.#$q"
// VirtualBox needs at least 27MB Video RAM for fullscreen or seamless mode. 64MB ought to be enough for anybody ;)
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --vram 64"
// VirtualBox needs at least 27MB Video RAM for fullscreen or seamless mode.
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --vram 128"
// Set graphics controller to the recommended SVGA
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --graphicscontroller vboxsvga"
// SATA Controller
ShellExecute,Hide,%VBoxManage.exe%,"storagectl #$q%vmName%#$q --name #$qSATA Controller#$q --add sata --controller IntelAHCI"
@@ -136,18 +139,29 @@ Else,Begin
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --usb on"
End
// Enable the High Precision Event Timer (HPET). This avoids BSOD issues with multiple vCPU's (System Thread Exception) and VM performance issues.
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --hpet on"
// Processor
If,%cmb_numProc%,Equal,Auto,Begin
System,GetEnv,"NUMBER_OF_PROCESSORS",%numProcessors%
If,%numProcessors%,Equal,"",Set,%numProcessors%,1
Else,Begin
// Set to n-1 to reserve an entire processor for the host system
Math,Sub,%numProcessors%,%numProcessors%,1
// Assign the VM half of the total CPU's, reserving the other half for the host system. IntDiv used to prevent error if NUM_OF_PROCESSORS returns an odd number.
Math,IntDiv,%numProcessors%,%remainder%,%numProcessors%,2
Set,%remainder%,Nil
End
End
Else,Set,%numProcessors%,%cmb_numProc%
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --cpus %numProcessors%"
// Specify the paravirtualization interface to provide to the guest. none|default|legacy|minimal|hyperv|kvm
// Normally you would choose Default/Hyper-V for Windows OS, but this seems to be unstable in WinPE when more then 1 CPU is assigned.
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --paravirtprovider none"
// Turn off Physical Address Extensions (PAE)
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --pae off"
// Memory
ShellExecute,Hide,%VBoxManage.exe%,"modifyvm #$q%vmName%#$q --memory %cmb_MemSize%"
@@ -304,6 +318,7 @@ WriteInterface,Value,%ScriptFile%,Interface,num_BootDelay,0
WriteInterface,Value,%ScriptFile%,Interface,cmb_SharedFolder,"Disabled"
WriteInterface,Value,%ScriptFile%,Interface,fb_SharedFolder,"#$pBaseDir#$p\Workbench\VM-Shared"
WriteInterface,Value,%ScriptFile%,Interface,cmb_VirtualHDD,"Disabled"
// Toggle cmb_Firmware to visible so we force ToggleAdvancedOptions to hidden
WriteInterface,Visible,%ScriptFile%,Interface,cmb_Firmware,True
Run,%ScriptFile%,ToggleAdvancedOptions
@@ -321,7 +336,7 @@ Run,%ScriptFile%,ToggleAdvancedOptions
// ===============================================================================================================================
[ToggleAdvancedOptions]
System,SetLocal
ReadInterface,Visible,%ScriptFile%,Interface,num_BootDelay,%state%
ReadInterface,Visible,%ScriptFile%,Interface,cmb_Firmware,%state%
If,%state%,Equal,False,Begin
If,Question,"WARNING!#$x#$xAdvanced options are intended for expert users only!#$x#$xModifying advanced options without knowing what you are doing can cause permanent damage to your project and may result in unexpected behavior and/or build failures.#$x#$xAre you sure you want to continue?",Begin
Set,%Toggle%,True

View File

@@ -36,7 +36,6 @@ Level=0
Selected=None
Mandatory=False
InterfaceList=Interface,Interface_About,Interface_Options
Interface=Interface
[#Variables#]
// ===============================================================================================================================
@@ -334,19 +333,21 @@ System,RefreshInterface
// Related........:
// ===============================================================================================================================
[Interface]
lbl_Welcome=Welcome!,1,1,5,10,200,25,16,Bold
lbl_Welcome=Welcome!,1,1,5,5,200,25,16,Bold
btn_Nuke=,1,8,288,5,25,25,NukeProject,Toxic.png,False,"__Obliterate all Target, ISO, Temp, Downloaded, and Cached files.#$xUse this if you want to reset to a clean build environment.#$x#$xThe following folders and any files they contain will be destroyed:#$x - %TargetDir%#$x - %ISODir%#$x - %OutputDir%#$x - %ProjectCache%#$x - %ProgramsCache%#$x - Downloaded Tools (BCDEdit/DISM/Oscdimg)"
btn_Options=,1,8,320,5,25,25,SwitchToOptionsInterface,Advanced_16.png,True,"__Project Options"
btn_About=,1,8,352,5,25,25,SwitchToAboutInterface,Help_16.png,True,"__About PhoenixPE"
rtf_BuildInstructions=HowToBuild.rtf,1,6,5,50,373,405
img_Logo=Phoenix.png,1,5,370,43,265,211
lbl_Contribute=Development,1,1,464,270,75,16,8,Bold
web_GitHub="PhoenixPE GitHub",1,10,460,286,92,17,https://github.com/PhoenixPE/PhoenixPE
lbl_CommunitySupport="Community Support",1,1,449,375,111,16,8,Bold
web_Discord="PhoenixPE Discord Server",1,10,440,390,128,18,https://discord.com/channels/642440817138597908/642751078399606815
web_IssueTracker="Issue Tracker",1,10,472,304,71,18,https://github.com/PhoenixPE/PhoenixPE/issues
web_Wiki="PhoenixPE Wiki",1,10,464,346,84,18,https://github.com/PhoenixPE/PhoenixPE/wiki
lbl_Documentation=Documentation,1,1,462,331,108,16,8,Bold
lbl_Development=Development,1,1,470,265,68,16,8,Bold
web_GitHub="PhoenixPE GitHub",1,10,461,286,86,17,https://github.com/PhoenixPE/PhoenixPE
web_IssueTracker="Issue Tracker",1,10,474,304,60,18,https://github.com/PhoenixPE/PhoenixPE/issues
lbl_Documentation=Documentation,1,1,465,331,78,16,8,Bold
web_Wiki="PhoenixPE Wiki",1,10,467,346,73,18,https://github.com/PhoenixPE/PhoenixPE/wiki
lbl_CommunitySupport="Community Support",1,1,453,375,103,16,8,Bold
web_Discord="PhoenixPE Discord",1,10,461,390,88,18,https://discord.com/channels/642440817138597908/642751078399606815
web_TheOven="The Oven",1,10,485,408,45,18,https://theoven.org
web_Reboot=reboot.pro,1,10,483,425,51,18,http://reboot.pro/index.php?showforum=147
[EncodedFolders]