Skip to content

Latest commit

 

History

History
211 lines (143 loc) · 8.68 KB

File metadata and controls

211 lines (143 loc) · 8.68 KB

Microsoft Windows NT guest setup

1. Windows NT 3.1

1.1 Installing using QEMU

  1. Install MS-DOS and Oak CD-ROM Driver.
  2. Create 4 blank floppy disk images:
  • run qemu-img create -f raw floppy.img 1440K
  • mount (-fda floppy.img) and run format A: in a VM
  1. Run QEMU with the following settings for installation:
qemu-system-i386 -m 64 -drive file=hdd.img,format=raw -cpu pentium -M pc,acpi=off -cdrom InstallCD.iso
  1. Run xcopy /v <CD-ROM letter>:\I386\ C:\install\ in a VM to copy all files, disable the CD-ROM driver.
  2. Run QEMU with the following settings:
qemu-system-i386 -m 64 -drive file=hdd.img,format=raw -cpu pentium -M pc,acpi=off
  1. Run C:\install\winnt /F /C in a VM.
  2. Follow the setup instructions. To change floppy disk, press Ctrl+Alt+2 to switch to the QEMU Monitor, run change floppy0 /path/to/new_floppy_image and press Ctrl+Alt+1 to switch to VGA.

2. Windows NT 3.51

2.1 Installing

Note

In newer versions of QEMU, the Windows Setup may not work, you can use an older version of QEMU, PCem, 86Box or PCBox instead.

  1. If you install via MS-DOS, install the Oak CD-ROM Driver and run <CD-ROM letter>:\I386\WINNT /B.
  2. Follow the setup instructions.
  3. After installing, download NT 3.51 SuperPack (here or here), unpack the archive into a Windows and copy files from FAT32 (SYS\FAT32) and RENEW (SYS\RENEW) folders in C:\WINNT35\system32\drivers with replacing.

2.2 Enabling networking

  1. Open "Control Panel" > "Network", install Windows NT Networking (installation CD required).
  2. In "Network Adapter Card Detection", press Continue three times, set Network Adapter Card: Novell NE2000 Compatible Adapter.
  3. Set the following settings and click Continue:
IRQ Level: 10
I/O Port Address: 0x300
  1. In "Bus Location", press OK. Check the boxes "TCP/IP Transport" and "Enable Automatic DHCP Configuration" in the next window.
  2. In "TCP/IP Configuration", check the box "Enable Automatic DHCP Configuration".
  3. Restart the VM.

3. Windows NT 4.0

Recommended version: Windows NT 4.0 SP1

3.1 Installing using QEMU

  1. Run QEMU with the following settings for installation:
qemu-system-i386 -m 64 -drive file=hdd.img,format=raw -cdrom InstallCD.iso -cpu pentium -M pc,acpi=off
  1. On setup startup, press F5 and select "Standard PC".
  2. Follow the setup instructions.

3.2 Running in v86

Due to a problem with CPUID, you need to add cpuid_level: 2 and acpi: false to the V86 constructor (not supported in the UI):

var emulator = new V86({
    ...
    cpuid_level: 2,
    acpi: false
});

3.3 Enable True Color

Source: https://computernewb.com/wiki/QEMU/Guests/Windows_NT_4.0

  1. Download driver (version 2010.07.09) from https://bearwindows.zcm.com.au/vbemp.htm and unpack into Windows.
  2. Right-click on the Desktop, click on "Properties".
  3. Click "Settings" > "Display Type" > "Change".
  4. Press "Have disk", click "Browse" and go to folder with unpacked driver. Go to VBE20\NT4, then select vbemp4.inf inside.
  5. Select "AnaPa Corp VBE Miniport" adapter, press "Yes" and "OK".
  6. After installing, restart the VM.

3.4 Enabling absolute mouse positioning

  1. Download VMware Tools 6.0 and mount the ISO to the VM.
  2. Open Start menu, select "Settings" -> "Control Panel".
  3. Open "Mouse", press "General" -> "Change"
  4. Press "Have disk" and "Browse". Go to <CD letter>:\program files\VMware\VMware Tools\Drivers\mouse\winnt and select vmmouse.inf.
  5. Press "OK" and restart the VM.

4. Windows 2000/XP

4.1 Installing

Recommended versions:

  • Windows 2000 SP4
  • Windows XP SP3

