Introduction: How to Install DOS 6.22 Under VirtualBox

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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!


Bagobolts (author)2017-09-30

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?

rkromoser (author)2017-08-19

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?



Lightning GamerM (author)2017-04-12

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)
jnc27 (author)2017-02-20

Thank you!

How can I change the IP address?

AndreA172 (author)2017-02-01

Awesome, thank you! :-)

Robertowaa (author)2016-12-31

Thanks, man! much appreciated!

gooolias (author)2016-12-26

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!

ArthurB4 (author)2016-11-23

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

SudhirJ7 (author)2016-11-02

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


santosxpc made it! (author)2016-05-28

Thanks... and now I will go for Turbo Pascal :)

NetB1 (author)2016-04-26


NetB1 (author)2016-04-26


Jonathan H.P (author)2016-03-29

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.

tfarris (author)2016-02-26

simple didnt think that it was that eeasy

snoop911 (author)2016-02-21

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

MatthijsK (author)2015-02-02

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?

SagarK26 (author)MatthijsK2015-11-27

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

Phil HolmesC (author)SagarK262016-01-20

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)

SagarK26 (author)MatthijsK2015-11-27

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

AlvaroM3 (author)MatthijsK2015-07-30

type help and it will display all dos commands.

AidenM3 (author)MatthijsK2015-07-11

Type this:


copy *.* C:\

KaydenST (author)MatthijsK2015-02-02

DOS is a very specific operating system, so general commands like that will not work. Instead of me giving you commands from my memory, just do a search for DOS commands, and it will give you the commands, parameters, and use for each command. To get to the C drive you simply type "C:" without the quotations.

RatulT (author)2015-12-08

wait a min.

if u all are doing this just to play dos games....then just install dos box

its an emulator..... about 4 mb

and try CAESAR 2 for dos

one of the best games

SETTLERS gold edition is also nice

bcharusa (author)2015-11-28

Great Job KaydenST,

Thank YOU! Now I can install MS-DOS applications from They have a Large Archive of Dos Games..


Barry @bearflag7

Cheers, Barry

Hamraz31 (author)2015-01-14

hi thanx dear i have done it just u told . but now how i can connect the usb in it through virtual box . i want to to copy a program from usb to the c drive of dos. and one more Q plz tell can i make partition in dos if yes plz snd the tutorial .. thanx alot

SagarK26 (author)Hamraz312015-11-27

Use a windows XP - 10 cd to make partitions, but that means you need to reinstall DOS

KaydenST (author)Hamraz312015-02-02

Just as Arthur.ludwiczak said, it is best to pack the files/folders into an .img file, which emulates a floppy drive. You can then load that .img file into VirtualBox and copy the files from the A drive, treating it as a real floppy. DOS doesn't have USB support that I am aware of, but there are CD drivers you can install in DOS to let you pack files into a CD image. That way, you have more space.

JohnnyValhalla (author)2015-11-25

Good thing I found this. I now have another alternative to use on my good old DOS games. I am currently using DOSBox and I want to explore the difference between VirtualBox and DOSBox. Thanks.

By the way, if you're not used to DOS, you might have a hard time executing applications. All things are done manually instead of clicking. :)

SagarK26 (author)JohnnyValhalla2015-11-27

You can, dude. It's a very tedious process, though, to install a mouse

Cleversong (author)2015-11-15


Funcionou muito bem!

xucaen (author)2015-11-12

I still have my original Dos installation disks. How do I use those instead of your disk images?

surfdude764 (author)2015-11-03


tbouve (author)2015-02-03

tbouve.....uh oh.....started 6.22 up and "no bootable medium found. System halted" was displayed. any suggestions? Thanks

kuswagter (author)tbouve2015-10-09

Did you get a solution to this as I have exactly the sample problem ie:

started 6.22 up and "no bootable medium found. System halted" was displayed. Despite the fact that the 3 img files are available in DropBOx. Can you now help me ?

