You cannot run Windows 98 directly inside a standard Windows Command Prompt; the command prompt is a text-based environment, not a virtual machine host. To get a working Windows 98 system from a command prompt, you need a virtual machine (VM) or an emulator that runs on your modern PC, and you launch it from the command line. This guide shows you how to set that up using free, official tools. The steps assume you have a legally obtained Windows 98 installation CD or ISO image and a modern Windows PC with virtualization support enabled in the BIOS/UEFI. If you only need to run old DOS programs, a simpler option is DOSBox, but that does not provide a full Windows 98 desktop.
What You'll Need
- A modern Windows PC (Windows 10 or 11) with a 64-bit processor and virtualization enabled in the BIOS/UEFI (look for Intel VT-x or AMD-V).
- A legally owned Windows 98 installation CD or an ISO image of it.
- A free virtual machine program: Oracle VM VirtualBox or VMware Workstation Player. Both have command-line launch options.
- A Windows 98 product key (from your CD case or certificate of authenticity).
- About 2 GB of free disk space for the VM and a folder to store it.
Step-by-Step
- Enable virtualization in your BIOS/UEFI. Restart your PC and enter the firmware settings (usually by pressing Del, F2, or F10 during boot). Find the virtualization option (Intel VT-x or AMD-V) and set it to Enabled. Save and exit. Without this, the VM will not start.
- Install a virtual machine program. Download VirtualBox from the official Oracle website or VMware Workstation Player from the official VMware site. Run the installer and accept the default options. Restart if prompted.
- Create a new virtual machine. Open VirtualBox (or VMware) and click New. Name it Windows 98, choose Type: Microsoft Windows, Version: Windows 98. Allocate at least 64 MB of RAM (128 MB is safer) and create a virtual hard disk of 2 GB. These are the minimums for Windows 98; more RAM may cause issues with some drivers.
- Attach the Windows 98 ISO. In VirtualBox, select the VM, click Settings > Storage. Under the IDE controller, click the empty CD icon, then the disk icon next to Optical Drive, and choose your Windows 98 ISO file. In VMware, edit the VM settings and set the CD/DVD drive to use the ISO image.
- Start the VM and install Windows 98. Click Start in VirtualBox (or Power On in VMware). The VM will boot from the ISO. Follow the on-screen instructions: choose to boot from CD-ROM, then run the Windows 98 Setup. Accept the license agreement, choose a directory (C:\WINDOWS is fine), and select Typical setup. Enter your product key when asked. Choose to create a startup disk if you want, but it is optional. Let the installation complete; the VM will restart several times.
- Launch the VM from the command prompt. Once Windows 98 is installed, you can start the VM without opening the graphical manager. For VirtualBox, open Command Prompt and run:
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "Windows 98"(replace the VM name if you used a different one). For VMware, the command is typically"C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" -X "C:\path\to\Windows 98.vmx". The exact path may differ by version; check your installation folder. - Install Guest Additions or VMware Tools (optional). These improve display resolution and mouse integration. In VirtualBox, with the VM running, use the Devices menu > Insert Guest Additions CD image, then run the installer inside Windows 98. Note that Windows 98 support for Guest Additions is limited; some features may not work. VMware Tools for Windows 98 is also limited. If you encounter errors, skip this step.
- Shut down properly. Inside Windows 98, click Start > Shut Down > Shut down the computer. Then close the VM window. Do not just close the window, as this can corrupt the virtual disk.
Common Mistakes
- Trying to run Windows 98 directly in Command Prompt. The command prompt cannot execute a full operating system; you need a VM or emulator.
- Forgetting to enable virtualization. The VM will fail to start with an error about VT-x/AMD-V not being available.
- Using a 64-bit Windows 98 ISO. Windows 98 is a 32-bit operating system; a 64-bit version does not exist. Ensure your ISO is the standard 32-bit release.
- Allocating too much RAM. Windows 98 may not boot with more than 512 MB of RAM without patches. Stick to 64–256 MB.
- Not shutting down the VM properly. Closing the window without shutting down can corrupt the virtual hard disk.
Tips
- If you only need to run old DOS games or applications, consider DOSBox instead of a full Windows 98 VM; it is lighter and easier to set up.
- Take a snapshot of the VM after installation so you can revert if something goes wrong.
- Use a shared folder to transfer files between your modern PC and the VM. In VirtualBox, set up a shared folder in the VM settings, then access it from Windows 98 if the Guest Additions support it; otherwise, use a network share or ISO.
- Keep your Windows 98 VM offline or behind a firewall; Windows 98 no longer receives security updates and is vulnerable to network attacks.
Troubleshooting
If the VM does not start, first check that virtualization is enabled in the BIOS/UEFI. Then verify that you have installed the latest version of your VM software. If you get an error about the ISO not being bootable, check that the ISO is a valid Windows 98 installation image and that the VM is set to boot from the CD/DVD drive first. If Windows 98 installation hangs, try reducing the RAM to 64 MB and disabling any unnecessary virtual hardware (such as audio or USB). If the mouse does not work, ensure that the VM is capturing input; in VirtualBox, press the Host key (usually Right Ctrl) to release the mouse. If you see a "FATAL: No bootable medium found" error, the ISO is not attached correctly; recheck the storage settings. For command-line launch issues, verify the path to the executable and the VM name; use quotes around paths with spaces.
Frequently Asked Questions
Can I run Windows 98 directly in Command Prompt without a VM?
No. The command prompt is a text-based interface and cannot host a full operating system. You need a virtual machine or emulator.
Is it legal to run Windows 98 in a VM?
Yes, if you own a valid license for Windows 98. You must use your own installation media and product key.
What are the minimum system requirements for Windows 98 in a VM?
Windows 98 requires at least a 486 processor, 16 MB of RAM, and about 200 MB of disk space. For a VM, allocate at least 64 MB RAM and 2 GB disk for comfortable use.
Why does my Windows 98 VM not boot after installation?
Common causes include too much RAM (try 64–128 MB), incorrect boot order (set hard disk first), or a corrupted installation. Try reinstalling or checking the VM settings.
Can I access the internet from Windows 98 in a VM?
Yes, but it is not recommended due to security risks. Windows 98 is outdated and lacks modern security updates. If you must, use a NAT network and avoid sensitive activities.
How do I transfer files to the Windows 98 VM?
Use a shared folder if supported by your VM software, or create an ISO file with the files and mount it in the VM. Alternatively, set up a network share.