{"id":67476,"date":"2024-12-23T12:13:16","date_gmt":"2024-12-23T11:13:16","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=67476"},"modified":"2024-12-23T12:13:16","modified_gmt":"2024-12-23T11:13:16","slug":"setup-windows-in-qemu-on-linux-alternative-to-virtualbox","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/","title":{"rendered":"Setup Windows in Qemu on Linux, alternative to VirtualBox"},"content":{"rendered":"<p>Run Windows 11 with Qemu on Linux.<\/p>\n<p><!--more--><\/p>\n<p>On my laptop runs Linux, I can do most of the stuff, when I am on the road. For some things I can use Wine, but there are exceptions. Some applications only run on Windows.<\/p>\n<p>My first choice always was VirtualBox, but recently I ran into a some problems. The virtual machine would just crash and other strange things. So I looked a Qemu which seems to be more then just an alternative.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Installation_Qemu_and_Virtual_Machine_Manager\" >Installation Qemu and Virtual Machine Manager<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Create_virtual_machines\" >Create virtual machines<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Installation_Windows_11\" >Installation Windows 11<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Problems_with_Windows_10\" >Problems with Windows 10<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Configuration\" >Configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Installation_Guest_Additions\" >Installation Guest Additions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ekiwi-blog.de\/en\/67476\/setup-windows-in-qemu-on-linux-alternative-to-virtualbox\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installation_Qemu_and_Virtual_Machine_Manager\"><\/span>Installation Qemu and Virtual Machine Manager<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Qemu itself is only a command line software, to manage and run the virtual machines. The central configuration is done as an XML file. For more comfort we also install the &#8220;Virtual Machine Manager&#8221;.<\/p>\n<p>Lets begin with the installation.<\/p>\n<pre>\r\nsudo apt update\r\nsudo apt install qemu-system qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager\r\n<\/pre>\n<p>After a restart we can now use Qemu.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Create_virtual_machines\"><\/span>Create virtual machines<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can now use the &#8220;Virtual Machine Manager&#8221; to configure and setup virtual machines.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1-1.png\" alt=\"\" width=\"705\" height=\"292\" class=\"aligncenter size-full wp-image-67429\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1-1.png 705w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_1-1-300x124.png 300w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/p>\n<p>As the first step, we can select the source of our operating system. You can choose between different options, like ISO file, network, FTP.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2-1.png\" alt=\"\" width=\"511\" height=\"541\" class=\"aligncenter size-full wp-image-67433\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2-1.png 511w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_2-1-283x300.png 283w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/p>\n<p>We select ISO file, for that we have downloaded an ISO file of Windows 11. We cannot select the file directly, we have to select a pool containing the ISO file. For that we copy the ISO file to an existing one or create a new one.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3.webp\" alt=\"\" width=\"799\" height=\"631\" class=\"aligncenter size-full wp-image-67437\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3.webp 799w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3-300x237.webp 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3-768x607.webp 768w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_3-100x80.webp 100w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/p>\n<p>In the next steps we configure the harddisk size, the RAM size and the number of CPUs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4.png\" alt=\"\" width=\"1069\" height=\"567\" class=\"aligncenter size-full wp-image-67441\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4.png 1069w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4-300x159.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4-1024x543.png 1024w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_4-768x407.png 768w\" sizes=\"auto, (max-width: 1069px) 100vw, 1069px\" \/><\/p>\n<p>In the last step, we configure the network. In most cases NAT is the best choice, which allows the VM to access the internet, but not your home network or other machines in it directly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5.png\" alt=\"\" width=\"526\" height=\"557\" class=\"aligncenter size-full wp-image-67445\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5.png 526w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_5-283x300.png 283w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Installation_Windows_11\"><\/span>Installation Windows 11<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The Windows installations starts, it just works the usual way. We go through the steps and install Windows.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-1.png\" alt=\"\" width=\"1048\" height=\"877\" class=\"aligncenter size-full wp-image-67449\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-1.png 1048w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-1-300x251.png 300w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-1-1024x857.png 1024w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_6-1-768x643.png 768w\" sizes=\"auto, (max-width: 1048px) 100vw, 1048px\" \/><\/p>\n<p>TPM and other things for Windows 11 are no problem. We can pass through the computers TPM or emulate this functionality.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Problems_with_Windows_10\"><\/span>Problems with Windows 10<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Windows 10 might give you problems. In our tests the network was not working, because the emulated network card did not work in Windows. This seems to be a problem in the current version of Qemu. May this is fixed in future version, but for now its annoying.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7-1.png\" alt=\"\" width=\"623\" height=\"438\" class=\"aligncenter size-full wp-image-67453\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7-1.png 623w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_7-1-300x211.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Configuration\"><\/span>Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The configuration in &#8220;Virtual Maschine Manager&#8221; offers a lot of functions and works similar to the UI of VirtualBox. In the background the XML configuration file is edited. Some things are more complicated than VirtualBox though.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_8.webp\" alt=\"\" width=\"700\" height=\"609\" class=\"aligncenter size-full wp-image-67457\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_8.webp 700w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_8-300x261.webp 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Installation_Guest_Additions\"><\/span>Installation Guest Additions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Similar to VirtualBox there are guest additions that can be installed. They deliver similar functions, like dynamical display resolution, Drag &#038; Drop and a shared clipboard.<\/p>\n<p>The installation is not simply possible via the menu, but we download it directly from the Internet.<\/p>\n<p>We have to be a little careful with the configuration, as I once managed to make the <a href=\"https:\/\/ekiwi-blog.de\/en\/67205\/qemu-guest-extensions-in-windows-no-longer-work\/\">guest extensions inoperable<\/a>.<\/p>\n<p>You can download the <a href=\"https:\/\/github.com\/virtio-win\/virtio-win-pkg-scripts\/blob\/master\/README.md\" target=\"_blank\" rel=\"noopener noreferrer\">guest additions here<\/a>, you can download the ISO file or just the installer, which is smaller.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_9.png\" alt=\"\" width=\"694\" height=\"246\" class=\"aligncenter size-full wp-image-67461\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_9.png 694w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_9-300x106.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\" \/><\/p>\n<p>Best to download the guest additions directly in the virtual machine and start the installation from there. You can just install with standard options.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_10.webp\" alt=\"\" width=\"511\" height=\"397\" class=\"aligncenter size-full wp-image-67465\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_10.webp 511w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_10-300x233.webp 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/p>\n<p>After restart, the guest additions should be working. If the screen does not scale automatically, check the following option:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_11.webp\" alt=\"\" width=\"461\" height=\"315\" class=\"aligncenter size-full wp-image-67469\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_11.webp 461w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2024\/12\/qemu_11-300x205.webp 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Qemu is now my first choice for emulation under Linux. VirtualBox was unreliable for me and sometimes crashed. Qemu runs reliably, offers everything VirtualBox offers and more. Here and there the configuration is a little more complex and the network problem with Windows 10 will hopefully also be fixed.<\/p>","protected":false},"excerpt":{"rendered":"<p>Run Windows 11 with Qemu on Linux.<\/p>\n","protected":false},"author":1,"featured_media":67355,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1682,2443,3779,1558],"class_list":["post-67476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-linux-en","tag-linux-en-2","tag-qemu-en","tag-windows-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/67476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=67476"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/67476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/67355"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=67476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=67476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=67476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}