QEMU/Guests/Windows XP and QEMU/Guests/Windows Longhorn: 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:
'''[[How_to_install_Windows_2000_in_QEMU|< Windows 2000]]''' | '''[[How_to_install_Windows_Longhorn_in_QEMU|Windows Longhorn >]]'''
'''[[How_to_install_Windows_XP_in_QEMU|< Windows XP]]''' | '''[[How_to_install_Windows_Vista_in_QEMU|Windows Vista >]]'''
{{DISPLAYTITLE:How to install Windows XP in QEMU}}
{{DISPLAYTITLE:How to install Windows Longhorn in QEMU}}
[[File:winxp.jpg|thumbnail|350px|Windows XP]]
[[File:4051Desktop.png|thumb|Windows Longhorn build 4051.]]
 
'''Windows Longhorn''' is the codename for Windows Vista, It's first (leaked) build was compiled on September 23rd, 2002.
'''Windows XP''' is an operating system created by Microsoft, released on August 24, 2001. Support ended in April 8, 2014 but this varies based on the version your using. Windows XP has several different editions (such as Home Edition, Tablet PC edition, Media Center edition, Embedded, etc). This article covers every variant of Windows XP including POSReady 2009 which is supported until 2019.
 
==Running on CollabVM==
==Running on CollabVM==
Windows XP works great as a VM for CollabVM. A few programs do not work on it but thanks to its still large popularity this usually isn't a big problem. VM 2 on the official CollabVM website runs Windows XP with Service Pack 3 installed. Both Home and Professional are known to work perfectly fine in QEMU and CollabVM.
Windows Longhorn builds are usually unstable, but they work fine with CollabVM.
 
'''Recommended version''': Windows XP Professional with Service Pack 3


==Starting up==
==Before you begin==
Mostly all Longhorn builds have a timebomb, you can set the date by adding <pre>-rtc base="YYYY-MM-DD",clock=vm</pre>, replace the YYYY with the year, MM with the month and DD with the day. For example, using <pre>-rtc base="2002-09-23",clock=vm</pre> would set the date to September 23rd, 2002 which is what you want if you are going to be hosting 3683.


===QEMU===
==QEMU==
====Pre-installation====
====Pre-installation====
[[File:5259Glitch.PNG|thumb|Setup if you do not add -vga cirrus]]
Make a qcow2 image (or a raw image if you want) by typing
Make a qcow2 image (or a raw image if you want) by typing
<pre>qemu-img create -f qcow2 winxp.img 10G</pre>
<pre>qemu-img create -f qcow2 lh.img 20G</pre>
Windows Longhorn, just like XP requires some disk space, you can make this 10 gigabytes if you want, but it is recommended to have at least 20 GB for users to install programs onto.


'''10G''' can be replaced with however big you want the hard drive to be (with G standing for Gigabytes). Windows XP is not really that big of an OS and it can even be installed on 2 GB of space if you turn hibernation off, but 5 GB is recommended as a minimum if you want to be able to install several programs.
Assuming that the build you downloaded is 32-bit, you will run these commands:
<pre>qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot d -accel kvm -cpu host -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm</pre>


When that's done, run the following command:
Or if running without root or virtualization:
 
<pre>qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot d -cpu epyc -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm</pre>
<pre>qemu-system-i386 -hda winxp.img -cdrom winxp_iso_name.iso -boot d -enable-kvm -cpu host -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>


Or if running without root or virtualization:
* <b>Warning: Removing "-vga cirrus" WILL make the setup look messed up in terms of graphics.</b>
<pre>qemu-system-i386 -hda winxp.img -cdrom winxp_iso_name.iso -boot d -cpu qemu64 -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>


We run with 512 MB of RAM, but this can be lowered to 256 MB if your server is low on resources. It also runs on as low as 64 MB of RAM but this is unrecommended. If you cannot allocate more than 128 MB of RAM, you may want to run [[Windows 2000]] instead, which runs better on 128 MB.
1 gigabytes of memory is highly recommended for optimal performance, but you can use 512 megabytes if absolutely necessary.


====After installation====
====After installation====
<pre>qemu-system-i386 -hda winxp.img -boot c -enable-kvm -cpu host -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
<pre>qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot c -accel kvm -cpu host -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm</pre>


Or if running without root or virtualization:
Or if running without root or virtualization:
<pre>qemu-system-i386 -hda winxp.img -boot c -cpu qemu64 -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
<pre>qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot c -cpu epyc -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm</pre>
 
====Setting up your VM====
 
After setup, install a version of Firefox. For me, 10.0 worked fine for me. Mypal does not work and so does any other modern version of Firefox (even the latest one that supports XP!)


[[Category:Windows installation guides]]
[[Category:Windows installation guides]]
Line 39: Line 41:
[[Category:QEMU guides]]
[[Category:QEMU guides]]


'''[[How_to_install_Windows_2000_in_QEMU|< Windows 2000]]''' | '''[[How_to_install_Windows_Longhorn_in_QEMU|Windows Longhorn >]]'''
'''[[How_to_install_Windows_XP_in_QEMU|< Windows XP]]''' | '''[[How_to_install_Windows_Vista_in_QEMU|Windows Vista >]]'''

Revision as of 10:53, 27 July 2022

< Windows XP | Windows Vista >

Windows Longhorn build 4051.

Windows Longhorn is the codename for Windows Vista, It's first (leaked) build was compiled on September 23rd, 2002.

Running on CollabVM

Windows Longhorn builds are usually unstable, but they work fine with CollabVM.

Before you begin

Mostly all Longhorn builds have a timebomb, you can set the date by adding

-rtc base="YYYY-MM-DD",clock=vm

, replace the YYYY with the year, MM with the month and DD with the day. For example, using

-rtc base="2002-09-23",clock=vm

would set the date to September 23rd, 2002 which is what you want if you are going to be hosting 3683.

QEMU

Pre-installation

Setup if you do not add -vga cirrus

Make a qcow2 image (or a raw image if you want) by typing

qemu-img create -f qcow2 lh.img 20G

Windows Longhorn, just like XP requires some disk space, you can make this 10 gigabytes if you want, but it is recommended to have at least 20 GB for users to install programs onto.

Assuming that the build you downloaded is 32-bit, you will run these commands:

qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot d -accel kvm -cpu host -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm

Or if running without root or virtualization:

qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot d -cpu epyc -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm
  • Warning: Removing "-vga cirrus" WILL make the setup look messed up in terms of graphics.

1 gigabytes of memory is highly recommended for optimal performance, but you can use 512 megabytes if absolutely necessary.

After installation

qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot c -accel kvm -cpu host -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm

Or if running without root or virtualization:

qemu-system-i386 -hda lh.img -cdrom longhorn_iso_name.iso -boot c -cpu epyc -m 1G -usbdevice tablet -vga cirrus -rtc base="YYYY-MM-DD",clock=vm

Setting up your VM

After setup, install a version of Firefox. For me, 10.0 worked fine for me. Mypal does not work and so does any other modern version of Firefox (even the latest one that supports XP!)

< Windows XP | Windows Vista >