Installing MS dos! in virtual box VMS

Source: Internet
Author: User

Original address: https://mylinuxramblings.wordpress.com/2010/12/05/linux-mint-debian-edition-lmde-first-impressions/

Whilst WINE is a great the Linux API for Microsoft OS based applications. However, it is not quite the same as running the real thing if you need 100%. Even under Windows 7, support for older programs based on MS-DOS is rather limited requiring the use of programs like DOSB OX or using XP compatibility Mode.

I tend not to throw out formerly useful software, you never know when it may become useful again! Therefore, I still has software from my MS-DOS days, including genuine MS-DOS 6.21 boot disks as well as a complete set O F softlanding linux System "Linux SLS distribution V0.99p9" Http://tinyurl.com/5cgrx dating from late 1992. SLS eventually became Slackware and the rest is Linux history!

This tutorial would explain how to create a bootable MS-DOS 6 based VirtualBox VM with CD-ROM support.

For those of the lucky enough to has original MS-DOS disks, I plan to do a further article but this time usin G FreeDOS, an 100% compatible open source MS-DOS 6.22 replacement (with bells!).

Turning your floppy Disks into. img Files

Note:your PC would need a floppy disk drive!

Because VirtualBox does not work with physical floppy disks (at least as far as I can tell) but with disk images, the Firs T thing need to does is turn the physical MS-DOS disks into disk images.

Luckily, in Linux this is really easy:

Open Terminal

Navigate to where are want the images saved, which is normally the hidden. VirtualBox directory in your home folder.

Insert the first floppy-DOS disk in the drive and enter in Terminal:

Kdesudo cat/dev/fd0 > imagefilename.img

Example:sudo cat/dev/fd0 > Msdos6.21-1.img

Repeat for all the remaining-MS disks, remember to give each file name a slightly different name to identify it!

Creating your VirtualBox VM

Launch VirtualBox and click New, then click Next.

Change Operating System to Other, this defaults the version to DOS.

Give the VM a name e.g. MS-DOS 6.21

Click Next

As this VM would only run MS-DOS applications, I ' m going to leave the amount of RAM at the default size of 32Mb. This can is changed later.

Click Next

We is now going to create a new virtual hard disk and make it bootable, so the default settings is okay.

Click Next

The New Virtual Disk Wizard would be displayed.

Click Next

Again accept the defaults.

Click Next

For Virtual Disk location and Size, 512Mb should is more than enough so accept the defaults.

Click Next

Given a summary of your Virtual hard Disk settings.

Click Finish

You is now given the Summary information for the VMS you have just configured.

Click Finish

Making floppy disk. img Files available to VirtualBox and your VMS

From the VirtualBox menu bar, select File > Virtual Media Manager

Click the floppy Images tab.

Click Add and select the images wish to Add. Then click Open.

If do correctly, your floppy Images folder should look similar to the above.

Clock OK.

We is now going to configure our MS-DOS VM for floppy Disks, so with the VM selected from the main window, select Set Tings from the toolbar.

Select the Storage menu down the left hand side of the window and then select Add Controller > Add Floppy Controller from the icon at the bottom of the Controller window.

To the right of the floppy Controller, click the icon Add floppy Device. An ' Empty ' floppy drive would be added.

We now need to inserts our first MS-DOS floppy disk So when we boot the VM, it'll boot off the disk and start the install .

With the floppy drive selected, the Far right window pane'll change.

To the right of the label floppy Device, click on the drop-down currently showing as Empty and select th E First MS-DOS disk image listed.

Click OK, you'll be returned to the main VirtualBox menu.

Installing MS-DOS in your VMS

With the MS-DOS VM selected, click Start from the toolbar.

Your VM should boot and load the MS-DOS installation program like in the Screen-shot below

Follow the instructions to install MS-DOS.

As this was a new Virtual hard disk you'll be asked to configure unformatted disk space. Select this option.

