VirtualBox

Changeset 93127 in vbox for trunk


Ignore:
Timestamp:
Jan 5, 2022 1:10:34 AM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedOs2Install: Fixed most of the basic issues, only Netscape left. Added reboot after installing GENGRADD because the default VGA driver is horrendously sluggish. Use the --as-zero option to deal with the speciall CID and NVDM/2 status codes we're getting on success. Use the --file-to-backdoor option in failure cases when we've got useful logs.

Location:
trunk/src/VBox/Main/UnattendedTemplates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/UnattendedTemplates/os2_cid_install.cmd

    r93122 r93127  
    2020if "%1" == "PHASE1" goto phase1
    2121if "%1" == "PHASE2" goto phase2
    22 @echo ** error: invalid or missing parameter. Expected PHASE1 or PHASE2 as the first parameter to the script.
     22if "%1" == "PHASE3" goto phase3
     23@echo ** error: invalid or missing parameter. Expected PHASE1, PHASE2 or PHASE3 as the first parameter to the script.
    2324pause
    2425cmd.exe
     
    135136cd C:\OS2
    136137C:
    137 C:\VBoxCID\OS2_UTIL.EXE -- C:\VBoxCID\SEMAINT.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.1-Maint.log /T:C:\OS2
    138 REM does not exit with status 0 on success.
    139 goto semaint_ok
     138@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     139C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- C:\VBoxCID\SEMAINT.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.1-Maint.log /T:C:\OS2 && goto semaint_ok
     140C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\1.4.1-Maint.log
    140141pause
    141142:semaint_ok
     
    144145cd C:\VBoxCID
    145146C:
    146 C:\VBoxCID\OS2_UTIL.EXE -- C:\VBoxCID\SEINST.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.2-CIDInst.log /R:C:\VBoxCID\OS2.RSP /T:A:\
    147 REM does not exit with status 0 on success.
    148 goto seinst_ok
     147@REM Treat 0xff02 as a success status. It seems to mean that a reboot is required.
     148C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xff02 -- C:\VBoxCID\SEINST.EXE /S:%CDROM%\os2image /B:C: /L1:C:\VBoxCID\1.4.2-CIDInst.log /R:C:\VBoxCID\OS2.RSP /T:A:\ && goto seinst_ok
     149C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\1.4.2-CIDInst.log
    149150pause
    150151:seinst_ok
     
    189190
    190191REM
    191 REM Phase 2 - The rest of the installation running of the base install.
     192REM Phase 2 - Install GRADD drivers (VGA is horribly slow).
    192193REM
    193194:phase2
     
    218219@echo Step 2.1 - Install the video driver.
    219220@echo .
    220 C:\VBoxCID\OS2_UTIL.EXE -- C:\OS2\INSTALL\DspInstl.EXE /PD:C:\OS2\INSTALL\GENGRADD.DSC /S:%CDROM%\OS2IMAGE /T:C: /RES:1024X768X16777216 /U
    221 @REM does not exit with status 0 on success.
    222 goto dspinstl_ok
     221@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     222C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- C:\OS2\INSTALL\DspInstl.EXE /PD:C:\OS2\INSTALL\GENGRADD.DSC /S:%CDROM%\OS2IMAGE /T:C: /RES:1024X768X16777216 /U && goto dspinstl_ok
     223C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\OS2\INSTALL\DSPINSTL.LOG
     224C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\OS2\INSTALL\GRADD.LOG
    223225pause
    224226:dspinstl_ok
    225227
    226 call VCfgCID.CMD /L1:C:\VBoxCID\2.1-Video.log /L2:C:\VBoxCID\2.1-Video-2.log /RES:1024X768X16777216
    227228@REM TODO: Error: 1 Error getting current desktop mode
     229@REM UPDATE: This is probably not working because SVGA.EXE doesn't want to play along with our graphics adapter,
     230@REM         so it looks like there is no simple way of changing the resolution or select a better monitor.
     231call VCfgCID.CMD /L1:C:\VBoxCID\2.1-Video.log /L2:C:\VBoxCID\2.1-Video-2.log /RES:1024X768X16777216 /MON:548
    228232goto vcfgcid_ok
     233C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\2.1-Video.log
    229234pause
    230235:vcfgcid_ok
     
    233238
    234239:step2_2
    235 @echo .
    236 @echo Step 2.2 - Install multimedia.
     240@echo Install startup.cmd for phase3.
     241ren C:\STARTUP.CMD C:\VBoxCID\Phase2-end-startup.cmd
     242@echo C:\VBoxCID\OS2_UTIL.EXE --tee-to-backdoor --tee-to-file C:\VBoxCID\Phase3.log --append -- C:\OS2\CMD.EXE /C C:\VBoxCID\VBoxCID.CMD PHASE3> C:\STARTUP.CMD && goto phase3_startup_ok
     243pause
     244:phase3_startup_ok
     245
     246REM now reboot.
     247goto reboot
     248
     249
     250REM
     251REM Phase 2 - The rest of the installation running of the base install with fast GRADD drivers.
     252REM
     253:phase3
     254SET CDROM=E:
     255IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     256SET CDROM=D:
     257IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     258SET CDROM=F:
     259IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     260SET CDROM=G:
     261IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     262SET CDROM=H:
     263IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     264SET CDROM=S:
     265IF EXIST "%CDROM%\VBoxCID.CMD" goto phase3_found_cdrom
     266@echo ** error: Unable to find the CDROM drive
     267pause
     268CMD
     269SET CDROM=E:
     270:phase3_found_cdrom
     271cd C:\VBoxCID
     272C:
     273
     274@echo on
     275
     276:step3_1
     277@echo .
     278@echo Step 3.1 - Install multimedia.
    237279@echo .
    238280cd C:\mmtemp
    239281C:
    240 DIR
    241 C:\VBoxCID\OS2_UTIL.EXE -- MInstall.EXE /M /R:C:\VBoxCID\MMOS2.RSP && goto mmos2_ok
    242 @REM TODO: crashes
     282@REM Does not have any /L, /L1, or /L2 options.  Fixed log file: C:\MINSTALL.LOG.
     283@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     284C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- MInstall.EXE /M /R:C:\VBoxCID\MMOS2.RSP && goto mmos2_ok
     285C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\MINSTALL.LOG
    243286pause
    244287:mmos2_ok
    245 DIR
    246 cd C:\VBoxCID
    247 
    248 :step2_3
    249 @echo .
    250 @echo Step 2.3 - Install features.
    251 @echo .
    252 C:\VBoxCID\OS2_UTIL.EXE -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\os2image\fi /R:C:\OS2\INSTALL\FIBASE.RSP /L1:C:\VBoxCID\2.2-FeatureInstaller.log /R2:C:\VBoxCID\OS2.RSP
     288cd C:\VBoxCID
     289
     290:step3_2
     291@echo .
     292@echo Step 3.2 - Install features.
     293@echo .
     294@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     295C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\os2image\fi /R:C:\OS2\INSTALL\FIBASE.RSP /L1:C:\VBoxCID\3.2-FeatureInstaller.log /R2:C:\VBoxCID\OS2.RSP
    253296@REM does not exit with status 0 on success.
    254297goto features_ok
     298C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.2-FeatureInstaller.log
    255299pause
    256300:features_ok
    257301
    258 :step2_4
    259 @echo .
    260 @echo Step 2.4 - Install Netscape.
    261 @echo .
    262 CD C:\VBoxCID
    263 C:
    264 %CDROM%
    265 SET DPATH=%DPATH%;C:\NETSCAPE\SIUTIL;
    266 C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\NETSCAPE\INSTALL.EXE /X /A:I /TU:C: /C:%CDROM%\CID\SERVER\NETSCAPE\NS46.ICF /S:%CDROM%\CID\SERVER\NETSCAPE /R:C:\VBoxCID\Netscape.RSP /L1:C:\VBoxCID\2.8-Netscape.log /L2:C:\VBoxCID\2.8-Netscape-2.log && goto netscape_ok
    267 :netscape_ok
    268 CD %CDROM%\
    269 C:
    270 
    271 :step2_5
    272 @echo .
    273 @echo Step 2.5 - Install feature installer.
    274 @echo .
    275 @REM No /L2: support.
    276 @REM The /NN option is to make it not fail if netscape is missing.
    277 C:\VBoxCID\OS2_UTIL.EXE -- C:\OS2\INSTALL\WSFI\FiSetup.EXE /B:C: /S:C:\OS2\INSTALL\WSFI\FISETUP /NN /L1:C:\VBoxCID\2.5-FiSetup.log && goto fisetup_ok
    278 pause
    279 :fisetup_ok
    280 
    281 :step2_6
    282 @echo .
    283 @echo Step 2.6 - Install MPTS.
     302:step3_3
     303@echo .
     304@echo Step 3.3 - Install MPTS.
    284305@echo .
    285306@REM If we want to use non-standard drivers like the intel ones, copy the .NIF- and
     
    289310CD %CDROM%\CID\SERVER\MPTS
    290311%CDROM%
    291 C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\MPTS\MPTS.EXE /R:C:\VBoxCID\MPTS.RSP /S:%CDROM%\CID\SERVER\MPTS /T:C: /L1:C:\VBoxCID\2.6-Mpts.log && goto mpts_ok
     312@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     313C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- %CDROM%\CID\SERVER\MPTS\MPTS.EXE /R:C:\VBoxCID\MPTS.RSP /S:%CDROM%\CID\SERVER\MPTS /T:C: /L1:C:\VBoxCID\3.3-Mpts.log && goto mpts_ok
     314C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.3-Mpts.log
    292315pause
    293316:mpts_ok
     
    295318C:
    296319
    297 :step2_7
    298 @echo .
    299 @echo Step 2.7 - Install TCP/IP.
     320:step3_4
     321@echo .
     322@echo Step 3.4 - Install TCP/IP.
    300323@echo .
    301324CD %CDROM%\CID\SERVER\TCPAPPS
    302325%CDROM%
    303 C:\VBoxCID\OS2_UTIL.EXE -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\CID\SERVER\TCPAPPS\INSTALL /R:%CDROM%\CID\SERVER\TCPAPPS\INSTALL\TCPINST.RSP /L1:C:\VBoxCID\2.7-tcp.log /L2:C:\VBoxCID\2.7-tcp-2.log
    304 @REM does not exit with status 0 on success.
    305 goto tcp_ok
     326@REM Treat 0xfe00 as a success status. It seems to mean that a reboot is required.
     327C:\VBoxCID\OS2_UTIL.EXE --as-zero 0xfe00 -- CLIFI.EXE /A:C /B:C: /S:%CDROM%\CID\SERVER\TCPAPPS\INSTALL /R:%CDROM%\CID\SERVER\TCPAPPS\INSTALL\TCPINST.RSP /L1:C:\VBoxCID\3.4-tcp.log /L2:C:\VBoxCID\3.4-tcp-2.log && goto tcp_ok
     328C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.4-tcp.log
    306329pause
    307330:tcp_ok
     
    316339cd %CDROM%\
    317340
    318 :step2_8
    319 @echo .
    320 @echo Step 2.8 - Install IBM LAN Requestor/Peer.
     341:step3_5
     342@echo .
     343@echo Step 3.5 - Install IBM LAN Requestor/Peer.
    321344@echo .
    322345SET REMOTE_INSTALL_STATE=CAS_OS/2 Peer
    323346CD %CDROM%\CID\SERVER\IBMLS
    324347%CDROM%
    325 C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\IBMLS\LANINSTR.EXE /REQ /R:C:\VBoxCID\IBMLan.rsp /L1:C:\VBoxCID\2.8-IBMLan.log /L2:C:\VBoxCID\2.8-IBMLan-2.log && goto ibmlan_ok
     348C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\IBMLS\LANINSTR.EXE /REQ /R:C:\VBoxCID\IBMLan.rsp /L1:C:\VBoxCID\3.5-IBMLan.log /L2:C:\VBoxCID\3.5-IBMLan-2.log && goto ibmlan_ok
     349C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.5-IBMLan.log
    326350:ibmlan_ok
    327351CD %CDROM%\
    328352C:
    329353
    330 :step2_9
    331 @echo .
    332 @echo Step 2.9 - Install guest additions.
     354:step3_6
     355@echo .
     356@echo Step 3.6 - Install Netscape.
     357@echo .
     358CD C:\VBoxCID
     359C:
     360%CDROM%
     361@REM Skipping as it hangs after a "Message file not found." error. (The DPATH amendment doesn't help.)  Logs give no clue.
     362@REM Maybe we're installing it too early?  Needs TCPIP or smth.
     363goto netscape_ok
     364SET DPATH=%DPATH%;C:\NETSCAPE\SIUTIL;
     365C:\VBoxCID\OS2_UTIL.EXE -- %CDROM%\CID\SERVER\NETSCAPE\INSTALL.EXE /X /A:I /TU:C: /C:%CDROM%\CID\SERVER\NETSCAPE\NS46.ICF /S:%CDROM%\CID\SERVER\NETSCAPE /R:C:\VBoxCID\Netscape.RSP /L1:C:\VBoxCID\3.6-Netscape.log /L2:C:\VBoxCID\3.6-Netscape-2.log && goto netscape_ok
     366C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.6-Netscape.log
     367pause
     368:netscape_ok
     369CD %CDROM%\
     370C:
     371
     372:step3_7
     373@echo .
     374@echo Step 3.7 - Install feature installer.
     375@echo .
     376@REM No /L2: support.
     377@REM The /NN option is to make it not fail if netscape is missing.
     378C:\VBoxCID\OS2_UTIL.EXE -- C:\OS2\INSTALL\WSFI\FiSetup.EXE /B:C: /S:C:\OS2\INSTALL\WSFI\FISETUP /NN /L1:C:\VBoxCID\3.7-FiSetup.log && goto fisetup_ok
     379C:\VBoxCID\OS2_UTIL.EXE --file-to-backdoor C:\VBoxCID\3.7-FiSetup.log
     380pause
     381:fisetup_ok
     382
     383:step3_8
     384@echo .
     385@echo Step 3.8 - Install guest additions.
    333386@echo .
    334387@@VBOX_COND_IS_INSTALLING_ADDITIONS@@
     
    342395@@VBOX_COND_END@@
    343396
    344 :step2_10
    345 @echo .
    346 @echo Step 2.10 - Install the test execution service (TXS).
     397:step3_9
     398@echo .
     399@echo Step 3.9 - Install the test execution service (TXS).
    347400@echo .
    348401@@VBOX_COND_IS_INSTALLING_TEST_EXEC_SERVICE@@
     
    360413
    361414
    362 :step2_11
    363 @echo .
    364 @echo Step 2.11 - Install final startup.cmd and copy over OS2LDR again.
     415:step3_10
     416@echo .
     417@echo Step 3.9 - Install final startup.cmd and copy over OS2LDR again.
    365418@echo .
    366419attrib -r -h -s C:\STARTUP.CMD
     
    379432attrib +r +h +s C:\OS2LDR
    380433
    381 :step2_12
    382 @echo .
    383 @echo Step 2.12 - Cleanup
     434:step3_11
     435@echo .
     436@echo Step 3.11 - Cleanup
    384437@echo .
    385438del /N C:\*.bio
     
    400453:skip_sys_cleanup
    401454
    402 :step2_13
     455:step3_12
    403456@@VBOX_COND_HAS_POST_INSTALL_COMMAND@@
    404457@echo .
    405 @echo Step 2.13 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@"
     458@echo Step 3.12 - Custom actions: "@@VBOX_INSERT_POST_INSTALL_COMMAND@@"
    406459@echo .
    407460cd C:\VBoxCID
  • trunk/src/VBox/Main/UnattendedTemplates/os2_response_files.rsp

    r93122 r93127  
    2121REM Just to be on the safe side, all paths include disk #0 thru #6.
    2222REM as it doesn't contain much interesting.
    23   LIBPATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;
    24 SET  PATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;
    25 SET DPATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;
     23REM Also adding typical C:\ locations for good measure...
     24  LIBPATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;C:\OS2\DLL;C:\MPTN\DLL;C:\TCPIP\DLL;C:\IBMCOM\DLL;
     25SET  PATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;C:\OS2;C:\OS2\SYSTEM;
     26SET DPATH=.;A:\;S:\OS2IMAGE\DISK_0;S:\OS2IMAGE\DISK_1;S:\OS2IMAGE\DISK_2;S:\OS2IMAGE\DISK_3;S:\OS2IMAGE\DISK_4;S:\OS2IMAGE\DISK_5;S:\OS2IMAGE\DISK_6;S:\OS2IMAGE\DISK_7;C:\OS2;C:\OS2\SYSTEM;
    2627
    2728COUNTRY=001,COUNT437.SYS
     
    156157    Local_IPC = YES
    157158    INET_Access = YES
    158     NETBIOS_Access = NO
     159    NETBIOS_Access = YES
    159160)
    160161
     
    168169   netbeui_nif = netbeui.nif
    169170   tcpbeui_nif = tcpbeui.nif
    170    tcpip_nif = tcpip.nif
    171    nonetadp_nif = nonetadp.nif
     171   tcpip_nif   = tcpip.nif
     172   IBMEAN_nif  = IBMEAN.nif
    172173
    173174[NETBIOS]
     
    180181
    181182   DriverName = netbeui$
    182    Bindings = NONETADP_nif
     183   Bindings = IBMEAN_nif
    183184   ETHERAND_TYPE = "I"
    184185   USEADDRREV = "YES"
     
    215216
    216217   DriverName = tcpbeui$
    217    Bindings = nonetadp_nif
     218   Bindings = ,IBMEAN_nif
    218219   NODETYPE = "B-Node"
    219220   OS2TRACEMASK = 0x0
     
    237238
    238239   DriverName = TCPIP$
    239    Bindings = nonetadp_nif
    240 
    241 [nonetadp_nif]
    242 
    243    DriverName = NULLNDS$
     240   Bindings = IBMEAN_nif
     241
     242[IBMEAN_nif]
     243
     244   DriverName = IBMEAN$
    244245)
    245246@@VBOX_SPLITTER_END[MPTS.RSP]@@
     
    288289# Multimedia Presentation Manager/2 response file - Setting up SB16.
    289290#
    290 @@VBOX_SPLITTER_START[MMPM2.RSP]@@
     291@@VBOX_SPLITTER_START[MMOS2.RSP]@@
    291292MMINSTSOURCE = "C:\\mmtemp"
    292293MMINSTTARGET = "C:"
     
    304305  GROUP.43 = "Sound Blaster 16=NUM=1,V1=1,V1=5,V1=5,V1=220,V1=330,"
    305306  )
    306 @@VBOX_SPLITTER_END[MMPM2.RSP]@@
     307@@VBOX_SPLITTER_END[MMOS2.RSP]@@
    307308
    308309#
Note: See TracChangeset for help on using the changeset viewer.

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