<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windows &#8211; Made For Cloud</title>
	<atom:link href="https://madeforcloud.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://madeforcloud.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 05 Jun 2026 06:08:03 +0000</lastBuildDate>
	<language>en-AU</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>N-4 support for Windows Server Upgrades &#8211; Wow?</title>
		<link>https://madeforcloud.com/2026/06/05/n-4-support-for-windows-server-upgrades-wow/</link>
					<comments>https://madeforcloud.com/2026/06/05/n-4-support-for-windows-server-upgrades-wow/#respond</comments>
		
		<dc:creator><![CDATA[gocallag]]></dc:creator>
		<pubDate>Fri, 05 Jun 2026 07:08:00 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://madeforcloud.com/?p=286</guid>

					<description><![CDATA[Windows Server 2025 is well and truly here, and Microsoft is pushing hard to convince you that this is the smoothest upgrade cycle in years. They’re not wrong but is it the whole story. If you’re running 2012 R2, 2016, 2019, or 2022, the new N‑4 in‑place upgrade support means you can jump straight to&#8230;<p><a class="more-link" href="https://madeforcloud.com/2026/06/05/n-4-support-for-windows-server-upgrades-wow/" title="Continue reading &#8216;N-4 support for Windows Server Upgrades &#8211; Wow?&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Windows Server 2025 is well and truly here, and Microsoft is pushing hard to convince you that this is the smoothest upgrade cycle in years. They’re not wrong but is it the whole story. If you’re running 2012 R2, 2016, 2019, or 2022, the new <strong>N‑4 in‑place upgrade support</strong> means you <em>can</em> jump straight to 2025 in one hop. That’s a big deal. But whether you really can do this is a different question.</p>



<p class="wp-block-paragraph">If you’re still on 2012 R2, this is your last lifeline.</p>



<h2 class="wp-block-heading"><strong>Media‑Based Upgrade: The Official Story vs Reality</strong></h2>



<p class="wp-block-paragraph">Microsoft claims the ISO‑based upgrade takes “under an hour per server.” Sure, in a lab. With clean images. And no vendor agents. And no ancient NIC drivers. And no weird backup software from 2014. I was able to easily do it under these ideal conditions.</p>



<p class="wp-block-paragraph">In the real world, which is often quite messy (today&#8217;s understatement), expect:</p>



<ul class="wp-block-list">
<li><strong>Several hours</strong> for typical servers &#8211; some of these old physical servers take 15 minutes to boot.</li>



<li><strong>Longer</strong> for anything with third‑party agents, monitoring hooks, or legacy storage drivers</li>



<li><strong>Rollback time</strong> if something breaks (and something always breaks). Do you have a rollback plan for your in-place upgrade?  Does your backup actually work?</li>
</ul>



<p class="wp-block-paragraph">Still, the process is quite straightforward: mount ISO &#8212;&gt; run setup &#8212;&gt; choose “Keep files, settings, and apps” &#8212;&gt; Ok, some form of conversation with a deity may help here.</p>



<h2 class="wp-block-heading"><strong>Virtual Machines: The Easy Path (Mostly)</strong></h2>



<p class="wp-block-paragraph">If you’re on <strong>Hyper‑V</strong>, Microsoft is right: upgrades are usually painless. Hyper‑V integration components update automatically during setup.</p>



<p class="wp-block-paragraph">If you’re on VMware, Nutanix, Proxmox, or anything else, Microsoft’s advice is blunt but correct:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>Update your guest drivers first. Outdated virtualization drivers are the #1 cause of upgrade failures.</strong> </p>
</blockquote>



<p class="wp-block-paragraph">Ignore this and you’ll be staring at a recovery console and re-considering your life choices.</p>



<h2 class="wp-block-heading"><strong>Physical Servers: Where Things Get Messy</strong></h2>



<p class="wp-block-paragraph">Microsoft politely hints that your 2012 R2 hardware is “about 15 years old.” Translation: <strong>Your server is a fossil. Don’t expect miracles.</strong></p>



<p class="wp-block-paragraph">You must validate:</p>



<ul class="wp-block-list">
<li>NIC drivers</li>



<li>HBAs</li>



<li>RAID/storage controllers</li>



<li>PCIe cards</li>



<li>Out‑of‑band management firmware</li>
</ul>



<p class="wp-block-paragraph">If any of these lack 2025‑compatible drivers, you’re choosing between:</p>



<ul class="wp-block-list">
<li>Buying new hardware</li>



<li>Virtualizing the workload</li>



<li>Moving it to the cloud</li>



<li>Or hoping</li>
</ul>



<h2 class="wp-block-heading"><strong>Planning: The Part Everyone Skips Until It’s Too Late</strong></h2>



<p class="wp-block-paragraph">Microsoft’s checklist is great, but incomplete. But really put some thought into these as well &#8230;</p>



<ul class="wp-block-list">
<li><strong>Uninstall old antivirus/EDR agents</strong> as they break upgrades constantly</li>



<li><strong>Disable third‑party disk encryption</strong></li>



<li><strong>Remove legacy monitoring agents</strong> (SolarWinds, SCOM, etc.)</li>



<li><strong>Disconnect from SANs you don’t need during upgrade</strong></li>



<li><strong>Expect to reboot multiple times</strong> even after the upgrade completes</li>
</ul>



<p class="wp-block-paragraph">The main missing step: <strong>Fix whatever broke. Something always breaks.</strong></p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>You cannot in‑place upgrade domain controllers.</strong> Don&#8217;t even bother trying, let me help you here &#8211; no, stop, don&#8217;t, you can thank me later</p>
</blockquote>



<p class="wp-block-paragraph">The process for Active Directory upgrades remains the same as it has been for 20 years: Deploy new DC, Replicate, Demote / Promote, Raise Functional Levels.</p>



<h2 class="wp-block-heading"><strong>Licensing: The Part Everyone Forgets</strong> &#8211; I say everyone, but it was me &#8211; I forgot.</h2>



<p class="wp-block-paragraph">If you have <strong>Software Assurance</strong>, you’re fine. If you rely on <strong>KMS</strong>, make sure it’s updated — 2025 requires new keys.</p>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading"><strong>If the Upgrade Fails</strong></h2>



<p class="wp-block-paragraph">Microsoft recommends:</p>



<ul class="wp-block-list">
<li>Checking logs in <code>C:\Windows\Panther</code></li>



<li>Running <strong>SetupDiag</strong></li>



<li>Restoring from backup</li>
</ul>



<h2 class="wp-block-heading"><strong>Final Thoughts</strong></h2>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph"><strong>If you didn’t test the upgrade on a clone first, you’re already headed for disaster &#8211; think of your future self.</strong></p>
</blockquote>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">You can find more details at <a href="https://techcommunity.microsoft.com/blog/windowsservernewsandbestpractices/upgrading-to-windows-server-2025-from-windows-server-2012-r2-2016-2019-or-2022-u/4456406">Upgrading to Windows Server 2025 from Windows Server 2012 R2, 2016, 2019, or 2022 using Media (ISO) | Microsoft Community Hub</a></p>



<p class="wp-block-paragraph"><img decoding="async" alt="" src="blob:https://madeforcloud.com/9aaba871-001a-48b2-97be-83883710a38c"></p>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://madeforcloud.com/2026/06/05/n-4-support-for-windows-server-upgrades-wow/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Compacting WSL hard disk</title>
		<link>https://madeforcloud.com/2024/12/24/compacting-wsl-hard-disk/</link>
					<comments>https://madeforcloud.com/2024/12/24/compacting-wsl-hard-disk/#respond</comments>
		
		<dc:creator><![CDATA[gocallag]]></dc:creator>
		<pubDate>Tue, 24 Dec 2024 06:03:54 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[WSL]]></category>
		<guid isPermaLink="false">https://madeforcloud.com/?p=233</guid>

					<description><![CDATA[Like many people I am an extensive user of WSL and Linux under Windows in general. It&#8217;s the only real option I have at work and it&#8217;s quite a reasonable proposition. That being said though, the WSL vhdx files can grow as you&#8217;re doing Linux work and while you can (and should) clean up side&#8230;<p><a class="more-link" href="https://madeforcloud.com/2024/12/24/compacting-wsl-hard-disk/" title="Continue reading &#8216;Compacting WSL hard disk&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Like many people I am an extensive user of WSL and Linux under Windows in general. It&#8217;s the only real option I have at work and it&#8217;s quite a reasonable proposition.</p>



<p class="wp-block-paragraph">That being said though, the WSL vhdx files can grow as you&#8217;re doing Linux work and while you can (and should) clean up side the Linux environment it&#8217;s not reflected back to windows as free space.</p>



<p class="wp-block-paragraph">So how do you compact your WSL file?</p>



<ol class="wp-block-list">
<li>Shutdown your WSL system.<br><br><code>wsl.exe --list --verbose   # note the verbose is required to get the state</code> <br><img fetchpriority="high" decoding="async" width="600" height="93" class="wp-image-235" style="width: 600px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163339.png" alt="Output from wsl.exe to show running WSL environment" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163339.png 757w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163339-300x46.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><br><br><code>wsl.exe --terminate Ubuntu-24.04</code><br><img decoding="async" width="600" height="137" class="wp-image-238" style="width: 600px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163855.png" alt="This shows the output of the wsl command with the instance being terminated" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163855.png 750w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-163855-300x68.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><br></li>



<li>Shrink the disk using <strong>diskpart</strong><br><br><code>diskpart</code><br><br><img decoding="async" width="600" height="226" class="wp-image-239" style="width: 600px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164232.png" alt="The diskpart dialogue is displayed" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164232.png 617w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164232-300x113.png 300w" sizes="(max-width: 600px) 100vw, 600px" /><br><br>You need to <strong>select</strong> the vhdx file for your WSL instance.  The VHDX file is typically found in your <strong>AppData</strong> folder. In my case it was this.<br><br><img loading="lazy" decoding="async" width="800" height="158" class="wp-image-240" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716.png" alt="Windows explorer show the location of my VHDX file" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716.png 1500w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-300x59.png 300w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-1024x202.png 1024w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-768x152.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br><br>I copy the VHDX file location as a path.<br><br><img loading="lazy" decoding="async" width="800" height="407" class="wp-image-241" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164903.png" alt="The easiest way to get the full filename + path is to use explorer to copy as path" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164903.png 1045w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164903-300x153.png 300w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164903-1024x521.png 1024w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164903-768x391.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br><br>DISKPART> <code>select vdisk file="C:\Users\geoff\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu24.04LTS_79rhkp1fndgsc\LocalState\ext4.vhdx"</code><br><br><img loading="lazy" decoding="async" width="800" height="66" class="wp-image-242" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237.png" alt="Output from selecting the vdisk in diskpart
" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237.png 1662w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237-300x25.png 300w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237-1024x84.png 1024w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237-768x63.png 768w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165237-1536x127.png 1536w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br></li>



<li>Compact the vdisk<br><br>DISKPART> <code>compact vdisk</code><br><br><img loading="lazy" decoding="async" width="800" height="168" class="wp-image-243" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165742.png" alt="output of diskpart compact " srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165742.png 600w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165742-300x63.png 300w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br></li>



<li>The results.<br><br>BEFORE<br><br><img loading="lazy" decoding="async" width="800" height="158" class="wp-image-240" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716.png" alt="Explorer vhdx filesize before compact" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716.png 1500w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-300x59.png 300w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-1024x202.png 1024w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-164716-768x152.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br><br>AFTER<br><br><img loading="lazy" decoding="async" width="800" height="175" class="wp-image-244" style="width: 800px;" src="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165909.png" alt="Explorer vhdx file size after compact" srcset="https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165909.png 1078w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165909-300x66.png 300w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165909-1024x224.png 1024w, https://madeforcloud.com/wp-content/uploads/2024/12/Screenshot-2024-12-24-165909-768x168.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /><br><br>As you can see, i&#8217;ve freed up nearly 6Gb.<br></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://madeforcloud.com/2024/12/24/compacting-wsl-hard-disk/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Getting WSL2 just right</title>
		<link>https://madeforcloud.com/2024/06/30/getting-wsl2-just-right/</link>
					<comments>https://madeforcloud.com/2024/06/30/getting-wsl2-just-right/#respond</comments>
		
		<dc:creator><![CDATA[gocallag]]></dc:creator>
		<pubDate>Sun, 30 Jun 2024 04:03:35 +0000</pubDate>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WSL]]></category>
		<guid isPermaLink="false">https://madeforcloud.com/?p=223</guid>

					<description><![CDATA[Recent changes to WSL2 by Microsoft have made using Linux on Windows even more comfortable. I&#8217;ll describe some of the options and their use below. Firstly, do you have WSL2 installed? If not, then this will help https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-1&#8212;enable-the-windows-subsystem-for-linux In order to best use WSL, you of course need to have a distribution installed. Ubuntu is&#8230;<p><a class="more-link" href="https://madeforcloud.com/2024/06/30/getting-wsl2-just-right/" title="Continue reading &#8216;Getting WSL2 just right&#8217;">Continue reading <span class="meta-nav">&#8594;</span></a></p>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Recent changes to WSL2 by Microsoft have made using Linux on Windows even more comfortable. I&#8217;ll describe some of the options and their use below.</p>



<p class="wp-block-paragraph">Firstly, do you have WSL2 installed?  If not, then this will help <a href="https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-1---enable-the-windows-subsystem-for-linux">https://learn.microsoft.com/en-us/windows/wsl/install-manual#step-1&#8212;enable-the-windows-subsystem-for-linux</a></p>



<p class="wp-block-paragraph">In order to best use WSL, you of course need to have a distribution installed. Ubuntu is one of the easiest and most common to install.</p>



<pre class="wp-block-code"><code>wsl --list --online           #check what distros are available
wsl --install -d Ubuntu-24.04 #latest at the time of writing</code></pre>



<p class="wp-block-paragraph">Now that you have a distro installed, we have something to configure. There are 2 configuration files that customise the distribution experience under WSL2.  <strong>wsl.conf and .wslconfig</strong></p>



<p class="wp-block-paragraph"><strong>wsl.conf </strong>contains per-distribution settings, whereas<strong> .wslconfig</strong> configures global settings for the WSL2 environment.</p>



<p class="wp-block-paragraph"><strong>wsl.conf</strong> is stored in the /etc directory within the distribution.</p>



<p class="wp-block-paragraph"><strong>.wslconfig</strong> is stored in your %UserProfile% folder.</p>



<h1 class="wp-block-heading">.wslconfig</h1>



<p class="wp-block-paragraph">The .wslconfig file is in .ini format with the GA features found under section <strong>[wsl2]</strong>. There is also an <strong>[experimental]</strong> section for unreleased options. </p>



<p class="wp-block-paragraph"><strong>Note: </strong>All options may not be available to you as they are Windows OS and WSL version dependent. You can reasonably assume if you are running Windows 11, 22H2 or higher that most of the options described below are available to you. This is not the complete list, just the one&#8217;s I have found to be quite useful</p>



<h2 class="wp-block-heading">GA features that I find useful</h2>



<p class="wp-block-paragraph">Accessible via the <strong>[wsl2] </strong>section of the .wslconfig file</p>



<figure class="wp-block-table"><table><tbody><tr><td>Key</td><td>Value</td><td>Notes</td></tr><tr><td>memory</td><td>memory size (Mb, Gb)</td><td>Default is 50% of the windows memory. <strong>I find it useful to constrain the memory (in conjunction with the experimental memory release features below)</strong></td></tr><tr><td>processors</td><td>number</td><td>Default is the same as present in windows</td></tr><tr><td>localhostForwarding</td><td>true/false</td><td>Default is true, this allows your WSL2 application to be accessible via localhost:port</td></tr><tr><td>nestedVirtualization</td><td>true/false</td><td>Allow nesting inside WSL2, Windows 11+</td></tr><tr><td>networkingMode</td><td>string, NAT, mirrored</td><td>The default is NAT, mirrored turns on mirrored networking mode. <strong>Mirrored mode is a great addition for many of my use cases.</strong></td></tr><tr><td>firewall</td><td>true / false</td><td>Hyper-V firewall can filter WSL network traffic</td></tr><tr><td>dnsTunneling</td><td>false</td><td>see the experimental section</td></tr><tr><td></td><td></td><td></td></tr></tbody></table><figcaption class="wp-element-caption">Some of the GA features</figcaption></figure>



<h2 class="wp-block-heading">Experimental (though very useful) features</h2>



<p class="wp-block-paragraph">Accessible via <strong>[experimental]</strong> section of the .wslconfig file.</p>



<figure class="wp-block-table"><table><tbody><tr><td>Key</td><td>Value</td><td>Notes</td></tr><tr><td>autoMemoryReclaim</td><td>disabled</td><td>Default is disabled, but options list gradual and dropcache can dramatically return memory outside wsl2. <strong>I default to gradual.</strong></td></tr><tr><td>sparseVHD</td><td>false</td><td>When set to true new VHD&#8217;s are created as sparse saving considerable disk with all the overprovisioning issues. <strong>By default, i&#8217;m using sparse, but then again i&#8217;ve been using sparse filesystems for many years</strong></td></tr><tr><td>useWindowsDnsCache</td><td>false</td><td>If you have dnsTunneling turned on then this option allows you to use or ignore what windows dns may&#8217;ve cached</td></tr><tr><td>hostAddressLoopback</td><td>false</td><td>if networkingMode is set to mirrored then the loopback 127.0.0.1 address can be used to access the host and the container depending on where the listening resource may be running &#8211; windows or wsl2. <strong>This is a great option if you want better sharing between windows and wsl2 distro. For example, i&#8217;ve had a mongo client on windows and mongo in wsl2 ubuntu</strong>. </td></tr></tbody></table><figcaption class="wp-element-caption">Some of the Experimental features</figcaption></figure>



<h1 class="wp-block-heading">wsl.conf</h1>



<p class="wp-block-paragraph">As I mentioned above the <strong>/etc/wsl.conf</strong> within the distribution controls some interesting behaviours, especially on distro launch.</p>



<h2 class="wp-block-heading">[boot]</h2>



<pre class="wp-block-code"><code>systemd=true</code></pre>



<p class="wp-block-paragraph">Solves the problem where you&#8217;re reliant on systemd resources within your WSL2 distro.<strong> I normally have it turned on.</strong></p>



<h2 class="wp-block-heading">[automount]</h2>



<figure class="wp-block-table"><table><tbody><tr><td>Key</td><td>Value</td><td>Notes</td></tr><tr><td>enabled</td><td>true / false</td><td>Allows windows fixed drives to be automatically mounted under /mnt (or where the root key points). <strong>I have this enabled by default</strong></td></tr><tr><td>root</td><td>/mnt</td><td>Where the mounts occur for auto mounted systems</td></tr><tr><td>mountFsTab</td><td>true/false</td><td>Allow the /etc/fstab to be processed at WSL distro boot time. Great to get those SMB/NFS mounts going. <strong>I have this set to true as I use a lot of NFS in my test environment.</strong></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Some things to note.</p>



<p class="wp-block-paragraph">Windows disks are mounted using Drvfs and are by default case sensitive. You can override this behaviour for all or single drives. More information is available at <a href="https://devblogs.microsoft.com/commandline/per-directory-case-sensitivity-and-wsl/">Per-directory case sensitivity and WSL &#8211; Windows Command Line (microsoft.com)</a></p>



<h2 class="wp-block-heading">[network]</h2>



<figure class="wp-block-table"><table><tbody><tr><td>Key</td><td>Value</td><td>Notes</td></tr><tr><td>generateHosts</td><td>true/false</td><td>wsl will generate an appropriate /etc/hosts file based on the windows environment.<strong> I generally set this to true (the default).</strong></td></tr><tr><td>generateResolvConf</td><td>true/false</td><td>wsl will generate an appropriate list of dns resolvers. <strong>I generally set this to true (the default).</strong></td></tr><tr><td>hostname</td><td>string</td><td>This sets the hostname to be used within the distro. <strong>The default is the windows hostname, but this is useful if you run multiple WSL instances.</strong></td></tr></tbody></table></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://madeforcloud.com/2024/06/30/getting-wsl2-just-right/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
