Putting the Virtual Machine Boot Session in the Workplace Shell

We are now ready to put the VMB session as an object on the OS/2 Version 2.0 Workplace Shell desktop.

  • Locate the Templates folder. It is usually an icon on the Workplace Shell.

  • Open the Templates folder.

  • Locate the Program icon template.

  • Drag the Program icon template on to the desktop. This will cause the Program Settings notebook to appear.

  • Enter an asterisk "*" in the Path and file name field.

    See the example as shown in Figure "The Program Page of the Settings Notebook for a VMB".

  • Select the Session notebook tab.

    The Session notebook allows the user to specify the session type and DOS Settings for the VMB session.

  • Select either DOS full screen or DOS window and then select the DOS Settings... button.

  • Select the DOS_STARTUP_DRIVE list item.

    The difference between a VMB session and a "normal" VDM is that the DOS Settings value of DOS_STARTUP_DRIVE is set. This setting determines the location of the DOS kernel to be booted. By default, MVDM's DOS Emulation is loaded. However, the user may specify a location from which to load DOS, in which case the version of DOS residing at that location is loaded.

    Figure "DOS Settings - DOS_STARTUP_DRIVE"

    Example values for DOS startup drive are:

      9. 10. 11. 12.

    Other DOS Settings

    DOS settings which control the VDM hardware environment are applicable to the VMB session and operate in the same way as for a DOS Emulation windowed or full-screen session. Those which modify the virtual DOS environment are ignored; the equivalent settings are instead determined by the CONFIG.SYS file of the booted DOS kernel. Ignored settings include:

  • DOS_BREAK      

    The FCB limit is the lesser of either the booted DOS, or OS/2 Version 2.0 CONFIG.SYS value. The VMB session will by default have 640KB of real memory, mou se support, 2MB Expanded (EMS) memory, 2MB DPMI, and 2MB XMS memory.

    Booting from an OS/2 V2.0 Program

    By using DosStartSession it is possible to start a VMB session from an OS/2 V2.0 program. For more details see the following sample which shows how to boot from the disk drive A:. Of course, by changing startd.Environment, this sample can also be used to start a VMB from another hard disk partition or a boot image file from your hard disk.

    Figure "VMB from an OS/2 2.0 Program"


    [Back: Booting from a DOS Partition]
    [Next: Managing the VMB Session]