QEMU/Installation and QEMU/Guests/Windows XP: Difference between pages

From Computernewb Wiki
(Difference between pages)
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
'''[[QEMU/Guests/Windows 2000|< Windows 2000]]''' | '''[[QEMU/Guests/Windows Vista|Windows Vista >]]'''
[[QEMU]] can be installed in many ways. The most common method is installing an already compiled binary, since it is a much simpler method of installation when compared to compiling it from the source code.
{{DISPLAYTITLE:How to install Windows XP in QEMU}}
[[File:QEMUXP.png|thumbnail|350px|Windows XP running in QEMU]]


This page details how to install Windows XP in QEMU. '''Windows XP''' is an operating system created by Microsoft, first released on August 24, 2001. It had several service packs and dozens of different variations. Support ended on April 8, 2014 for the regular version and April 9, 2019 for POSReady 2009.
==Linux==
Pretty much every major Linux distributions has QEMU in their repositories. Below is a list of example commands for various popular operating systems.


While this guide will work for every version and service pack, we will be using and strongly recommend using Windows XP Professional Service Pack 3, since it has the greatest application support.
{| class="wikitable"
|-
! Distribution
! Command
|-
| Arch Linux
| <code>pacman -S qemu</code>
|-
| CentOS/Fedora
| <code>dnf install -y qemu</code>
|-
| Debian/Ubuntu
| <code>apt install -y qemu</code> (Ubuntu 14.04+)<br><code>apt-get install -y qemu</code> (Ubuntu 12.04-)
|-
| Gentoo
| <code>emerge -av app-emulation/qemu</code>
|-
| openSUSE
| <code>zypper install qemu</code>
|-
| Slackware
| <code>slpkg -s sbo qemu</code>
|-
|}


