home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / INFO / FAQS / OS2FAXES / OSDAVMB.FAX < prev    next >
Encoding:
Text File  |  1994-12-20  |  14.1 KB  |  429 lines

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