QEMU/Guests/Windows 7 and File:MacOS Live.png: 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 Vista|< Windows Vista]]''' | '''[[QEMU/Guests/Windows 8|Windows 8 >]]'''
{{DISPLAYTITLE:How to install Windows 7 in QEMU}}
[[File:7Desktop.png|thumb|The Windows 7 desktop.]]
'''Windows 7''' is an operating system created by Microsoft, released October 22, 2009. Support ended on January 14, 2020.


==Running on CollabVM==
Windows 7 works great as a VM for CollabVM. VM 1 on CollabVM runs Windows 7 Ultimate x64 and has been running Windows 7 for around 2 years.
Windows 7 is, however, painfully slow without virtualization, so if you don't have a server with virtualization, you may want to go with [[Windows XP]] instead.
'''Recommended version''': Windows 7 Ultimate 64-bit with Service Pack 1
==Starting up==
===QEMU===
====Pre-installation====
Make a qcow2 image (or a raw image if you want) by typing
<pre>qemu-img create -f qcow2 win7.img 40G</pre>
Windows 7 requires some disk space, you can make this 20 gigabytes if you want but it is recommended to have at least 40 GB for users to install programs onto.
When that's done, run the following command:
<pre>qemu-system-i386 -hda win7.img -cdrom win7_iso_name.iso -boot d -enable-kvm -cpu host -m 1G -vga std -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
Or if running without root or virtualization:
<pre>qemu-system-i386 -hda win7.img -cdrom win7_iso_name.iso -boot d -cpu qemu64 -m 1G -vga std -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
If you're running 64-bit Windows 7, you're going to want to up the memory up to 2 gigabytes. Windows 7 uses memory better than Vista, although it still performs pretty badly under only 512 MB of RAM. If you're on a server with small resources (but with virtualization), you may want to take a look at [[Tiny7]], which is optimized for lower-end computers.
If you don't have virtualization enabled, then it is highly recommended to go with Tiny7 and turn the Aero theme off. Like Windows Vista, this helps with the load slightly (but not much). To do that in Windows 7, right click the desktop, click "Personalization", select the "Windows Classic" theme, and close the window. Also, if you don't have virtualization enabled, the 64-bit version of Windows DOES work, but is hideously slow, so go with 32-bit Windows 7 instead.
====After installation====
<pre>qemu-system-i386 -hda win7.img -boot c -enable-kvm -cpu host -m 1G -vga std -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
Or if running without root or virtualization:
<pre>qemu-system-i386 -hda win7.img -boot c -cpu qemu64 -m 1G -vga std -net nic,model=rtl8139 -net user -usbdevice tablet -localtime</pre>
[[Category:Windows installation guides]]
[[Category:OS Installation guides]]
[[Category:Operating systems]]
[[Category:QEMU guides]]
'''[[How_to_install_Windows_Vista_in_QEMU|< Windows Vista]]''' | '''[[How_to_install_Windows_8_in_QEMU|Windows 8 >]]''' | '''''[[How_to_install_Windows_8.1_in_QEMU|Windows 8.1]]'''''

Latest revision as of 23:03, 2 April 2023