==Windows==
==Prerequisites==
===QEMU===
The best place to grab Windows binaries is on [https://qemu.weilnetz.de/ Weilnetz]'s page, which are officially linked to on QEMU's official website. The site contains builds of the latest QEMU for 32-bit and 64-bit versions of Windows, and is confirmed to be working and up to date.
You'll need [[QEMU/Installation|QEMU]] installed.


===Windows XP ISO===
Alternatively, there is [http://lassauge.free.fr/qemu/QEMU_on_Windows.html Lassauge's] page, but it requires Cygwin to be installed and only provides 64-bit builds.
You'll need a Windows XP ISO for this guide. You can use a physical disc or download the [https://computernewb.com/isos/windows/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso vanilla (SP3) iso] here, or an [https://computernewb.com/isos/windows/Windows%20XP%20Professional%20SP3%20x86%20-%20Integral%20Edition%202022.9.9%20%28Vanilla%29.iso updated SP3 ISO with most updates slipstreamed].


==macOS==
==Starting up==
===Installation===
{| class="wikitable"
First, open a command window and create a disk image for the VM using a command like the following.
|-
! Distribution
! Command
|-
| Homebrew
| <code>brew install qemu</code>
|-
| MacPorts
| <code>port install qemu</code>
|}


<pre>qemu-img create -f qcow2 winxp.img 12G</pre>
The easiest way to get QEMU on macOS is by installing it with [https://brew.sh/ Homebrew], then by typing <code>brew install qemu</code>. It can also be installed through MacPorts.
'''12G''' can be replaced with however big you want the hard drive to be (with G standing for '''G'''igabytes). Since Windows XP is an older OS, it doesn't take up a lot of space. If you're planning to install a lot of applications and games, 30G should be decent enough.


When that's done, start up QEMU with a command like the following:
Alternatively, you can download 2.10.1 binaries from [http://www.mediafire.com/file/jvy54hdzjixzxbb/QEMU_2.10.1.zip this] page, which will work on 64-bit Macs and Mac OS 10.6 or higher. You can also download version 1.6.2 from [http://www.mediafire.com/file/5pk2j3a7d82app6/QEMU_1.6.2_Mac_OS_10.4_G5.zip here], which works on a PowerPC Mac. It requires Mac OS 10.4 or higher, and at least a PowerPC G5 CPU.
<pre>qemu-system-i386 -m 512M -hda winxp.img -device VGA,vgamem_mb=64 -cpu host -accel kvm -M pc -netdev user,id=lan -device rtl8139,netdev=lan -usb -device usb-tablet -rtc base=localtime -monitor stdio</pre>


This adds a VGA card (with 64 MB of VRAM, to allow high resolutions and color depth), KVM acceleration (allowing the OS to run at native speeds), an RTL8139 internet adapter, and a USB tablet for smooth mouse input.
==BSD==
{| class="wikitable"
|-
! Distribution
! Command
|-
| FreeBSD
| <code>pkg install qemu</code>
|-
| OpenBSD
| <code>pkg_add -i qemu</code>
|-
|}


We set the memory to 512 MB, but it can technically run on as low as 96 MB of RAM or as high as 4 GB of RAM. Since XP is a 32-bit OS it can't recognize more than 4 GB, though there is a 64-bit version which removes this limitation. (There is a PAE patch that also removes this limitation, but programs can't use more than 4 GB regardless.)
QEMU can also be installed and compiled on most BSD-based operating systems.


If you use Integral Edition, you can get better performance by switching <code>-M pc</code> with <code>-M q35</code>.
==Compiling from source==
*[https://gitlab.com/qemu-project/qemu/-/blob/master/README.rst See this page for more information.]


From here, the installation is pretty straightforward. Agree to the license, (quick) format the disk, and wait for it to install. The OS should install pretty quick on newer systems.

===Installing Superium and MyPal===
It is highly recommended to install Supermium or MyPal, which are modern browsers for Windows XP. Supermium is based on Chromium 122, while MyPal is based on Firefox 68. Supermium is recommended for beefy systems, while older systems or systems with lower RAM should use MyPal.

====Supermium====
Supermium needs at least XP SP1, SS3, and around 2 GB of RAM to function properly.

[[File:SupremiumXP.png|thumb|right|alt=A screenshot of Supermium running on XP|Supermium running]]
# Open Internet Explorer (or whatever browser you have installed)
# Navigate to <code>http://win32subsystem.live/supermium/legacy/</code>
# Download the 32-bit Setup and run it
# You will get a few options in the setup. All of them are optional but I recommend installing the Noto Emoji font and creating shortcuts for Supermium. Hit OK
# If all went well, Supermiumshould be working!

====MyPal====
[[File:MyPalXP.png|thumb|right|alt=A screenshot of MyPal running on XP|MyPal running]]
# Download the [https://computernewb.com/isos/software/mypal68.iso MyPal 68 ISO] or download [https://github.com/Feodor2/Mypal68/releases/download/68.13.8b/mypal-68.13.8.en-US.win32.zip from GitHub]
# Switch to the MyPal ISO by running a command similar to the following in the QEMU console: <pre>change ide1-cd0 /path/to/mypal68.iso</pre>
# Open the CD and extract the ZIP file anywhere
# Navigate to the MyPal folder and open mypal.exe
# If all went well, it should be running now!

[[Category:Windows installation guides]]
[[Category:OS Installation guides]]
[[Category:Operating systems]]
[[Category:QEMU guides]]
[[Category:QEMU guides]]

[[Category:Tutorials]]
'''[[QEMU/Guests/Windows 2000|< Windows 2000]]''' | '''[[QEMU/Guests/Windows Vista|Windows Vista >]]'''

Revision as of 04:39, 14 April 2024

< Windows 2000 | Windows Vista >

Windows XP running in QEMU

This page details how to install Windows XP in QEMU. Windows XP is an operating system created by Microsoft, first released on August 24, 2001. It had several service packs and dozens of different variations. Support ended on April 8, 2014 for the regular version and April 9, 2019 for POSReady 2009.

While this guide will work for every version and service pack, we will be using and strongly recommend using Windows XP Professional Service Pack 3, since it has the greatest application support.

Prerequisites

QEMU

You'll need QEMU installed.

Windows XP ISO

You'll need a Windows XP ISO for this guide. You can use a physical disc or download the vanilla (SP3) iso here, or an updated SP3 ISO with most updates slipstreamed.

Starting up

Installation

First, open a command window and create a disk image for the VM using a command like the following.

qemu-img create -f qcow2 winxp.img 12G

12G can be replaced with however big you want the hard drive to be (with G standing for Gigabytes). Since Windows XP is an older OS, it doesn't take up a lot of space. If you're planning to install a lot of applications and games, 30G should be decent enough.

When that's done, start up QEMU with a command like the following:

qemu-system-i386 -m 512M -hda winxp.img -device VGA,vgamem_mb=64 -cpu host -accel kvm -M pc -netdev user,id=lan -device rtl8139,netdev=lan -usb -device usb-tablet -rtc base=localtime -monitor stdio

This adds a VGA card (with 64 MB of VRAM, to allow high resolutions and color depth), KVM acceleration (allowing the OS to run at native speeds), an RTL8139 internet adapter, and a USB tablet for smooth mouse input.

We set the memory to 512 MB, but it can technically run on as low as 96 MB of RAM or as high as 4 GB of RAM. Since XP is a 32-bit OS it can't recognize more than 4 GB, though there is a 64-bit version which removes this limitation. (There is a PAE patch that also removes this limitation, but programs can't use more than 4 GB regardless.)

If you use Integral Edition, you can get better performance by switching -M pc with -M q35.

From here, the installation is pretty straightforward. Agree to the license, (quick) format the disk, and wait for it to install. The OS should install pretty quick on newer systems.

Installing Superium and MyPal

It is highly recommended to install Supermium or MyPal, which are modern browsers for Windows XP. Supermium is based on Chromium 122, while MyPal is based on Firefox 68. Supermium is recommended for beefy systems, while older systems or systems with lower RAM should use MyPal.

Supermium

Supermium needs at least XP SP1, SS3, and around 2 GB of RAM to function properly.

A screenshot of Supermium running on XP
Supermium running
  1. Open Internet Explorer (or whatever browser you have installed)
  2. Navigate to http://win32subsystem.live/supermium/legacy/
  3. Download the 32-bit Setup and run it
  4. You will get a few options in the setup. All of them are optional but I recommend installing the Noto Emoji font and creating shortcuts for Supermium. Hit OK
  5. If all went well, Supermiumshould be working!

MyPal

A screenshot of MyPal running on XP
MyPal running
  1. Download the MyPal 68 ISO or download from GitHub
  2. Switch to the MyPal ISO by running a command similar to the following in the QEMU console:
    change ide1-cd0 /path/to/mypal68.iso
  3. Open the CD and extract the ZIP file anywhere
  4. Navigate to the MyPal folder and open mypal.exe
  5. If all went well, it should be running now!

< Windows 2000 | Windows Vista >