home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osdavmb.txt < prev    next >
Text File  |  1996-11-18  |  13KB  |  412 lines

  1. OSDAVMB - CREATING A DOS IMAGE FILE FOR VIRTUAL MACHINE BOOT (VMB)
  2.           ALL OS/2 RELEASES
  3. 01/12/96
  4.  
  5. =======================================================================
  6.        Creating a DOS Image File for Virtual Machine Boot (VMB)
  7.                          All OS/2 Releases
  8. =======================================================================
  9.  
  10. Please Read Entire Document for Full Explanation of Procedures
  11. --------------------------------------------------------------
  12.  
  13. DESCRIPTION
  14.  
  15. Some DOS applications and networks that do not run in a DOS session 
  16. (sometimes referred to as "virtual DOS machine" or "VDM"), will run 
  17. under a specific DOS version ("native DOS"). This document describes 
  18. how to create a DOS image file to use for starting native DOS under 
  19. OS/2 (referred to as "virtual machine boot" or "VMB").
  20.  
  21. RESOLUTION
  22.  
  23. PART 1: STANDARD VMB GENERAL GUIDELINES
  24.  
  25. Creating a VMB Diskette
  26. -----------------------
  27. Note: Make sure you have a backup of any file you intend to change.
  28.  
  29. Each image file you create equals the size of the diskette you use; for 
  30. example, 360KB, 720KB, or 1.44MB. To create a VMB diskette:
  31.  
  32. 1. From a DOS Startup Diskette:
  33.  
  34.    a. In drive A, insert a DOS startup diskette that includes the
  35.       FORMAT.COM file from native DOS.
  36.  
  37.    b. Turn on the computer, or press Ctrl+Alt+Del if it is already on.
  38.  
  39.    c. Type FORMAT A: /S and press Enter. When you see the "Press any
  40.       key" message, insert a blank diskette for the VMB in drive A, and
  41.       press Enter.
  42.  
  43.    COMMAND.COM is now on this diskette. Go to step 3.
  44.  
  45. 2. From Native DOS:
  46.  
  47.    a. Start the computer.
  48.    b. Insert a blank formatted diskette for the VMB in drive A.
  49.    c. At the command prompt of the DOS root directory, type SYS A: and
  50.       press Enter.
  51.  
  52.    COMMAND.COM is now on the diskette. Go to step 3.
  53.  
  54. 3. Insert the VMB diskette in drive A and restart the computer. If it
  55.    starts correctly, continue with the following; otherwise, retry the
  56.    previous steps.
  57.  
  58.    Note: After creating a VMB diskette, you can start from:
  59.  
  60.          * DOS from Drive A: (from Command Prompts in the OS/2 System
  61.            folder), or
  62.  
  63.          * VMB Image on the Desktop
  64.  
  65.    Use the following instructions to create the VMB. Make sure it is
  66.    running before you customize the VMB image. You can then add other
  67.    device drivers, native DOS files, and statements in the CONFIG.SYS
  68.    file and AUTOEXEC.BAT file specific to your application, network,
  69.    and so on. You have to create several VMBs for each program that has
  70.    special requirements.
  71.  
  72. 4. Start your system in OS/2 and copy the following files from the
  73.    OS2\MDOS directory to the VMB diskette:
  74.  
  75.       ANSI.SYS
  76.       FSFILTER.SYS
  77.       FSACCESS.EXE
  78.       EMM386.SYS
  79.       HIMEM.SYS
  80.       LPTDD.SYS
  81.       MOUSE.COM
  82.  
  83.    You can add any number of native DOS files to this diskette, but not
  84.    until the VMB is running.
  85.  
  86. Creating the VMB Image
  87. ----------------------
  88. You can create the VMB image using either of the options described 
  89. below.
  90.  
  91. Each time you install a new version of OS/2 or a Service Pak, you need 
  92. to update the IMAGE with the current version of the files from the 
  93. OS2\MDOS directory listed in step 4 above.
  94.  
  95. OPTION A: 
  96.  
  97. You can read or write to drive A, but you cannot change the
  98. AUTOEXEC.BAT or CONFIG.SYS file, or add files directly to the VMB image 
  99. file on the hard disk.
  100.  
  101. Note: Use a text editor to create files.
  102.  
  103. 1. On the VMB diskette, create the following CONFIG.SYS file:
  104.  
  105.       DEVICE=HIMEM.SYS
  106.       DEVICE=EMM386.SYS
  107.       DOS=HIGH,UMB
  108.       DEVICE=FSFILTER.SYS
  109.       DEVICE=ANSI.SYS
  110.       DEVICE=LPTDD.SYS
  111.       FILES=40
  112.       BUFFERS=30
  113.       LASTDRIVE=Z
  114.  
  115. 2. On the VMB diskette, create the following AUTOEXEC.BAT file:
  116.  
  117.       ECHO OFF
  118.       PROMPT $P$G
  119.       SET COMSPEC=C:\VMB\COMMAND.COM
  120.       MOUSE.COM
  121.       PATH C:\;C:\VMB
  122.       C:
  123.       CD\VMB
  124.       VMB.BAT
  125.  
  126. 3. At the C:\ prompt, type MD VMB and press Enter to create the VMB
  127.    directory.
  128.  
  129. 4. In the C:\VMB directory, create the batch file, VMB.BAT, consisting
  130.    of the following commands:
  131.  
  132.       C:\OS2\MDOS\FSACCESS A:
  133.       CD\
  134.  
  135.    This file lets you read and write to drive A; otherwise, a DIR on
  136.    drive A displays the image files.
  137.  
  138. 5. Copy COMMAND.COM from the VMB diskette to the VMB directory. 
  139.  
  140. 6. At the C:\VMB prompt, type VMDISK A: DOS.IMG and press Enter.
  141.  
  142.    This creates an image of the diskette you created. The image file is
  143.    DOS.IMG and is in the C:\VMB directory.
  144.  
  145. 7. When finished, remove and store the diskette; then return to the
  146.    Desktop.
  147.  
  148. OPTION B:
  149.  
  150. You can read and write to a drive other than drive A; for example, 
  151. drive M. You can change the AUTOEXEC.BAT and CONFIG.SYS files, and add 
  152. files directly to the VMB image file on the hard disk.
  153.  
  154. Note: Use a text editor to create files.
  155.  
  156. 1. On the VMB diskette, create the following AUTOEXEC.BAT file:
  157.  
  158.       ECHO OFF
  159.       PROMPT $P$G
  160.       MOUSE.COM
  161.       PATH C:\;C:\VMB
  162.       FSACCESS M=A
  163.       C:
  164.       CD\VMB
  165.  
  166.    Note: If you start DOS from an Image File, you cannot use physical
  167.          drive A until you release the Image File. FSACCESS M=A
  168.          releases drive A and assigns "M" to physical drive A. You can
  169.          select another logical drive in its place. This process allows
  170.          DOS applications to read and write to physical drive A, which
  171.          is logical drive M. When retrieving or saving a file in
  172.          physical drive A, rename the application's drive destination
  173.          to M instead of A.
  174.  
  175.          LAN USERS: Do not use FSACCESS Z=A if your LAN assigns logical
  176.          drive Z as the network drive.
  177.  
  178. 2. On the VMB diskette, create the following CONFIG.SYS file:
  179.  
  180.       DEVICE=HIMEM.SYS
  181.       DEVICE=EMM386.SYS
  182.       DOS=HIGH,UMB
  183.       DEVICE=FSFILTER.SYS
  184.       DEVICE=ANSI.SYS
  185.       DEVICE=LPTDD.SYS
  186.       FILES=40
  187.       BUFFERS=30
  188.       LASTDRIVE=Z
  189.  
  190.    Note: Assigning LASTDRIVE=Z for VMB purposes allows the FSACCESS in
  191.          step 1 to assign "M" to drive A.
  192.  
  193. 3. At the C:\ prompt, type MD VMB and press Enter to create the VMB
  194.    directory for the VMB image.
  195.          
  196. 4. Copy COMMAND.COM from the VMB diskette to the VMB directory. At
  197.    C:\VMB, type VMDISK A: DOS.IMG and press Enter.
  198.  
  199.    This creates an image of the diskette. The Image File is named
  200.    DOS.IMG and is in the C:\VMB directory.
  201.  
  202. 5. Remove the diskette and return to the Desktop.
  203.  
  204. Creating a VMB Desktop Icon
  205. ---------------------------
  206. To create a VMB Desktop icon:
  207.  
  208.  1. Select OS/2 System.
  209.  
  210.  2. Select Command Prompts.
  211.  
  212.  3. Move the mouse pointer to the DOS Full Screen icon. Press and hold
  213.     Ctrl+MB2 (mouse button 2) and drag the icon to the Desktop; then
  214.     release Ctrl+MB2.
  215.  
  216.  4. Close Command Prompts and OS/2 System.
  217.  
  218.  5. Change the DOS settings for the VMB icon:
  219.  
  220.     a. Select the icon created above.
  221.     b. Press mouse button 2 to display the menu.
  222.     c. Select Settings to open the Settings notebook.
  223.     d. Select Session.
  224.     e. Select DOS Settings.
  225.     f. Change the following settings:
  226.  
  227.          EMS_MEMORY_LIMIT   to  (Default is 2048)
  228.          DOS_UMB            to  ON
  229.          DOS_HIGH           to  ON
  230.          DOS_STARTUP_DRIVE  to  C:\VMB\DOS.IMG
  231.          XMS_MEMORY_LIMIT   to  (Default is 2048--minimum)
  232.  
  233.     g. Use the following settings for applications that use DOS 
  234.        Protected Mode Interface (DPMI):
  235.  
  236.          DPMI_MEMORY_LIMIT  to   4 (Minimum requirement)
  237.          DPMI_DOS_API       to   ENABLE
  238.  
  239.     Note: There might be other settings you want to change, but don't
  240.           make them until the VMB is running.
  241.  
  242.  6. Select Save.
  243.  
  244.  7. Select General and change the Title field to VMB or the name you
  245.     want to call your Desktop icon.
  246.  
  247.  8. Close the window.
  248.  
  249.  9. Select the new DOS VMB Desktop icon.
  250.  
  251. 10. To exit the VMB from within the VMB, create the batch file, X.BAT
  252.     (containing the following line) in the VMB directory:
  253.  
  254.        C:\OS2\MDOS\EXIT_VDM
  255.  
  256. 11. Save the file.
  257.  
  258. 12. Type X at the command prompt.
  259.  
  260.     Note: If you have problems with the preceding steps, check all of
  261.           your file and directory names, especially those for the DOS
  262.           settings. If you need help:
  263.  
  264.           1. Open Master Help Index.
  265.           2. Select Search Topics.
  266.           3. Type Starting from an Image File in the entry field.
  267.           4. Scroll to the DOS section.
  268.           5. Select Starting from an Image File and read the
  269.              information.
  270.  
  271.  
  272. PART 2. MULTI-BOOT VMB GENERAL GUIDELINES
  273.  
  274. Creating Multi-Boot VMB CONFIG.SYS and AUTOEXEC.BAT Files
  275. ---------------------------------------------------------
  276. The Multi-Boot VMB is for systems with the Boot Manager setup: DOS 
  277. Version 6.0 or later in the C partition and OS/2 in a different 
  278. partition.
  279.  
  280. Create the following AUTOEXEC.BAT and CONFIG.SYS files in the root 
  281. directory of the C (DOS) partition.
  282.  
  283. Note: Use a text editor to create files.
  284.  
  285. Replace the < > symbols around "Menu," "Normal," and "OS2" with 
  286. brackets [ ]. These characters are misinterpreted because of the way 
  287. the files are stored on the IBM LAN.
  288.  
  289. Note: Use the following instructions to create the VMB. Make sure it is
  290.       running before you add other files, drivers, and statements for
  291.       your specific applications, networks, and so on.
  292.  
  293.  AUTOEXEC.BAT File:
  294.  
  295.    @ECHO OFF
  296.    PROMPT $p$g
  297.    GOTO %CONFIG%
  298.  
  299.    :NORMAL
  300.    C:\DOS\SMARTDRV.EXE
  301.    PATH C:\DOS
  302.    SET TEMP=C:\DOS
  303.    LH C:\DOS\MOUSE.COM
  304.    LH C:\DOS\DOSKEY
  305.    GOTO END
  306.  
  307.    :OS2
  308.    SET COMSPEC=C:\DOS\COMMAND.COM
  309.    PATH C:\;C:\DOS;
  310.    LH DOSKEY
  311.    LH D:\OS2\MDOS\MOUSE.COM
  312.    GOTO END
  313.    :END
  314.  
  315.  CONFIG.SYS File:
  316.  
  317.    <MENU>
  318.    MENUITEM=OS2,BOOT FOR OS/2 VMB
  319.    MENUITEM=NORMAL,BOOT FOR NATIVE DOS
  320.  
  321.    <NORMAL>
  322.    DEVICE=C:\DOS\HIMEM.SYS
  323.    DEVICE=C:\DOS\EMM386.EXE NOEMS
  324.    DOS=HIGH,UMB
  325.    FILES=30
  326.    BUFFERS=15
  327.    SHELL=C:\DOS\COMMAND.COM C:\DOS\  /P
  328.    DEVICEHIGH=C:\DOS\ANSI.SYS
  329.    STACKS=9,256
  330.  
  331.    <OS2>
  332.    DEVICE=D:\OS2\MDOS\FSFILTER.SYS
  333.    DEVICE=D:\OS2\MDOS\HIMEM.SYS
  334.    DEVICE=D:\OS2\MDOS\EMM386.SYS
  335.    DEVICEHIGH=D:\OS2\MDOS\ANSI.SYS
  336.    DEVICEHIGH=D:\OS2\MDOS\LPTDD.SYS
  337.    DOS=HIGH,UMB
  338.    FILES=30
  339.    BUFFERS=20
  340.    SHELL=C:\DOS\COMMAND.COM C:\DOS /P
  341.  
  342. Creating a VMB Desktop Icon
  343. ---------------------------
  344. To create a VMB Desktop icon:
  345.  
  346.  1. Select OS/2 System.
  347.  
  348.  2. Select Command Prompts.
  349.  
  350.  3. Move the mouse pointer to the DOS Full Screen icon. Press and hold
  351.     Ctrl+MB2 (mouse button 2) and drag the icon to the Desktop; then
  352.     release Ctrl+MB2.
  353.  
  354.  4. Close Command Prompts and OS/2 System.
  355.  
  356.  5. Change the DOS settings for the VMB icon:
  357.  
  358.     a. Select the icon created above.
  359.     b. Press mouse button 2 to display the menu.
  360.     c. Select Settings to open the Settings notebook.
  361.     d. Select Session.
  362.     e. Select DOS Settings.
  363.     f. Change the following settings:
  364.  
  365.           DOS_UMB             to: ON
  366.           DOS_HIGH            to: ON
  367.           DOS_STARTUP_DRIVE   to: C:\
  368.           XMS_MEMORY_LIMIT    to: (default is 2048--minimum)
  369.  
  370.     g. Use the following settings for applications that use DOS 
  371.        Protected Mode Interface (DPMI):
  372.  
  373.           DPMI_MEMORY_LIMIT   to: 4 (Minimum requirement)
  374.           DPMI_DOS_API        to: ENABLE
  375.  
  376.     Note: Do not do change any other setting until the VMB is running.
  377.  
  378.  6. Select Save.
  379.  
  380.  7. Select General and change the Title field to VMB or the name you
  381.     want to call your Desktop icon.
  382.  
  383.  8. Close the window.
  384.  
  385.  9. Select the new DOS VMB Desktop icon. The following appears:
  386.  
  387.        MS-DOS 6 Startup Menu
  388.           1.  BOOT FOR OS/2 VMB     (highlighted)
  389.           2.  BOOT FOR NATIVE DOS
  390.  
  391. 10. Select 1.
  392.  
  393.     Note: If you select 2, you receive an error message. This selection
  394.           is for starting native DOS from the Boot Manager partition.
  395.  
  396. 11. To exit the VMB, create the batch file, X.BAT (containing the
  397.     following line), in the C:\ directory:
  398.  
  399.        @ECHO OFF D:\OS2\MDOS\EXIT_VDM
  400.  
  401. 12. Type X at the command prompt.
  402.  
  403. ______________________________________________________________________
  404. IBM disclaims all warranties, whether express or implied, including 
  405. without limitation, warranties of fitness and merchantability with 
  406. respect to the information in this document. By furnishing this 
  407. document, IBM grants no licenses to any related patents or copyrights.  
  408. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  409. or brand names referenced in this document are the property of their 
  410. respective owners. Consult your product manuals for complete trademark 
  411. information. 
  412.