You'll be asked to mount the first floppy disk. This is already mounted so press Enter.

One of the things may now happen:

A. Your disk formats successfully and MS-DOS starts to install itself.

Or

B. The disk formatting remains at 0%. If This should happen, go to the VMS menu bar and select Machine > Reset.

When the starting MS-dos .... message appears on the screen press F8. You'll be prompted as in the screen-shot below.

Reply N to Process AUTOEXEC. BAT, and the command prompt'll appear as above. We is now going to manually format the c:drive. Enter the command format c:.

Once the drive has been formatted, enter the command Setup, the installation process would now continue.

After a short while (remember floppy disks normally held 1.44mb!), you'll be asked to insert the next floppy disk.

At the bottom of the VirtualBox VMS window, right click on the floppy disk icon and select the second MS-DOS installation D ISK image.

Then continue with the installation by pressing Enter.

Once the installation have been completed, you'll be asked-remove all floppies from the floppy drive and then reboot T He VM. As before right click on the floppy icon and this time Un-tick the currently mounted floppy disk.

Now Press Enter to reboot.

When the VM first reboots, it does not correctly display the command prompt.

To resolve go to the VMS menu bar and select Machine > Reset. The VM would reboot and the command prompt would be correctly displayed.

Managing performance!

MS-DOS is a demanding OS, however running in a VMS can cause problems for the host computer. To avoid the CPU on the host being fully loaded, we'll use a program called Dosidle, this is a TSR (Terminate and stay R esident) program. I ' ve included dosidle on the floppy disk image file called cdrom.img which can is downloaded from here.

Just download this file from the link above, add it to your. VirtualBox where you MS-DOS image disks reside, and then add to VirtualBox in the same.

Mount your cdrom.img disk into the VirtualBox floppy drive. Now type A: to the "a" drive, followed by dir to display the contents. If all goes to plan your should see the following

Copy the contents of the drive ' a ' to a folder called CDROM on C:by entering

mkdir C:\Cdrom

xcopy * * c:\cdrom/s

Copy c:\cdrom\dosidle\dosidle.exe c \

Dismount the virtual floppy disk.

Now edit Config.sys by entering edit c \Config.sys

The contents so they look like the following

Save the file and now edit Autoexec.bat by entering edit C: \autoexec.bat.

The contents so they look like the following

Save the file and reboot the VM.

On reboot should get the following displayed

Your MS-DOS VM would now only consume the CPU it needs.

Adding Support for CD-ROMs

By default MS-DOS does not come with CD-ROM support. However, this can is easily changed.

In the CDROM directory (which contains the contents of the cdrom.img file copied earlier) are a device driver for the C D ROM Drive for VirtualBox. Copy this to the root of c:by entering

Copy c:\cdrom\Oakcdrom.sys c \

Now, edit Config.sys so, it looks like the following Screen-shot

Save the file and now edit Autoexec.bat so, it looks like the following Screen-shot

Here we are added the 3rd line from the bottom, The/l:d tells DOS to assign the drive letter d:to the CD ROM drive.

Save the file and reboot the VM.

On reboot should get the following displayed

The 4th line down tells your that the MSCDEX have been loaded and the line below that tells your that the CD-ROM drive have been En successfully assigned the letter D.

I would has liked to has added network support to MS-DOS using Microsoft Lanman so files could be shared between the GUE St VM and the host. However, whilst driver support exists for the network cards used in VirtualBox it had turned out to being far too complicated To set-up in VirtualBox. FreeDOS Unlike MS-DOS offers network support as standard and I-ll endeavour to build a VirtualBox image with this version of DOS at a later date.

In the meantime, those of your desperate to use MS-DOS with networking should consider using VMWare as this provides better Network card support for MS-DOS and there is a number of articles available on the Internet in how to configure.

=-=-=-=-=
Powered by Blogilo

Installing MS dos! in virtual box VMS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.