How To Install MS-DOS In VirtualBox: Why Do This?
For many years, MS-DOS was the most popular operating system. This guide explains how to install MS-DOS in VirtualBox in a matter of minutes.
Until version 3.1 of Windows, MS-DOS was the operating system used when starting the computer, and it is still a requirement for installing several versions of Windows, including Windows 95.
For this reason, as well as for fun, it is sometimes necessary to install MS-DOS in a virtual machine. So let’s see how to install MS-DOS in VirtualBox.
How to Install MS-DOS: Prerequisites
For convenience, we will use MS-DOS version 5 in this guide.
This version is available on the WinWorld website.
How to install MS-DOS: Creating the virtual machine
We proceed to create the virtual machine, specifying MS-DOS as the operating system. At this point, we can use the virtual machine specifications suggested by VirtualBox.
Install the operating system
We selected the MS-DOS 5 disk as a virtual floppy disk. Once the machine has booted, we will see the following boot screen:

We press “Enter” on the keyboard to continue.

Let’s confirm, or modify, if necessary, the settings and continue by pressing “Enter” again.

Let’s confirm the MS-DOS installation folder by pressing “Enter” again.

We will be asked whether to use all the disk space for MS-DOS. Again, we press “Enter”.

While formatting the hard disk, you will be asked to insert, one at a time, the other virtual floppy disks.

We insert the required disk and press “Enter”. We repeat the operation as often as required.

Setup is now complete. We remove the virtual floppy and press “Enter” one last time.

We select the “COMMAND.COM” file and press enter, using the SHIFT key to move between the options.

We have seen how to install MS-DOS in VirtualBox in just a few minutes. We can now safely use our historical operating system.
Do you want to proceed with the installation of Windows 95? Follow this guide!
At this point, all that remains is to wish you a lot of fun 🙂