home *** CD-ROM | disk | FTP | other *** search
- OSDAVMB - CREATING A DOS IMAGE FILE VMB
- 10/19/94
-
- ===============================================================
- CREATING A DOS IMAGE FILE
- VMB - (Virtual Machine Boot) FOR OS/2 2.x
- STANDARD VMB BOOT (PART 1) OR
- MULTI-BOOT VMB (PART 2)
- ================================================================
-
- Please Read Entire Document for Full Explanation of Procedures
- ----------------------------------------------------------------
-
- SYMPTOMS:
- Some DOS applications and networks that do not run in a
- VDM session, do run in a VMB.
-
- RESOLUTION:
-
- ========== PART 1: STANDARD VMB BOOT GENERAL GUIDELINES =======
-
- SECTION I - CREATING A VMB DISKETTE
-
- 1. Each Image file you create equals the size of the diskette
- you use, for example, 360k, 720k, or 1.44mb high density
- diskette. There are two ways to create a VMB diskette:
-
- METHOD A:
-
- Start from a DOS bootable diskette that includes the
- FORMAT.COM file from native DOS. Type: FORMAT A: /S
- and press Enter. When you see a message asking you
- to Press any key, insert a blank diskette for the VMB in
- Drive A, and press Enter. COMMAND.COM is on the
- diskette when this step is completed.
-
- METHOD B:
-
- If you have native DOS installed on your computer, start
- from there. Insert a blank formatted diskette you want
- to use for the VMB in Drive A, and, from the DOS root
- directory, type: SYS A: and press Enter. COMMAND.COM is
- on the diskette when this step is completed.
-
- After completing one of the above steps, insert the VMB
- diskette in Drive A: and start the system. If it starts
- correctly, continue with the following procedures. If not,
- try the previous steps again.
-
- NOTE: After creating a VMB diskette, you can:
- - Start from OS/2's Command Prompts Icon View
- (DOS from Drive A)
- - Start from the VMB Image Icon on your Desktop
-
- NOTE: Use the following instructions to create the VMB.
- Make certain it running before you customize the VMB
- image. Then, you can add other device drivers, native
- DOS files, and statements in the CONFIG.SYS and
- AUTOEXEC.BAT specific to your application, network,
- etc. You have to create several VMBs for each program
- that has special requirements.
-
- 2. Start in OS/2 and copy the following files from the
- OS2\MDOS directory to the VMB diskette:
-
- ANSI.SYS
- FSFILTER.SYS
- FSACCESS.EXE
- EMM386.SYS
- HIMEM.SYS
- LPTDD.SYS
- MOUSE.COM
-
- You may add any number of NATIVE DOS files to this diskette,
- but not until the VMB is running.
-
- 3. You can create the VMB image two different ways,
- following the instructions in Option A or Option B.
-
- 4. Each time you install a new version of OS/2 or a ServicePak,
- you need to update the IMAGE with the current version of
- the files from the OS2\MDOS directory listed in step 2 above.
-
-
- ======================= O P T I O N A ========================
-
- You can read/write to Drive A, but you cannot change the
- AUTOEXEC.BAT, CONFIG.SYS or add files directly to the VMB
- Image file on the hard disk.
-
-
- NOTE: Use a text editor to create files.
-
- 1A. On the VMB diskette create the following CONFIG.SYS:
-
- DEVICE=HIMEM.SYS
- DEVICE=EMM386.SYS
- DOS=HIGH,UMB
- DEVICE=FSFILTER.SYS
- DEVICE=ANSI.SYS
- DEVICE=LPTDD.SYS
- FILES=40
- BUFFERS=30
- LASTDRIVE=Z
-
- 2A. On the VMB diskette create the following AUTOEXEC.BAT:
-
- ECHO OFF
- PROMPT $P$G
- SET COMSPEC=C:\VMB\COMMAND.COM
- MOUSE.COM
- PATH C:\;C:\VMB
- C:
- CD\VMB
- VMB.BAT
-
- 3A. Make a directory called VMB to store the VMB image.
- At the C:\ prompt, type:
-
- MD VMB
-
- 4A. In the C:\VMB directory create the following VMB.BAT:
-
- C:\OS2\MDOS\FSACCESS A:
- CD\
-
- This file lets you read/write to Drive A. Otherwise, a
- DIR on Drive A, displays the Image files.
-
- 5A. Copy COMMAND.COM from the VMB diskette to the VMB
- directory. Change to C:\VMB and type:
-
- VMDISK A: DOS.IMG and press Enter
-
- This creates an image of the diskette you created. The
- image file is DOS.IMG and is located in C:\VMB
- directory.
-
- 6A. When completed, remove and store the diskette. Return to
- desktop.
-
-
- ===================== O P T I O N B ==========================
-
- You can read/write to alternate drive other than Drive A:,
- for example, M:. You can change the AUTOEXEC.BAT,
- CONFIG.SYS, and add files directly to the VMB Image
- file on the hard disk.
-
-
- Note: Use a text editor to create files.
-
- 1B. On the VMB diskette create the following AUTOEXEC.BAT:
-
- ECHO OFF
- PROMPT $P$G
- MOUSE.COM
- PATH C:\;C:\VMB
- FSACCESS M=A
- C:
- CD\VMB
-
- NOTE: If you start DOS from an Image File, you cannot
- use physical Drive A until you release the Image
- File. FSACCESS M=A releases Drive A and assigns
- M to phisical Drive A. You may select another
- logical drive in its place. This process allows
- DOS Applications to read/write to physical Drive
- A: - which is logical Drive M. When retreving or
- saving a file in physical Drive A:, rename the
- Application's drive destination to M instead
- of A.
-
- LAN USERS: Do not use FSACCESS Z=A if your Lan assigns
- logical Drive Z as the network drive.
-
- 2B. On the VMB diskette create the following CONFIG.SYS:
-
- DEVICE=HIMEM.SYS
- DEVICE=EMM386.SYS
- DOS=HIGH,UMB
- DEVICE=FSFILTER.SYS
- DEVICE=ANSI.SYS
- DEVICE=LPTDD.SYS
- FILES=40
- BUFFERS=30
- LASTDRIVE=Z
-
- NOTE: Assigning LASTDRIVE = Z for VMB purposes allows
- FSACCESS in Step 1B to assign letter M to drive A.
-
- 3B. Make a directory called VMB for the VMB image.
- At the C:\ prompt, type:
-
- MD VMB
-
- 4B. Copy the COMMAND.COM from the VMB diskette to the VMB
- directory. Go to C:\VMB and type:
-
- VMDISK A: DOS.IMG and press Enter
-
- This creates an image of the diskette. The Image File
- is named DOS.IMG and is located in the C:\VMB directory.
-
- 5B. Remove and the diskette and return to the desktop.
-
- ================================================================
- SECTION II - CREATING A VMB DESKTOP ICON
-
- 1. Creating the Icon:
-
- a. Open the OS/2 System folder.
-
- b. Select the Command Prompts Icon.
-
- c. Copy the DOS Full Screen icon to the Desktop by holding
- down the Ctrl key and dragging the icon to Desktop while
- holding down the right mouse button.
-
- d. Close Command Prompts and the OS/2 System Folder.
-
- 2. Change the DOS Settings For the VMB Icon:
-
- a. Select the Icon created in Step 1.
-
- b. Press the right mouse button to display the menu.
-
- c. Select the Arrow on Open.
-
- d. Select Settings to open the Settings notebook.
-
- e. Select Session.
-
- f. Select DOS Settings.
-
- g. Change the following settings:
-
- EMS_MEMORY_LIMIT to: Default is 2048
- DOS_UMB to: ON
- DOS_HIGH to: ON
- DOS_STARTUP_DRIVE to: C:\VMB\DOS.IMG
- XMS_MEMORY_LIMIT to: Default is 2048
- (Min. Requirement)
-
- H. Use these settings for applications that use DOS
- Protected Mode Interface (DPMI).
-
- DPMI_MEMORY_LIMIT to: 4 (Minimum Requirement)
- DPMI_DOS_API to: ENABLE
-
- NOTE: There may be other settings you want to change, but
- do not do it until the VMB is running.
-
- 3. Select Save.
-
- 4. Select General and change the Title field to VMB or
- the name you want to call your Desktop Icon.
-
- 5. Close the window.
-
- 6. Select the new DOS VMB Desktop Icon.
-
- 7. To EXIT the VMB from within the VMB, create a batch file
- in the VMB directory called X.BAT containing the following:
-
- C:\OS2\MDOS\EXIT_VDM
-
- 8. Save the file.
-
- 9. Type X at the command prompt.
-
- NOTE: If you have problems with the above steps, check all
- your file and directory names, especially the ones in
- the DOS Settings. If you need assistance:
- 1. Open Master Help Index.
- 2. Select Search Topics.
- 3. Type: Starting from an Image File in the entry
- field.
- 4. Scroll to the DOS section
- 5. Select the Starting from an Image File
- and read the information.
-
- ================================================================
- PART 2: MULTI-BOOT VMB GENERAL GUIDELINES
- ================================================================
-
- SECTION I - CREATING A MULTI-VMB CONFIG.SYS AND AUTOEXEC.BAT
-
- Note: Use a text editor to create files.
-
- 1. The MULTI-BOOT VMB is for systems with the boot manager
- setup: Native DOS 6.0 or higher on the C: Partition and
- OS/2 2.X on a different partition.
-
- 2. Create the following AUTOEXEC.BAT and CONFIG.SYS files in
- the root directory of the C: (Native DOS) partition.
-
- Replace the < > symbols around Menu, Normal and OS2
- with brackets [ ]. These characters are misinterpreted
- because of the way the files are stored on the IBM LAN.
-
- NOTE: Use the following instructions to create the VMB.
- Make certain it is running before you add other files,
- drivers, and statements for your specific
- applications, networks, etc.
-
- AUTOEXEC.BAT:
- @ECHO OFF
- PROMPT $p$g
- GOTO %CONFIG%
-
- :NORMAL
- C:\DOS\SMARTDRV.EXE
- PATH C:\DOS
- SET TEMP=C:\DOS
- LH C:\DOS\MOUSE.COM
- LH C:\DOS\DOSKEY
- GOTO END
-
- :OS2
- SET COMSPEC=C:\DOS\COMMAND.COM
- PATH C:\;C:\DOS;
- LH DOSKEY
- LH D:\OS2\MDOS\MOUSE.COM
- GOTO END
- :END
-
- CONFIG.SYS:
- <MENU>
- MENUITEM=OS2,BOOT FOR OS/2 VMB
- MENUITEM=NORMAL,BOOT FOR NATIVE DOS
-
- <NORMAL>
- DEVICE=C:\DOS\HIMEM.SYS
- DEVICE=C:\DOS\EMM386.EXE NOEMS
- DOS=HIGH,UMB
- FILES=30
- BUFFERS=15
- SHELL=C:\DOS\COMMAND.COM C:\DOS\ /P
- DEVICEHIGH=C:\DOS\ANSI.SYS
- STACKS=9,256
-
- <OS2>
- DEVICE=D:\OS2\MDOS\FSFILTER.SYS
- DEVICE=D:\OS2\MDOS\HIMEM.SYS
- DEVICE=D:\OS2\MDOS\EMM386.SYS
- DEVICEHIGH=D:\OS2\MDOS\ANSI.SYS
- DEVICEHIGH=D:\OS2\MDOS\LPTDD.SYS
- DOS=HIGH,UMB
- FILES=30
- BUFFERS=20
- SHELL=C:\DOS\COMMAND.COM C:\DOS /P
-
- ----------------------------------------------------------------
- SECTION II - CREATING A VMB DESKTOP ICON
-
- 1. Creating the Icon
-
- a. Open the OS/2 System folder.
-
- b. Select the Command Prompts Icon.
-
- c. Copy the DOS Full Screen icon to the Desktop by
- holding down the Ctrl key and dragging the icon to
- the Desktop while holding down the right mouse button.
-
- d. Close the Command Prompts and the OS/2 System Folder.
-
- 2. Change the DOS Settings For the VMB Icon
-
- a. Select the Icon created in Step 1.
-
- b. Select the Arrow on Open.
-
- c. Select Settings.
-
- d. Select Session.
-
- e. Select DOS Settings.
-
- f. Change the following settings:
-
- DOS_UMB to: ON
- DOS_HIGH to ON
- DOS_STARTUP_DRIVE to: C:\
- XMS_MEMORY_LIMIT to: Default is 2048
- (Minimum Requirement)
-
- g. Use these settings for applications that use DOS
- PROTECTED MODE INTERFACE (DPMI).
-
- DPMI_MEMORY_LIMIT to: 4 (Minimum Requirement)
- DPMI_DOS_API to: ENABLE
-
- NOTE: Do not do change any other setting until the VMB is
- running.
- 3. Select Save.
-
- 4. Select General and change the Title field to VMB or the name
- you want to call your Desktop Icon.
-
- 5. Close the window.
-
- 6. Select the new DOS VMB Desktop Icon, following appears:
-
- MS-DOS 6 Startup Menu
- 1. BOOT FOR OS/2 VMB (highlighted)
- 2. BOOT FOR NATIVE DOS
-
- 7. Select 1.
- If you select 2, you receive an error message. This
- selection is for starting native DOS from the Boot Manager
- partition.
-
- 8. To EXIT the VMB, create a file in the C:\ directory called
- X.BAT
-
- @ECHO OFF D:\OS2\MDOS\EXIT_VDM
-
- 9. Type X at the command prompt.
-
-
- ----------------------------------------------------------------
- IBM disclaims all warranties, whether express or implied,
- including without limitation, warranties of fitness and
- merchantability with respect to the information in this document.
- By furnishing this document, IBM grants no licenses to any
- related patents or copyrights.
-