QEMU/Guests/Windows 10: Difference between revisions
computernewb>Undefishin No edit summary |
Glitchy404 (talk | contribs) No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
'''[[How_to_install_Windows_8.1_in_QEMU|< Windows 8.1]]''' | '''[[How_to_install_Windows_11_in_QEMU|Windows 11 >]]''' |
'''[[How_to_install_Windows_8.1_in_QEMU|< Windows 8.1]]''' | '''[[How_to_install_Windows_11_in_QEMU|Windows 11 >]]''' |
||
{{DISPLAYTITLE:How to install Windows 10 in QEMU}} |
|||
[[File:10Desktop.png|thumb|The Windows 10 desktop in build 19042.962.]] |
[[File:10Desktop.png|thumb|The Windows 10 desktop in build 19042.962.]] |
||
'''Windows 10''' is an operating system created by Microsoft, released in 2015. It is the second latest Windows version, behind Windows 11. |
'''Windows 10''' is an operating system created by Microsoft, released in 2015. It is the second latest Windows version, behind Windows 11. |
||
Line 19: | Line 19: | ||
When that's done, run the following command: |
When that's done, run the following command: |
||
<pre>qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -enable-kvm -cpu host -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -localtime</pre> |
<pre>qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -enable-kvm -cpu host -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime</pre> |
||
Or if running without root or virtualization: |
Or if running without root or virtualization: |
||
<pre>qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -cpu qemu64 -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -localtime</pre> |
<pre>qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -cpu qemu64 -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime</pre> |
||
4 gigabytes of memory is highly recommended for optimal performance, but you can use 2 GB if absolutely necessary. Windows 10 32-bit does boot/run on 512 MB of RAM, but it is unresponsive and virtually unusable. Keep it 4 GB at minimum. |
4 gigabytes of memory is highly recommended for optimal performance, but you can use 2 GB if absolutely necessary. Windows 10 32-bit does boot/run on 512 MB of RAM, but it is unresponsive and virtually unusable. Keep it 4 GB at minimum. |
||
Line 29: | Line 29: | ||
====After installation==== |
====After installation==== |
||
<pre>qemu-system-x86_64 -hda win10.img -boot c -enable-kvm -cpu host -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -localtime</pre> |
<pre>qemu-system-x86_64 -hda win10.img -boot c -enable-kvm -cpu host -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime</pre> |
||
Or if running without root or virtualization: |
Or if running without root or virtualization: |
||
<pre>qemu-system-x86_64 -hda win10.img -boot c -cpu qemu64 -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -localtime</pre> |
<pre>qemu-system-x86_64 -hda win10.img -boot c -cpu qemu64 -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime</pre> |
||
====Setting up your VM==== |
|||
After going through the OOBE, it is recommended to go through gpedit.msc and manage some policies. If you have an AD (Active Directory) server, you can hook up your VM to that and manage policies there. If you want, you can also "debloat" the OS making it run slightly faster. |
|||
[[Category:Windows installation guides]] |
[[Category:Windows installation guides]] |
Latest revision as of 13:00, 6 September 2024
Windows 10 is an operating system created by Microsoft, released in 2015. It is the second latest Windows version, behind Windows 11.
Running on CollabVM
Windows 10 works alright, but can be somewhat slow on QEMU even with KVM turned on. Disabling and uninstalling unnecessary background applications helps fix this problem. VM 3 used to run Windows 10 but now it's gone.
Windows 10 is extremely slow without virtualization, so if you don't have root/KVM/Xen, speeds are not optimal.
Recommended version: Windows 10 Enterprise LTSB 2016
Starting up
QEMU
Pre-installation
Make a qcow2 image (or a raw image if you want) by typing
qemu-img create -f qcow2 win10.img 40G
Windows 10 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:
qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -enable-kvm -cpu host -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime
Or if running without root or virtualization:
qemu-system-x86_64 -hda win10.img -cdrom win10_iso_name.iso -boot d -cpu qemu64 -m 4G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime
4 gigabytes of memory is highly recommended for optimal performance, but you can use 2 GB if absolutely necessary. Windows 10 32-bit does boot/run on 512 MB of RAM, but it is unresponsive and virtually unusable. Keep it 4 GB at minimum.
You'll also want to uninstall unnecessary applications and disable Windows Defender, so the VM won't be really slow.
After installation
qemu-system-x86_64 -hda win10.img -boot c -enable-kvm -cpu host -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime
Or if running without root or virtualization:
qemu-system-x86_64 -hda win10.img -boot c -cpu qemu64 -m 2G -vga std -net nic,model=e1000 -net user -usbdevice tablet -rtc base=localtime
Setting up your VM
After going through the OOBE, it is recommended to go through gpedit.msc and manage some policies. If you have an AD (Active Directory) server, you can hook up your VM to that and manage policies there. If you want, you can also "debloat" the OS making it run slightly faster.