4.1.1 Installing using QEMU

  1. Run QEMU with the following settings for installation:
qemu-system-i386 -m 512 -drive file=hdd.img,format=raw -cdrom InstallCD.iso

Optional:

  • add -device sb16 to enable sound
  • add -nic user,model=ne2k_pci or -device ne2k_pci,netdev=<...> to enable networking
  1. Follow the setup instructions.
  2. This step fixes the error Uncaught RangeError: Maximum call stack size exceeded in Chromium during Windows 2000/XP startup in v86.

After installation, change the computer type to "Standard PC" as described here:

  1. Open Start menu, right-click on "My Computer", select "Manage"
  2. Open Device Manager, open Computer, right-click on "ACPI Uniprocessor PC"
  3. Select "Update Driver..." > "No, not this time"
  4. Select "Install from a list or specific location (Advanced)" > Next > "Don't search. I will choose the driver to install."
  5. Choose "Standard PC", press Next > Finish.
  6. Restart the VM, follow multiple "Found New Hardware Wizard" dialogs with default options.

4.1.2 Installing using v86

  1. Go to https://copy.sh/v86/ and set the following settings:
Option Value/File
Memory size 256 - 1024 MB
CD image Installation CD
Hard disk image Create an empty disk (recommended size: 1024 - 2048 MB)
  1. Boot the emulator, press F5 and select "Standard PC".
  2. Follow the setup instructions.
  3. Shut down Windows and export the HD image (press the "Get hard disk image" button at the top).

4.2 Enabling True Color (for Windows 2000)

Note

This driver doesn't support DirectX, DirectDraw and OpenGL.

  1. Download driver from https://bearwindows.zcm.com.au/vbemp.htm and unpack into Windows.
  2. Open Start menu, right-click on "My Computer", select "Manage"
  3. Open Device Manager, open Computer and right-click on "Video Controller".
  4. Press "Properties", select "Driver" tab and press "Update Driver".
  5. Select "Display a list of the known drivers for this device...", choose "Display adapters".
  6. Press "Have Disk...", click "Browse" and go to folder with unpacked driver. Go to VBE20\W2K\PNP, then select vbemppnp.inf inside.
  7. Select "VBE Miniport" adapter, press "Yes" and "Next".
  8. After installing, restart the VM.

4.3 Enabling sound

Source: #1049

  1. Right-click on "My computer" > "System Properties", select "Hardware" tab, press "Hardware Wizard"
  2. Press "Next" > "Add/Troubleshoot a device" > "Add a new device"
  3. Select "No, I want to select the hardware from a list" > "Sound, video and game controllers"
  4. Select the following options and press "Next":
Hardware type: Sound, video and game cotrollers
Manufacturers: Creative Technology Ltd.
Models: Sound Blaster 16 or AWE32 or compatible (WDM)

Note

For Windows Server 2003: you will need to extract the ctlsb16.sys and wdma_ctl.inf files from the Windows XP installation CD (or download them here), then press "Have disk" and select the wdma_ctl.inf file. After installation, enable the Windows Audio service.

5. Windows Vista and newer

5.1 Installing using QEMU

  1. Run QEMU with the following settings for installation:
qemu-system-i386 -m 1024 -drive file=hdd.img,format=raw -cdrom InstallCD.iso

Optionally add -accel kvm (for Linux host), -accel whpx (for Windows host) or -accel hvf (for MacOS host) to use hypervisor acceleration.

  1. Follow the setup instructions.

5.2 Running in v86

Enable ACPI and set the memory size to 512 MB or more.

5.3 Enabling networking (ne2k)

Source: https://phaq.phunsites.net/2007/05/21/vista-on-xen-using-ne2000-in-favor-to-rtl8139/

  1. Download https://phaq.phunsites.net/files/2007/05/drivercd.iso_.zip, unpack the archive, mount the ISO to the VM (-cdrom path/to/drivercd.iso or change ide1-cd0 path/to/drivercd.iso in QEMU Monitor), unpack the archive from CDROM into Windows.
  2. Open Start Menu > "Control Panel" > "System" > "Device Manager"
  3. Right-click on "Ethernet Controller" > "Update Driver Software", press "Browse my computer for driver software".
  4. Click "Browse" and go to folder with unpacked driver, select WIN2000 folder, press "Install this driver software anyway".