How to Install DOS 6.22 Under VirtualBox





Introduction: How to Install DOS 6.22 Under VirtualBox

This Instructable was created to walk you through the steps required to install DOS 6.22 in VirtualBox.  I know it is an old operating system, but it is fun to mess around with. 

Step 1: Step 1: Download VirtualBox

First, you need to download and install the virtual machine, Oracle VirtualBox.  It is a free download.

Step 2: Step 2: Download DOS 6.22

For your convienience, I have provided you with a link to download DOS 6.22.  Just click on the link below.

The files have the extension .img, which is a virtual floppy disk image.

Step 3: Step 3: Run VirtualBox and Set Up the Virtual Machine

In this step, you will add a virtual machine that will run DOS 6.22.

First, open VirtualBox

At the top of the screen, you will see a button labeled "New".  Click that.

Click next.

Give the virtual machine a name.

Click next.

Give the virtual machine some RAM.  I chose 64 megs because that is the most that DOS 6.22 will see.  You could choose something lower if you wanted to.

Click next.

Click "Create New Disk".

Click next.

Choose a virtual hard drive format.  The top option works fine, unless you have a reason to choose a different one.

Click next.

Choose between dynamically allocated and fixed size.  Dynamically allocated will let the virtual hard drive grow and shrink as you add files, but will be slower.  Fixed size would be like the hard drive in your computer.  It is only one size.  This will vbe faster.

Click next.

Choose the size of the hard drive.  If you chose dynamically allocated, you will choose the maximum size of the hard drive.

Click next.

Click create.

Click create again.

Step 4: Step 4: Configuring the Virtual Machine

Right click on the virtual machine you just created and click settings. (I renamed mine DOS because I already had one nme DOS 6.22)

Go to the "System" page and click on the "Acceleration" tab.  Make sure everything is UN-checked.

Next go to the "Display" page and set the amount of video memory.  I used 8 MB, but you can use pretty much any amount above the red.

Next go to the "Storage" page and click on the "Add Controller" button.  Then click "Add floppy controller".

Click on the "Add Floppy Device" button.

In the windows that pops up, click "Leave Empty".

Next go to the "Audio" page and make sure it is set to SoundBlaster 16.

Go to the "Network" tab and choose "Bridged Adapter", then choose your network adapter.  I don't know if DOS can access the internet, but this is the setting you would need to perform for any virtual machine to access the internet and the network.

This is optional: Next to go the "Serial Ports" page. If you need serial support, you need to check the check box "Enable Serial Port", and if you need two ports, go to the "Port 2" tab and uncheck the same box.

Click "OK" at the bottom of the window.

Step 5: Setp 5: Installing DOS

Double click on the virtual machine that you created for DOS. (I renamed mine DOS because I already have one name DOS 6.22)

Click on "Devices", mouse over "Floppy Device", and click "Choose a Virtual Floppy Disk File"

Navigate to where you downloaded the setup disks and double click on disk one.

Close the virtual machine's windows and select "Power off the machine".  Then press "OK"

Agian, double click on the virtual machine that you created for DOS.

Follow the setup instructions to install DOS 6.22.

To insert disks 2 and 3 when setup asks you to, just follow the second direction in this step.

Step 6: Step 5: Congratulations!

Congratulations!  You should now have a working copy of MS-DOS version 6.22 running in VirtualBox!  Leave comments at the appropriate step about anything you have to say about it.  Use this step to leave comments regarding the entire Instructable.  Good luck!

3 People Made This Project!


  • Oil Contest

    Oil Contest
  • Creative Misuse Contest

    Creative Misuse Contest
  • Clocks Contest

    Clocks Contest

72 Discussions


Great, thank you very much. Easy and smooth.

Great tutorial! The reason for my creating this system is to, if possible, run a DOS Data Recovery Program! Besides the Target drive a Destination drive of equal or larger capacity is needed! Having to create the VHD and VFlop like shown however am I barking up the wrong tree expecting all the drives to be mounted and accessible in the directory after installing the OS?

Yes. the Installation with the provided img files works. Now I will install software like MASM or Turbo-C on my MS-DOS machine. All the nice Blogs about shared directories will not work because I have no "net use X: \\vboxsvr\share" beacuase the net command does not exists in DOS. Which possibilities do I have to install Software in my DOS machine?



Failed to open the disk image file C:\Users\Bram\Downloads\Setup Disks\setupdisk1.img.

The medium 'C:\Users\Bram\Downloads\Setup Disks\setupdisk1.img' can't be used as the requested device type.

Result Code: E_FAIL (0x80004005)Component: MediumWrapInterface: IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}Callee: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

1 year ago

Thank you!

How can I change the IP address?

Awesome, thank you! :-)

Thanks, man! much appreciated!

This is great!!!! Thanks a lot! I remember the days I used MS Dos 5 and made several changes to config.sys and autoexec.bat to get 1k more to play some games!

Thanks for the information!!! I've been wanting a DOS VM for a while. Thanks for the detailed info.

Thanks for so detailed instructions. Everything was just smooth sailing.



2 years ago



2 years ago


OK, Step 5 gets a little confusing for someone who hasn't played with Virtualbox before. The sequence should be like this:

1. Choose setupdisk.img as per above instructions

2. Click on OK, and then click on the green 'Start' arrow to run your virtual machine. The machine will boot up, and you will be presented with the blue installation screen. Press ENTER to continue with installing MS-DOS. Don't worry about formatting your drive -- it's just the virtual drive you created previously.

3. The machine will reboot, 'format' the drive and install the first disk. When it prompts you to insert the next disk, switch back to the Oracle VM Virtualbox Manager, and click on 'Storage'. Click on the setupdisk1.img to select the drive, and then click on the little floppy disk icon, to navigate to setupdisk2.img, and select this. Make sure it's still the same virtual floppy drive (Floppy device 0).

4. Click on OK and switch back to your virtual machine. Press ENTER and you should see the progress bar continue to about 2/3 mark.

5. Repeat the 'disk swap' procedure to 'insert' setupdisk3.img. When you are prompted to remove disks, switch to VM Manager, and, as before, click on 'Storage' and then select the disk image. Click on the floppy disk icon, and select 'Remove disk from virtual drive.'

Restart the virtual machine and you should be good to go.

simple didnt think that it was that eeasy

There's a dos 6.22 iso image at AllBootDisks.. would the installation procedure be the same? Modifying the .iso to add my own files and compilers (using MagicISO or PowerISO), but what about getting (generated) files out of the DOS machine?

Any thoughts on using vmware player... easier/harder to setup and/or copy files in and out?

Or using ready made dos virtual machines (like from GetIntoPc) or Freedos

Hey i'v got a problem.

if I boot DOS 5.0 in virtualbox I get in floppy drive A:\ and if I type "copy files to drive c:\" I'll get the message "too many parameters".

So how do I get in the c:\ drive?

3 replies

Dude, DOS doesn't understand normal english. BUt you can type in help and learn what's the proper english used in DOS

The "Help" command only works in windows based "DOS" also known as "CMD.exe" or "Command" if you are using actual "DOS" (v.6.22 was the last official standalone build) then you will have to learn the proper commands for it to respond the way you would like it. I suggest either looking online or in a library for a book called "DOS For DUMMIES." It is a very good resource for people learning to use legacy software and OS's (Operating Systems)

Dude, DOS doesn't understand normal english. BUt you can type in help and learn what's the proper english used in DOS