QEMU/Guests/Windows 3.1: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
There were a few editions of Windows 3.1; Windows 3.1 for Central and Eastern Europe (adds Cyrillic support), Modular Windows (which ran on the Tandy VIS), embOS (embedded version), Windows 3.11 for Workgroups (adds networking support), Windows 3.11 (a very rare kernel update that didn't have the networking support), and finally, Windows 3.2, which is a Simplifed Chinese localization of 3.1.
 
This article will cover how to set up Windows 3.11 with mouse drivers, sound, network, and full graphics, but it should work for all versions of Windows 3.1.
 
==Before you start==
Windows 3.1 depends on DOS, and it must be installed before you can run it - the minimum being DOS 3.1 for Windows 3.1, and DOS 3.30 for Windows 3.11. See [[QEMU/Guests/Windows_1.x-2.x#Installing_MSMS-DOS_3.30|this page]] for moreinstructions informationon how to install DOS 3.30. It will also work on DOS 6.22 and modern versions of FreeDOS.
 
386 enhanced mode works in QEMU but it can be a bit buggy on certain systems. If it freezes for you try running <code>WIN /S</code> at the DOS prompt to disable it.
 
You can find the Windows 3.11, and MS-DOS floppy disks, on either WinWorldPC or [https://www.kirsle.net/msdos Kirsle].
 
==Installation==
Now we're ready to go.
 
===Installation===
Next, we start QEMU like this:
<pre>qemu-system-i386 -cpu 486 -m 16 -hda win31.img -fda /path/to/DOS/disk1.img -nic user,model=rtl8139,ipv6=off -vga vmware -usb -device usb-tablet -device sb16</pre>
If all goes well, you should see a screen like this:
 
[[File:WFW Setup.png|600px]]
 
Hit enter. Choose express setup. Change floppies as necessary, and fill out all the info (you don't need the Product Number). Skip installing the printer.
 
===VGA setup===
Now we'll set up the generic SVGA driver which will allow for up to 256 colors. Again, [https://computernewb.com/QEMU/vmmouseSVGA.img Download the SVGA floppy driver]. Insert it into QEMU as always (CTRL-ALT-2 -> <code>change floppy0 /path/to/vmmouseSVGA.img</code> -> CTRL-ALT-1). Go to MS-DOS prompt, type <code>A:</code>, and type <code>VGAPATCH P</code>. This will patch the generic VGA driver to work with QEMU. Type <code>exit</code> and go back to Windows. Go to Main -> Windows Setup -> Options -> Change System Settings, click on the "Display" dropdown, and scroll down until you see "Other display (requires disk from OEM)". Set the path to A: and select any resolution from ET4000 (not Super VGA!). You can go up to 1024x768 with 256 colors. I chose 800x600 with 256 colors.
 
[[File:WFW Setup8.png]]