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!


  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018

We have a be nice policy.
Please be positive and constructive.




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)

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.