How to install Windows NT 4.0 in QEMU

From Computernewb Wiki
Revision as of 07:49, 11 October 2024 by Re9177 (talk | contribs) (UniATA guide)
Jump to navigation Jump to search

< Windows Me | Windows 2000 > | Windows NT MIPS

Windows NT 4.

This page details how to install Windows NT 4.0 in QEMU. Windows NT 4.0 is an operating system created by Microsoft, released on July 31, 1996. Support ended in July 2006 for the Embedded version.

This article is for the x86 release of NT 4.0. There is also a MIPS version of Windows NT which runs in QEMU.

Prerequisites

QEMU

You'll need QEMU installed.

Windows NT 4.0 ISO

You'll need a Windows NT 4.0 ISO for this guide. You can use a physical disc or download the Workstation ISO from here.

Starting up

Installation

Open a command window and create a disk image for NT 4 like so:

qemu-img create -f qcow2 winnt4.img 1G

1G can be replaced with however big you want the hard drive to be (with G standing for Gigabytes). There is an annoying quirk with the NT 4 setup where it won't let you format drives bigger than 4 GB due to a limitation in the setup. You'll need to partition the drives using something like gparted if you want more space.

When that's done, run the following command:

qemu-system-i386 -hda winnt4.img -cdrom winnt4_iso_name.iso -device VGA -cpu pentium3 -m 128 -accel kvm -M pc,hpet=off -netdev user,id=lan -device pcnet,netdev=lan -rtc base=localtime -monitor stdio

The CPU is set to pentium3 here to prevent a bug that occurs in the NT 4 setup on newer CPUs which causes a BSOD.

We set the memory to 128 MB of RAM, but NT 4 can run on as little as 16 MB of RAM, but that's not recommended if you want to be running any programs.

The installation is pretty self explanatory. In the setup, skip creating an emergency repair disk, and choose the defaults for the Ethernet adapter. Say yes to using DHCP.

During the setup it will ask you to set your Display Properties, which requires a "test". This test is buggy on QEMU, and locks the OS up on some systems. Just hit OK and stick with 16 colors/640x480 for now.

At this point, if all went well, there'll be an option to restart the PC. Windows will reboot and you should be taken to the login screen. To login, go to the QEMU console and type sendkey ctrl-alt-delete. The username will be "Administrator" followed by whatever password you set during the setup (if any.)

VBEMP Installation Guide

In order to have more than the standard IBM VGA mode of 640x480 16 colors, you have to use the VBEMP driver in order to get access to higher resolutions and color depths.

The following is an simple guide on how to install it:

  1. Download vbempj.zip and extract it to it's own folder.
  2. On the desktop, right click and click Properties then navigate to the Settings tab.
  3. Click the "Display Type.." button, then click Change button then the "Have Disk..." button.
  4. Hit Browse button then select the vbemp4.inf file from the <vbempj folder>\VBE20\NT4\ directory.
  5. Select VBE Miniport - Standard PCI Graphics Adapter (VGA).
  6. Reboot

UniATA Installation Guide

This driver is required to be able to use DMA and have faster writing speeds on NT 4.0. Also it works on other NT versions such as 3.51.

  1. Download the UniATA driver itself.
  2. Navigate to the Control Panel and open the SCSI Adapters Control Panel Applet.
  3. Click Add Button then Have Disk.
  4. Select the uata_nt4.inf file from the <uniata folder>\NT4 directory.
  5. Select "Universal BusMaster ATA/ATAPI Driver" from the list.
  6. If asked for the UniATA.sys file, navigate to it then hit OK.
  7. Before rebooting, remove the default IDE controller from the SCSI Adapters list then Reboot.

< Windows Me | Windows 2000 > | Windows NT MIPS