Support #714
Install Windows 3.1 in VirtualBox
Description
- Table of contents
- Create the Virtual Machine
- Install DOS 6.22
- Install Windows 3.1
- Resources
This is a guide on how I installed Windows 3.1 in a VirtualBox VM. This guide used 64-bit Arch Linux as the VM host, but any host that VirtualBox can run on should work.
Create the Virtual Machine¶
- Start by create a new VM in VirtualBox.
- Give the VM a name.
- Set the type to Microsoft Windows.
- Set the version to Windows 3.1.
- Set the memory size to 64MB
- Create a new virtual hard disk
- Set the type to VDI.
- Set the storage type to Dynamically allocated.
- Set the file name and give it 1.0GB
Setup DOS 6.22 Boot Disc¶
- Select the Win3.1 VM and click on the Settings button.
- Go to the Storage tab and add the DOS 6.22 boot disc to the Virtual CD Drive.
- Close the Settings window, and boot the VM.
Install DOS 6.22¶
- Format the hard drive using fdisk:
fdisk
- Choose 1 to Create DOS partition drive.
- Choose 1 to Create primary DOS partition.
- Choose Y to use maximum available space and set the partition as active.
- The VM will reboot when partitioned.
- Create the filesystem and copy the DOS system files onto the hard drive:
format /u /s c:
- Power off the VM, this must be done by closing the VirtualBox window and choosing to power off the machine.
Install Windows 3.1¶
- Boot the Win3.1 VM.
- Set the date and time
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the first Win 3.1 image.
- Change the current drive to the virtual floppy drive:
a:
- Then run the Windows 3.1 setup executable:
setup.exe
- Press ENTER to begin the installer
- Press ENTER to use the express setup option
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the second Win 3.1 image, then press ENTER.
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the third Win 3.1 image, then press ENTER.
- When the GUI starts, enter in a name and click Continue, then Continue again.
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the fourth Win 3.1 image, then click Retry.
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the fifth Win 3.1 image, then click Retry.
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the fourth Win 3.1 image, then click Continue. (I don't know why, but I was prompted to reinsert the fourth disk)
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the fifth Win 3.1 image, then click Continue. (I don't know why, but I was prompted to reinsert the fifth disk)
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the sixth Win 3.1 image, then click Retry.
- Click on the Devices -> Floppy Drives -> Choose disk image and choose the seventh Win 3.1 image, then click Continue.
- Select Do not add a printer, then click Install.
- Click on skip tutorial
- Click on the Devices -> Floppy Drives -> Remove disk from virtual drive
- Click Reboot
- When the VM finishes rebooting and the DOS prompt appears, start Windows:
WIN
Fix 100% CPU Usage¶
- Boot the DOS VM.
- Download and mount the dosidle.img file in the virtual Floppy drive
- Create the DOSIDLE folder:
mkdir DOSIDLE - Copy the dosidle program to the DOSIDLE folder:
copy a:*.* DOSIDLE
- Create the DOSIDLE folder:
- Download and mount the wqghlt.img file in the virtual Floppy drive
- Copy the wqghlt program to the DOSIDLE folder:
copy a:\wqghlt.386 c:\windows\system
- Copy the wqghlt program to the DOSIDLE folder:
- Start Windows:
win
- Go to Accessories -> Notepad
- Click on File -> Open and open
c:\autoexec.bat
; make sure to change the file type from .txt to all file types. - Add the following to the end of the autoexec.bat file:
C:\DOSIDLE\DOSIDLE.EXE
- Save and exit.
- Click on File -> Open and open
- Go to Accessories -> Notepad
- Click on File -> Open and open
C:\WINDOWS\SYSTEM.INI
; make sure to change the file type from .txt to all file types. - Add the following to the [386Enh] section of the
SYSTEM.INI
file:[386Enh] device=WQGHLT.386 ...
- Save and exit.
- Click on File -> Open and open
- Reboot the VM to check that it works.
Autostart Windows 3.1¶
- Start Windows:
win
- Go to Accessories -> Notepad
- Click on File -> Open and open
c:\autoexec.bat
; make sure to change the file type from .txt to all file types. - Add the following to the end of the autoexec.bat file:
WIN
- Save and exit. Then reboot the VM to check that it works.
Resources¶
Files
Updated by Daniel Curtis almost 9 years ago
- Status changed from New to In Progress
- Start date changed from 01/02/2016 to 01/03/2016
- % Done changed from 0 to 50
Updated by Daniel Curtis almost 9 years ago
- File dosidle.img dosidle.img added
- Description updated (diff)
- % Done changed from 50 to 70
Updated by Daniel Curtis almost 9 years ago
- File DOS Floppies.zip DOS Floppies.zip added
- File Win31 Floppies.zip Win31 Floppies.zip added
Updated by Daniel Curtis almost 9 years ago
Updated by Daniel Curtis almost 9 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100