h05558 (author)kuswagter2015-10-30

Change HDD as your first boot device should work.

cbrantigan (author)2014-11-08

I got dos installed and the commands seem to work. I cant figure out how to add programs to the virtual c drive or open dos programs stored on the real hard drive. I can see dos but cant use it to run programs. Whatever shall I do?

KaydenST (author)cbrantigan2014-11-08

There is software available to put files in a virtual floppy disk. MagicISO is one of those programs. You add files to the program, and it'll save the files into a single file that is seen by the Virtual Machine as a floppy disk. You can then select the file in the Virtual Machine as if you were selecting a floppy drive. Short of installing a CD driver for DOS and putting files into a virtual CD, this is your only option to transfer files between DOS and the real hard drive. There is an option to add a shared folder to the virtual machine, but I haven't experimented with it. Google will surely help you with the process. You also gave me an idea for a future Instructable lol. Hope this helps.

Bookstorm (author)KaydenST2015-09-17

Yes, there is another way to transfer files between DOS guest system installed in virtual machine and the host system. You must create another virtual machine with support of shared folder and connect the virtual drive of DOS system as virtual drive of this Machine. For example, if the name of virtual DOS disk file is Dos.vdi, and Windows XP is another Virtual Machine with shared folder support - add the Dos.vdi as the second IDE drive. You can read and write files to this disk from Windows XP. Unfortunately, this feature is not permanent (or I couldn't find the right way to do it) - the next time when you start Windows XP Virtual Machine, the second drive is absent:( - it must be attached in the same way as described above.

AlvaroM3 (author)2015-07-30
Quizás quisiste decir: Listo para instalar el software para revivir mi antiguo BBM.
Ready to install the software to revive my old BBS.!
Klaym (author)2015-06-22
Max81 (author)2015-06-09

If you like DOS and/or its software you can participate in a new international project. We are looking for 100 users and 10 developers (to start), from all over the world who want to use DOS and if we find them, it will be back (updated and free, of course). The new software for this OS will be available, too.
If you are interested – contact us: and let us know that you want to use either DOS or its software so we could add you to the users list. In addition, we invite programmers interested in working on the DOS kernel, drivers and software.

StevenP9 (author)2015-04-02

Of course DOS can use the internet. w/ appropriate drivers, esp in 32-bit Freedos Arachne can be lightning.

MatthijsK (author)2015-02-03

Yeah that's all good and well but I allready did that

in the first place. So what now?

MatthijsK (author)2015-02-02

Btw English is not my mother language I'm from Holland

arthur.ludwiczak (author)2015-01-27

Hamraz you simply need to pack your folder into the .img file and mount as a floppy so you can see your files. You can also use "Devices -> Floppy Devices -> Choose a virtual floppy disk file". After inserted you simply go to drive a: and copy files to c:\

jrg7 (author)2014-11-09

Small problem:

After I installed MS-DOS, I went through the whole installation process, then I got to the DOS screen, the one that is much like today's CMD, and typed "WIN", which is the command to start Windows. This, however, did not register with the system. If you could help me resolve this issue, that would be great,

KaydenST (author)jrg72014-11-09

That is because Windows is not included in DOS. You have to install Windows separately after you install DOS. I might put a link to Windows 3.11 installation disks in this tutorial so you can do that.

jrg7 (author)KaydenST2014-11-10

Ok, thank you. I realy appreciate it.

YvesS (author)2014-08-27

How do I make full screen work? Can't use the guest additions CD unless I (get ready for this) install CD drivers for DOS.

KaydenST (author)YvesS2014-11-08

there is a key combo for fullscreen that I can't remember. VirtualBox's help or Google is the answer lol

About This Instructable




More by KaydenST:Minecraft Bukkit ServerHow To Install DOS 6.22 Under VirtualBoxLaptop Buying Guide
Add instructable to: