home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 36 Tips / 36-Tips.zip / osdanovl.txt < prev    next >
Text File  |  1996-11-16  |  8KB  |  249 lines

  1. OSDANOVL - CREATING A VIRTUAL MACHINE BOOT (VMB) FOR THE NETWARE LAN
  2.            REQUESTER - OS/2 2.1
  3. 01/12/96
  4.  
  5. =======================================================================
  6.        Creating a Virtual Machine Boot (VMB) for the NetWare LAN
  7.                         Requester--OS/2 2.1
  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 is true of 
  18. applications that run off the NetWare LAN Requester.
  19.  
  20. This document describes how to create a DOS image file to use for 
  21. starting native DOS under OS/2 (referred to as "virtual machine boot" 
  22. or "VMB"), which you then can use for the NetWare LAN Requester.
  23.  
  24. RESOLUTION
  25.  
  26. Note: Make sure you have a backup of any file you intend to change.
  27.  
  28. Creating a VMB Diskette
  29. -----------------------
  30. Note: Each image file you create equals the size of the diskette you
  31.       use; for example, 360KB, 720KB, or 1.44MB.
  32.  
  33. 1. Create a VMB diskette using one of the following methods:
  34.  
  35.    METHOD A
  36.  
  37.    a. Start from a DOS startup diskette that contains the FORMAT.COM
  38.       file from native DOS.
  39.  
  40.    b. Type FORMAT A: /S and press Enter. When you see the message
  41.       asking you to press any key, insert a blank diskette for the VMB
  42.      in drive A and press Enter.
  43.  
  44.    COMMAND.COM is now on the diskette.
  45.  
  46.    METHOD B
  47.  
  48.    a. If you have native DOS installed, start from there.
  49.  
  50.    b. Insert the blank formatted diskette you want to use for the VMB
  51.       in drive A.
  52.  
  53.    c. At the command prompt of the DOS root directory, type SYS A: and
  54.       press Enter.
  55.  
  56.    COMMAND.COM is now on the diskette.
  57.  
  58. 2. Insert the VMB diskette in drive A and start the system. If it
  59.    starts correctly, continue with the following; otherwise, retry the
  60.    previous steps.
  61.  
  62.    Note: After creating a VMB diskette, you can start from:
  63.  
  64.          * DOS from Drive A: (from Command Prompts in the OS/2 System
  65.            folder), or
  66.  
  67.          * VMB Image on the Desktop
  68.  
  69.    Use the following instructions to create the VMB. Make sure it is
  70.    running before you customize the VMB image. You can then add other
  71.    device drivers, native DOS files, and statements in the CONFIG.SYS
  72.    file and AUTOEXEC.BAT file specific to your application, network,
  73.    and so on. You have to create several VMBs for each program that has
  74.    special requirements.
  75.  
  76. 3. Start your system in OS/2 and copy the following files from the
  77.    OS2\MDOS directory to the VMB diskette:
  78.  
  79.       ANSI.SYS
  80.       FSFILTER.SYS
  81.       FSACCESS.EXE
  82.       EMM386.SYS
  83.       HIMEM.SYS
  84.       LPTDD.SYS
  85.       MOUSE.COM
  86.  
  87.    You can add any number of native DOS files to this diskette, but not
  88.    until the VMB is running.
  89.  
  90. The VMB lets you read and write to drive A using an alternate drive 
  91. letter. You can change the AUTOEXEC.BAT and CONFIG.SYS files and add 
  92. files after the Image file is on the hard disk (see "Instructions" 
  93. below).
  94.  
  95. Each time you install a new version of OS/2 or a Service Pak, you must 
  96. update the IMAGE with the current version of the files from the 
  97. OS2\MDOS directory listed in step 3 above.
  98.  
  99. Instructions
  100. ------------
  101. 1. On the VMB diskette, create the following AUTOEXEC.BAT file with a
  102.    text editor:
  103.  
  104.    Private or Global
  105.  
  106.    ECHO OFF
  107.    PROMPT $P$G
  108.    MOUSE.COM
  109.    PATH C:\;C:\VMB;C:\NETWARE
  110.    SET DOS=VDM
  111.    FSACCESS G=A
  112.    C:
  113.    CD\NETWARE
  114.    NETX.EXE
  115.  
  116.    Private Only
  117.  
  118.    H: (Last drive + 1; for example, G + 1 = H)
  119.  
  120.    Note: If you start DOS from an Image File, you cannot use physical
  121.          drive A until you release the Image File. FSACCESS G=A
  122.          releases drive A and assigns "G," which is the drive after the
  123.          last assigned drive on your workstation. This lets DOS
  124.          applications read and write to physical drive A, which is
  125.          logical drive G. When retrieving or saving a file from or to
  126.          physical drive A, rename the application's drive destination
  127.          to "G" instead of "A."
  128.  
  129.          LAN USERS: Do not use FSACCESS Z=A if your LAN assigns logical
  130.          drive Z as the network drive.
  131.  
  132. 2. On the VMB diskette, create the following CONFIG.SYS file with a
  133.    text editor:
  134.  
  135.    Private or Global
  136.  
  137.    DEVICE=FSFILTER.SYS
  138.    FILES=40
  139.    BUFFERS=40
  140.    DEVICE=HIMEM.SYS
  141.    DEVICE=EMM386.SYS
  142.    LASTDRIVE=G
  143.    DOS=HIGH,UMB
  144.    DEVICE=ANSI.SYS
  145.    DEVICE=LPTDD.SYS
  146.    DEVICE=C:\NETWARE\DOSVIPX.SYS
  147.  
  148.    Note: LASTDRIVE=G is the same as the drive defined by FSACCESS in
  149.          the AUTOEXEC.BAT file.
  150.  
  151. 3. Type MD C:\VMB and press Enter to make a directory for the VMB image.
  152.  
  153. 4. Copy COMMAND.COM from the VMB diskette to the VMB directory.
  154.  
  155. 5. Go to C:\VMB and type VMDISK A: DOS.IMG; then press Enter.
  156.  
  157.    This creates an image of the diskette you created. The Image file is
  158.    named DOS.IMG and is in the C:\VMB directory.
  159.  
  160. 6. Remove and store the diskette; then return to the Desktop.
  161.  
  162. Creating a VMB Desktop Icon
  163. ---------------------------
  164. 1. Create the icon:
  165.  
  166.    a. Open the OS/2 System folder.
  167.    
  168.    b. Select Command Prompts.
  169.  
  170.    c. Point to the DOS Full Screen icon; then press and hold Ctrl+MB2
  171.       (mouse button 2) and drag the icon to the Desktop; then release
  172.       Ctrl+MB2.
  173.  
  174.    d. Close Command Prompts and OS/2 System.
  175.  
  176. 2. Change the DOS settings for the VMB icon:
  177.  
  178.    a. Select the icon created in step 1.
  179.    b. Press mouse button 2 to display the menu.
  180.    c. Select the Arrow at Open.
  181.    d. Select Settings to open the Settings notebook.
  182.    e. Select Session.
  183.    f. Select DOS Settings.
  184.    g. Change the following settings:
  185.  
  186.          EMS_MEMORY_LIMIT   to  (Default is 2048)
  187.          DOS_UMB            to  ON
  188.          DOS_HIGH           to  ON
  189.          DOS_STARTUP_DRIVE  to  C:\VMB\DOS.IMG
  190.          XMS_MEMORY_LIMIT   to  (Default is 2048--minimum)
  191.  
  192.                                 Private     Global
  193.                                 -------     ------
  194.          NETWARE_RESOURCES  to  PRIVATE     GLOBAL
  195.          DOS_FILES          to  214 (max)   214 (max)
  196.          DOS_LASTDRIVE      to  G           G
  197.  
  198.  
  199.       Note: In a Private session, DOS_LASTDRIVE must be set to the next
  200.             letter in succession after your last OS/2 workstation drive.
  201.             For example, if you have drives A, B, C, D, E, and F,
  202.             DOS_LASTDRIVE should be set to G. H will be your LOGIN
  203.             drive for that session.
  204.  
  205.    h. Use the following settings for applications that use DOS 
  206.       Protected Mode Interface (DPMI):
  207.  
  208.         DPMI_MEMORY_LIMIT  to  4 (Minimum requirement)
  209.         DPMI_DOS_API       to  ENABLE
  210.  
  211.  
  212.    i. If your system has a LAN adapter, or another board that uses RAM,
  213.       add the range it uses to the MEM_EXCLUDE_REGIONS settings (that
  214.       is, D8000-DFFFF for an Ethernet adapter).
  215.  
  216.       Note: There might be other settings you want to change, but don't
  217.             make them until the VMB is running.
  218.  
  219. 3. Select Save.
  220.  
  221. 4. Select General and change the Title field to VMB or the name you
  222.    want to call your Desktop icon.
  223.  
  224. 5. Close the window.
  225.  
  226. 6. Select the new DOS VMB Desktop icon.
  227.  
  228. 7. To exit the VMB from within the VMB, create the batch file, X.BAT
  229.    (containing the following line) in the VMB directory:
  230.  
  231.       @ C:\OS2\MDOS\EXIT_VDM
  232.  
  233. 8. Save the file.
  234.  
  235. 9. Type X at the command prompt.
  236.  
  237. Note: If you have problems with the preceding steps, check all file and
  238.       directory names, especially those for the DOS settings.
  239.  
  240. ______________________________________________________________________
  241. IBM disclaims all warranties, whether express or implied, including 
  242. without limitation, warranties of fitness and merchantability with 
  243. respect to the information in this document. By furnishing this 
  244. document, IBM grants no licenses to any related patents or copyrights.  
  245. Copyright (c) 1994, 1995 IBM Corporation. Any trademarks and product 
  246. or brand names referenced in this document are the property of their 
  247. respective owners. Consult your product manuals for complete trademark 
  248. information. 
  249.