TechBuzzPro

How to Install MS-DOS on a Modern PC

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can install MS-DOS on a modern computer, but not by booting the original installer from a USB stick on bare metal. Modern UEFI firmware, SATA/NVMe drives and processors without legacy BIOS support will not run MS-DOS natively in most cases. The practical route is to run MS-DOS inside a virtual machine (VM) using free software such as VirtualBox or VMware Workstation Player, or to use a dedicated DOS emulator like DOSBox. This guide covers the VM method because it gives you a real, bootable MS-DOS environment with a C: drive, config.sys and autoexec.bat, and it does not risk your host Windows installation. You will need an MS-DOS installation image or floppy set that you are legally entitled to use, plus a modern PC with virtualization enabled.

What You'll Need

  • A modern PC running Windows, Linux or macOS with at least 4 GB of RAM (8 GB recommended).
  • VirtualBox (free, from virtualbox.org) or VMware Workstation Player (free for personal use).
  • A legitimate MS-DOS 6.22 installation disk image set (three 1.44 MB floppy images) or an ISO you are licensed to use. Do not download pirated copies.
  • About 2 GB of free disk space for the VM and virtual hard disk.
  • Virtualization enabled in your PC's firmware (Intel VT-x or AMD-V). Most PCs have it on by default; if not, enable it in the firmware settings.
  • A blank virtual hard disk file (created during VM setup, no physical disk needed).

Step-by-Step

  1. Enable virtualization if needed. Restart your PC and enter the firmware settings (usually Del, F2 or F10 at boot). Look for Intel Virtualization Technology, Intel VT-x, AMD-V or SVM Mode and set it to Enabled. Save and exit. On Windows you can confirm it is on via Task Manager > Performance > CPU, where you should see Virtualization: Enabled.
  2. Install VirtualBox. Download the installer from virtualbox.org and run it with default options. On Windows, accept the network interface warning if prompted. Restart if the installer asks.
  3. Create a new virtual machine. Open VirtualBox and click New. Name it MS-DOS, set Type to Other and Version to DOS. Allocate 16–32 MB of RAM (MS-DOS cannot use more than about 64 MB meaningfully) and choose "Do not add a virtual hard disk" for now, or create a 500 MB VDI disk if you prefer to install to a virtual drive.
  4. Attach the MS-DOS installation media. With the VM selected, open Settings > Storage. Under the IDE controller, click the empty optical drive icon, then the disk icon next to "Optical Drive" and choose "Choose a disk file". Select your MS-DOS ISO or the first floppy image. If you have three floppy images, attach the first one to the floppy controller instead and plan to swap images during setup.
  5. Adjust the boot order. In Settings > System, make sure the optical or floppy drive is first in the boot order so the VM starts from the installer.
  6. Start the VM and run FDISK. Click Start. When the DOS prompt appears, type fdisk and press Enter. Choose "Create DOS partition or Logical DOS Drive", then "Create Primary DOS Partition". Accept the default size and allow it to use the whole virtual disk. When asked to restart, do so.
  7. Format the drive. At the prompt, type format c: and press Enter. Confirm with Y. This erases the virtual disk only, not your real drive.
  8. Run the MS-DOS setup. Type setup and press Enter. Follow the on-screen prompts: confirm the installation path (C:\DOS), select the keyboard and country settings, and let it copy files. If you are using floppy images, swap to the next image when prompted via Devices > Floppy Drives in the VM menu.
  9. Remove the installation media and reboot. When setup finishes, shut down the VM, open Settings > Storage, and detach the ISO or floppy image. Start the VM again. It should boot from the virtual hard disk to a C:\> prompt.
  10. Test the install. Type dir to list files, ver to confirm the DOS version, and edit autoexec.bat to confirm the editor works. If you see a C:\> prompt and these commands respond, MS-DOS is installed.

Common Mistakes

  • Trying to boot MS-DOS directly on modern hardware. Most UEFI systems have no legacy BIOS or CSM option, and even with CSM the lack of DOS drivers for SATA/NVMe and USB means it will not see a disk or keyboard. Use a VM instead.
  • Allocating too much RAM. MS-DOS may fail to start or behave erratically with more than 64 MB. Keep it at 16–32 MB.
  • Forgetting to format C: after FDISK. Setup will fail or copy files to an unformatted partition.
  • Leaving the installer attached after setup. The VM will boot back into the installer instead of the installed system.
  • Using a pirated ISO. Use media you are licensed to use; the VM method does not change licensing.

Tips

  • Install the VirtualBox Guest Additions only if you need shared folders; MS-DOS has limited support, so use a network share or ISO instead.
  • Take a VM snapshot after a clean install so you can roll back if you break config.sys or autoexec.bat.
  • Keep the VM's disk small (500 MB is plenty) and back up the VDI file before experimenting.
  • If you only need to run a single DOS program, DOSBox is simpler than a full VM and requires no installation media.

Troubleshooting

  • VM won't boot from the installer: Check Settings > System > Boot Order and confirm the optical or floppy drive is first. Also confirm the ISO is attached under Storage, not just downloaded.
  • "No fixed disks present" in FDISK: The virtual hard disk was not created or is attached to the wrong controller. Shut down, open Settings > Storage, and add a VDI disk to the IDE controller.
  • Setup hangs or reboots: Reduce RAM to 16 MB and disable any unused virtual hardware such as audio or USB in the VM settings.
  • Keyboard or mouse not responding: Click inside the VM window to capture input. Press the host key (usually Right Ctrl) to release it.
  • Cannot swap floppy images: Use the VM menu's Devices > Floppy Drives option, or attach all images as separate virtual floppy drives before starting setup.

Frequently Asked Questions

Can I install MS-DOS directly on a modern PC without a VM?

In most cases no. Modern UEFI firmware and lack of DOS drivers for SATA, NVMe and USB make native installation impractical. A virtual machine or DOSBox is the reliable route.

Is MS-DOS free to download?

No. MS-DOS is still copyrighted. Use installation media you are licensed to use; the VM method does not change that.

Will MS-DOS run Windows programs?

No. MS-DOS runs DOS programs only. For Windows software, use a Windows VM instead.

How much RAM should I give the MS-DOS VM?

16–32 MB is ideal. More than 64 MB can cause problems because MS-DOS cannot address it.

Can I use DOSBox instead of VirtualBox?

Yes. DOSBox is an emulator that runs DOS programs without installing MS-DOS. Use a VM if you need a full MS-DOS system with its own C: drive and configuration files.

Does this work on macOS and Linux?

Yes. VirtualBox is available for Windows, macOS and Linux, and the steps are the same apart from how you enable virtualization in the host firmware.