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

(Difference between pages)
Jump to navigation Jump to search
no edit summary
No edit summary
 
No edit summary
 
'''[[How_to_install_Windows_2000_in_QEMUHow_to_install_Windows_XP_in_QEMU|< Windows 2000XP]]''' | '''[[How_to_install_Windows_Longhorn_in_QEMUHow_to_install_Windows_Vista_in_QEMU|Windows LonghornVista >]]'''
{{DISPLAYTITLE:How to install Windows XPLonghorn in QEMU}}
[[File:winxp4051Desktop.jpgpng|thumbnail|350pxthumb|Windows XPLonghorn 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==
Windows Longhorn builds are usually unstable, but they work fine with 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.
 
==Before you begin==
'''Recommended version''': Windows XP Professional with Service Pack 3
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.
 
==Starting upQEMU==
 
===QEMU===
====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
<pre>qemu-img create -f qcow2 winxplh.img 10G20G</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.
 
Assuming that the build you downloaded is 32-bit, you will run these commands:
'''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.
<pre>qemu-system-i386 -hda winxplh.img -cdrom winxp_iso_namelonghorn_iso_name.iso -boot d -enable-accel kvm -cpu host -m 5121G -usbdevice tablet -vga cirrus -netrtc nic,modelbase=rtl8139 "YYYY-net user MM-usbdevice tablet -localtimeDD",clock=vm</pre>
 
Or if running without root or virtualization:
When that's done, run the following command:
<pre>qemu-system-i386 -hda winxplh.img -cdrom winxp_iso_namelonghorn_iso_name.iso -boot d -cpu qemu64epyc -m 5121G -usbdevice tablet -vga cirrus -netrtc nic,modelbase=rtl8139 "YYYY-net user MM-usbdevice tablet -localtimeDD",clock=vm</pre>
 
* <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 -enable-kvm -cpu host -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
 
1 gigabytes of memory is highly recommended for optimal performance, but you can use 512 megabytes if absolutely necessary.
Or if running without root or virtualization:
<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.
 
====After installation====
<pre>qemu-system-i386 -hda winxplh.img -cdrom longhorn_iso_name.iso -boot c -enable-accel kvm -cpu host -m 5121G -usbdevice tablet -vga cirrus -netrtc nic,modelbase=rtl8139 "YYYY-net user MM-usbdevice tablet -localtimeDD",clock=vm</pre>
 
Or if running without root or virtualization:
<pre>qemu-system-i386 -hda winxplh.img -cdrom longhorn_iso_name.iso -boot c -cpu qemu64epyc -m 5121G -usbdevice tablet -vga cirrus -netrtc nic,modelbase=rtl8139 "YYYY-net user MM-usbdevice tablet -localtimeDD",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:QEMU guides]]
 
'''[[How_to_install_Windows_2000_in_QEMUHow_to_install_Windows_XP_in_QEMU|< Windows 2000XP]]''' | '''[[How_to_install_Windows_Longhorn_in_QEMUHow_to_install_Windows_Vista_in_QEMU|Windows LonghornVista >]]'''

Navigation menu