{"id":3817,"date":"2025-11-27T19:00:28","date_gmt":"2025-11-27T11:00:28","guid":{"rendered":"https:\/\/imastudio.com\/?p=3817"},"modified":"2025-11-27T19:00:29","modified_gmt":"2025-11-27T11:00:29","slug":"wsl2-no-more-dual-boot-or-heavy-vms-on-windows","status":"publish","type":"post","link":"https:\/\/imastudio.com\/zh_tw\/blog\/wsl2-no-more-dual-boot-or-heavy-vms-on-windows","title":{"rendered":"WSL2: No More Dual-Boot or Heavy VMs on Windows"},"content":{"rendered":"<p>For a long time, if you wanted to use Linux tools on a Windows laptop, you basically had two options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install a fragile <strong>dual-boot<\/strong> setup<\/li>\n\n\n\n<li>Run a <strong>slow, resource-hungry virtual machine<\/strong><\/li>\n<\/ul>\n\n\n\n<p>With the Windows 10 May 2020 update (version 2004), Microsoft released something that completely changed my workflow: <strong>WSL2 (Windows Subsystem for Linux 2)<\/strong>.<\/p>\n\n\n\n<p>WSL2 lets Windows and Linux live together on the same machine in a very natural way. After using it for a while, I honestly don\u2019t feel the need to mess with dual-boot or full VMs anymore.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What WSL2 Is Like in Real Use<\/h2>\n\n\n\n<p>After some time using WSL2 daily, here\u2019s what stood out for me:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Full Linux environment inside Windows<\/strong><br>I can run a real Linux distribution directly in Windows without rebooting or switching systems.<\/li>\n\n\n\n<li><strong>Easy file access<\/strong><br>Linux in WSL2 can easily access almost all files on my Windows machine. That makes it simple to develop on Windows and then run and test on Linux without copying files back and forth.<\/li>\n\n\n\n<li><strong>Docker works normally<\/strong><br>Docker runs fine in this setup, so I can do backend and container work on Windows while still having a native-feeling Linux environment under the hood.<\/li>\n\n\n\n<li><strong>Mixed command usage<\/strong><br>Windows command line can call Linux tools (and vice versa), and they can <strong>share environment variables<\/strong>.<br>In practice, that means I can chain Windows and Linux commands together in one workflow.<\/li>\n<\/ul>\n\n\n\n<p>For development, this really feels like Windows and Linux are \u201cmerged\u201d instead of being two completely separate worlds.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"502\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-1024x502.png\" alt=\"\" class=\"wp-image-3820\" srcset=\"https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-1024x502.png 1024w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-300x147.png 300w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-768x376.png 768w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-1536x752.png 1536w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10-18x9.png 18w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-10.png 1760w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install WSL2 (and What to Watch Out For)<\/h2>\n\n\n\n<p>Microsoft\u2019s official documentation for installing WSL2 is actually quite detailed and worth following:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Official docs: <a>https:\/\/docs.microsoft.com\/windows\/wsl\/<\/a><\/p>\n<\/blockquote>\n\n\n\n<p>But there are a few practical issues that the docs don\u2019t emphasize enough. Here are the main points from my own setup experience.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. Check Your Windows Version (Must Be 2004 or Later)<\/h3>\n\n\n\n<p>WSL2 requires <strong>Windows 10 version 2004 (May 2020 update)<\/strong> or higher.<\/p>\n\n\n\n<p>You can check your version like this:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press <code>Win + R<\/code><\/li>\n\n\n\n<li>Type <code>winver<\/code><\/li>\n\n\n\n<li>Look at the version information in the popup window<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"728\" height=\"546\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-11.png\" alt=\"\" class=\"wp-image-3821\" srcset=\"https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-11.png 728w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-11-300x225.png 300w, https:\/\/imastudio.com\/wp-content\/uploads\/2025\/11\/image-11-16x12.png 16w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<p>If the version is <strong>below 2004<\/strong>, you\u2019ll need to update Windows first.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Updating to 2004 Manually<\/h3>\n\n\n\n<p>When I did this, the 2004 update wasn\u2019t pushed automatically yet, so I had to use the <strong>Windows 10 Update Assistant<\/strong> to upgrade manually.<\/p>\n\n\n\n<p>During the upgrade, I ran into two common issues.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Issue 1: \u201cDisk layout not supported for UEFI firmware\u201d<\/h4>\n\n\n\n<p>The installer may complain that your disk layout isn\u2019t compatible with UEFI for this update.<\/p>\n\n\n\n<p>The general fix is to go into the <strong>BIOS\/UEFI settings<\/strong> and adjust things according to the guidance in relevant tutorials (partition style, boot mode, etc.). The exact steps depend on your machine, so I followed a detailed online guide to make my disk layout acceptable for the update.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Issue 2: Update failures unless offline<\/h4>\n\n\n\n<p>Another problem I hit was <strong>update failures when staying connected to the network<\/strong> during installation.<\/p>\n\n\n\n<p>What finally worked for me:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Let the Update Assistant <strong>download<\/strong> all required files<\/li>\n\n\n\n<li>Once the download is finished, <strong>disconnect from the network<\/strong><\/li>\n\n\n\n<li>Then continue with the installation offline<\/li>\n<\/ol>\n\n\n\n<p>After I did this, the upgrade completed successfully.<\/p>\n\n\n\n<p>Of course, if you\u2019re not in a hurry, you can also just wait for the automatic rollout of the update and avoid most of this manual trouble.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why WSL2 Is Worth the Effort<\/h2>\n\n\n\n<p>Once everything is set up:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I stay in Windows for UI, tools, and daily work<\/li>\n\n\n\n<li>I get a real Linux environment for development, Docker, and server-side tasks<\/li>\n\n\n\n<li>I no longer have to maintain a dual-boot system or a heavy VM just to run Linux<\/li>\n<\/ul>\n\n\n\n<p>If you\u2019re doing backend, DevOps, or security work and still switching between Windows and Linux all the time, WSL2 is absolutely worth a try.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>This article comes from my own real-world experience setting up and using WSL2 on Windows 10. ChatGPT only helped me translate the content into English and polish the wording and formatting; all technical content and decisions are mine.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>For a long time, if you wanted to use Linux tools on a Windows laptop, you basically had two options: With the Windows 10 May 2020 update (version 2004), Microsoft released something that completely changed my workflow: WSL2 (Windows Subsystem for Linux 2). WSL2 lets Windows and Linux live together on the same machine in [&hellip;]<\/p>","protected":false},"author":11,"featured_media":3823,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"","rank_math_description":"","footnotes":""},"categories":[35],"tags":[],"class_list":["post-3817","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge-hub"],"_links":{"self":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/3817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/comments?post=3817"}],"version-history":[{"count":4,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/3817\/revisions"}],"predecessor-version":[{"id":3824,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/3817\/revisions\/3824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/media\/3823"}],"wp:attachment":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/media?parent=3817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/categories?post=3817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/tags?post=3817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}