MS-DOS 6.22 and Windows 3.11 in Proxmox and in DOSBox-X: a disk built from Linux and four pitfalls

MS-DOS 6.22 and Windows 3.11 in Proxmox and in DOSBox-X: a disk built from Linux and four pitfalls

🌐 Leer en español

Before Windows 95 there was Windows 3.11, started from MS-DOS. The series needed it at hand. We had two pieces: the MS-DOS 6.22 boot floppy and a C: drive with Windows 3.11 already installed, with its 1995 internet programs (Netscape, Eudora, mIRC, Trumpet Winsock). With them we built two things:

  • a Proxmox VM with real MS-DOS, so everything behaves as on a PC of the time;
  • a zip and a script for DOSBox-X, to run it on any Linux without Proxmox.

The disk, built from Linux

Instead of installing by hand from floppies, the dos_w311.py script builds the whole disk from Linux:

  1. It copies the C: drive without personal data: it removes Netscape’s history and cookies, the Eudora mailbox and the .PWL passwords, and adds the MS-DOS floppy’s utilities in C:\DOS.
  2. It creates a 500 MB disk with the geometry 1015 cylinders, 16 heads, 63 sectors. Below 504 MB the BIOS translates nothing, so DOS sees the disk the same way in QEMU as on a real PC.
  3. It gives it a FAT16 partition with sfdisk and mkfs.fat, and copies the files with mtools, without mounting anything.
  4. It prepares a copy of the MS-DOS floppy that, on boot, runs FDISK /MBR and SYS C: by itself to make the disk bootable.
The floppy makes C: bootable without asking
The floppy makes C: bootable without asking

Four pitfalls

1. SYS scrambled the directory. On the first boot, CONFIG.SYS gave “Unrecognized command” on almost every line.

Errors in CONFIG.SYS
Errors in CONFIG.SYS

Reading the disk from Linux showed that CONFIG.SYS held AUTOEXEC.BAT’s contents. MS-DOS needs IO.SYS and MSDOS.SYS to be the first two entries in the root directory. Since the disk was already full, SYS C: forced them in and moved other entries around. The fix is to copy IO.SYS, MSDOS.SYS and COMMAND.COM first and everything else after. That way SYS only rewrites them in place.

2. “Too many parameters”. WIN.BAT came with Unix line endings (LF only). COMMAND.COM read it as a single line: PATH …, SET … and WIN.COM all together. The script converts every .BAT and .INI that needs it to CRLF.

3. “Cannot run Windows because of video device conflict”. That copy of Windows was set up with the S3 Trio64 driver, the card DOSBox emulates. QEMU doesn’t emulate it, so the VM uses the standard VGA driver (640×480, 16 colours): display.drv=vga.drv, 386grabber=vga.3gr and display=*vddvga in SYSTEM.INI. DOSBox-X keeps the S3, at 800×600 with 65 thousand colours.

The video conflict with the S3 driver
The video conflict with the S3 driver

4. Trumpet Winsock wanted a modem. The StartUp group opened Trumpet Winsock, which looked for a modem on COM1, plus a welcome text. Without a network that makes no sense, so PROGMAN.INI names a startup group that doesn’t exist (Startup=(ninguno)), and nothing starts by itself.

Trumpet Winsock looking for the modem
Trumpet Winsock looking for the modem

With that, MS-DOS boots, loads HIMEM, EMM386 and the mouse, and goes straight into Windows:

Program Manager in the VM
Program Manager in the VM

The Proxmox VM

  • 486, 32 MB, standard video, Sound Blaster 16 at 220/7/1 (as Windows expects) and no network.
  • A never-started template in the templates pool, and a production VM with its rollback snapshot.
  • To turn it off, exit Windows (File → Exit Windows) and power off at C:\>. With no write cache, DOS needs nothing more.

The DOSBox-X version

For anyone without Proxmox: a zip with the C: drive and instalar_dosbox_w311.sh, which:

  • installs DOSBox-X and unzip with apt (Debian/Ubuntu) or dnf (Fedora), or from Flathub if there’s no package;
  • unpacks the C: drive into ~/retro-dos/c;
  • writes a dosbox-x.conf with the S3 Trio and the Sound Blaster 16;
  • leaves a launcher, ~/retro-dos/w311, and an “MS-DOS + Windows 3.11” entry in the applications menu.

We tested it on a clean Debian 13 clone. One more pitfall showed up there: Debian installed from DVD or Blu-ray leaves a deb cdrom: line in sources.list, and apt silently waits for you to insert the disc. The script comments it out and keeps a backup.

Windows 3.11 in DOSBox-X, at 800×600 with the S3 driver
Windows 3.11 in DOSBox-X, at 800×600 with the S3 driver

Downloads

The scripts (dos_w311.py, instalar_dosbox_w311.sh and exportar_ova.sh, which turns the VMs into OVAs for VirtualBox or VMware) are in the package from the restore CD article. MS-DOS and Windows belong to Microsoft: the package does not include them, so you need your own MS-DOS 6.22 floppy and your own copy of Windows 3.11.

Series "Reviving old PCs in Proxmox": MS-DOS + Windows 3.11 · Windows 95 · Windows 98 SE · Windows XP · Restore CD

Got an old PC, a backup or a question? Tell us in the blog's Telegram group: Telegram group

Enjoyed it? Follow us on social media

We post new things every week: don't miss them.

YouTubeFacebookXInstagramTelegram