<?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 10 &#8211; Virtually Fun</title>
	<atom:link href="https://virtuallyfun.com/category/windows-10/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Sat, 26 Oct 2024 21:36:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Today is Starfield day!</title>
		<link>https://virtuallyfun.com/2023/09/01/today-is-starfield-day/</link>
					<comments>https://virtuallyfun.com/2023/09/01/today-is-starfield-day/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Fri, 01 Sep 2023 10:36:40 +0000</pubDate>
				<category><![CDATA[games]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=13159</guid>

					<description><![CDATA[And there is a map of all the locales and when the launch. I was busy working and didn&#8217;t notice that Hong Kong had already launched. Thankfully I did get a payment voucher which fully covered the super fancy edition. &#8230; <a href="https://virtuallyfun.com/2023/09/01/today-is-starfield-day/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><a href="https://store.steampowered.com/news/app/1716740/view/3687939575936460662"><img fetchpriority="high" decoding="async" width="1024" height="684" src="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th-1024x684.png" alt="" class="wp-image-13169" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th-1024x684.png 1024w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th-300x200.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th-768x513.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th-449x300.png 449w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-launches-september-6th.png 1077w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="wp-block-paragraph">And there is a map of all the locales and when the launch.  I was busy working and didn&#8217;t notice that Hong Kong had already launched.</p>



<figure class="wp-block-image size-large"><a href="https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-scaled.jpg"><img decoding="async" width="1024" height="576" src="https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-1024x576.jpg" alt="" class="wp-image-13160" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-1024x576.jpg 1024w, https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-300x169.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-768x432.jpg 768w, https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-1536x864.jpg 1536w, https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-2048x1152.jpg 2048w, https://virtuallyfun.com/wp-content/uploads/2023/09/Starfield-Global-Release-Times-4K-500x281.jpg 500w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">many geo zones!</figcaption></figure>



<p class="wp-block-paragraph">Thankfully I did get a payment voucher which fully covered the super fancy edition.  Sadly there was no option for GPU&#8217;s so I&#8217;m going to try this with an OG 6GB GTX Titan.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bought-the-premium-edition.png"><img decoding="async" width="621" height="215" src="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bought-the-premium-edition.png" alt="" class="wp-image-13161" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bought-the-premium-edition.png 621w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bought-the-premium-edition-300x104.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bought-the-premium-edition-500x173.png 500w" sizes="(max-width: 621px) 100vw, 621px" /></a></figure>



<p class="wp-block-paragraph">It was a bit weird to figure out if I could run the game or not but I did get a pop up that today was the day so I guess so.</p>



<figure class="wp-block-image size-large"><a href="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct.png"><img loading="lazy" decoding="async" width="1024" height="187" src="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct-1024x187.png" alt="" class="wp-image-13177" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct-1024x187.png 1024w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct-300x55.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct-768x140.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct-500x91.png 500w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-verifying-0pct.png 1439w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">0% verified</figcaption></figure>



<p class="wp-block-paragraph">I&#8217;ll have no choice but to update as it goes, so nothing yet to report.</p>



<p class="wp-block-paragraph">I&#8217;m just hoping it&#8217;s not the hollow world experience of Fallout 76.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="380" height="152" src="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-doesnt-like-my-titan-6gb.png" alt="" class="wp-image-13179" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-doesnt-like-my-titan-6gb.png 380w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-doesnt-like-my-titan-6gb-300x120.png 300w" sizes="auto, (max-width: 380px) 100vw, 380px" /></figure>
</div>


<p class="wp-block-paragraph">After all that downloading, turns out it doesn&#8217;t like my video card at all.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="674" height="241" src="https://virtuallyfun.com/wp-content/uploads/2023/09/1070ti-minimum.png" alt="" class="wp-image-13181" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/1070ti-minimum.png 674w, https://virtuallyfun.com/wp-content/uploads/2023/09/1070ti-minimum-300x107.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/1070ti-minimum-500x179.png 500w" sizes="auto, (max-width: 674px) 100vw, 674px" /></figure>



<p class="wp-block-paragraph">So yeah GTX 1070ti minimum. wow.</p>



<p class="wp-block-paragraph">So I abused a work machine that ironically has a decent mobile GPU.  swapped some storage and booted into the game, played a few hours..  And yeah</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality.jpg"><img loading="lazy" decoding="async" width="1025" height="574" src="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality.jpg" alt="" class="wp-image-13183" srcset="https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality.jpg 1025w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality-300x168.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality-768x430.jpg 768w, https://virtuallyfun.com/wp-content/uploads/2023/09/starfield-bethesda-quality-500x280.jpg 500w" sizes="auto, (max-width: 1025px) 100vw, 1025px" /></a><figcaption class="wp-element-caption">Old tyme Bethesda quality</figcaption></figure>
</div>


<p class="wp-block-paragraph">When |I could, I took a detour to Earth&#8217;s moon, and went out for a walk.  Naturally there was a base less then half a click away, and naturally it had 30 insurgents automatically hostile.  What a vast but populated world.  And then the NPC following me around suddenly took off her space suit, and broke the whole thing.  I wanted to maybe get an ARC but apparente it doesn&#8217;t run at all on ARC.  Seems kinda fishy to me tho.  NVIDIA released a new driver like today for the special launch.  I don&#8217;t know if there will be any fallout.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2023/09/01/today-is-starfield-day/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>64bit computing on a budget</title>
		<link>https://virtuallyfun.com/2023/07/01/64bit-computing-on-a-budget/</link>
					<comments>https://virtuallyfun.com/2023/07/01/64bit-computing-on-a-budget/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Sat, 01 Jul 2023 22:42:10 +0000</pubDate>
				<category><![CDATA[64bit computing]]></category>
		<category><![CDATA[arm]]></category>
		<category><![CDATA[Win64]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">http://virtuallyfun.com/?p=12888</guid>

					<description><![CDATA[With all that Dec Alpha talk, and how hard it is to get hardware, and how seemingly exclusionary it is, I thought I would try to touch on a more available 64bit &#8216;risc&#8217; platform, for the masses! While a couple &#8230; <a href="https://virtuallyfun.com/2023/07/01/64bit-computing-on-a-budget/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">With all that <a href="/2023/05/15/windows-2000-64-bit-for-alpha-axp/">Dec Alpha talk</a>, and how hard it is to get hardware, and how seemingly exclusionary it is, I thought I would try to touch on a more available 64bit &#8216;risc&#8217; platform, for the masses!</p>



<p class="wp-block-paragraph">While a couple years ago I had touched on running <a rel="noreferrer noopener" href="/2020/07/24/windows-10-on-the-raspberry-pi-4/" data-type="URL" data-id="/2020/07/24/windows-10-on-the-raspberry-pi-4/" target="_blank">Windows 10 on the Raspberry Pi 4</a>, in the brave new world of 2023 getting ahold of a pi4 is expensive, hard to find, and kind of depressive, which lead me to this (old) but exciting project, the <a href="https://renegade-project.tech/en/home" target="_blank" rel="noreferrer noopener">Renegade Project</a>!</p>



<p class="wp-block-paragraph">Long story short, there exists enough drivers &amp; information to facilitate a port to the Snapdragon 845, a 64bit System On a Chip( SOAC!), meaning that if you have a device with this chip it *can* be slightly possible to install Windows 10 onto it.</p>



<figure class="wp-block-image size-full"><a href="https://renegade-project.tech/en/state"><img loading="lazy" decoding="async" width="921" height="428" src="https://virtuallyfun.com/wp-content/uploads/2023/07/renegade-system-matrix.png" alt="" class="wp-image-12889" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/renegade-system-matrix.png 921w, https://virtuallyfun.com/wp-content/uploads/2023/07/renegade-system-matrix-300x139.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/renegade-system-matrix-768x357.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/07/renegade-system-matrix-500x232.png 500w" sizes="auto, (max-width: 921px) 100vw, 921px" /></a><figcaption class="wp-element-caption">system compatibility matrix, for ants.</figcaption></figure>



<p class="wp-block-paragraph">Glancing at the system matrix, to me the glaring hole is Charging.  3 systems outright support it, all of them from Xiaomi, the <a href="https://renegade-project.tech/en/devices/xiaomi/polaris">Xiaomi Mix 2s</a>, Xiaomi Mix 3 &amp; the <a href="https://renegade-project.tech/en/devices/xiaomi/beryllium">Xiaomi PocoPhone F1</a>.  Looking around eBay to start this adventure I found a PocoPhone F1!</p>



<h2 class="wp-block-heading">Getting the Phone</h2>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing.png"><img loading="lazy" decoding="async" width="901" height="431" src="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing.png" alt="" class="wp-image-12890" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing.png 901w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing-300x144.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing-768x367.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-ebay-listing-500x239.png 500w" sizes="auto, (max-width: 901px) 100vw, 901px" /></a></figure>



<p class="wp-block-paragraph">This seemed like a good start, 29.99, 128GB of flash storage, and I&#8217;d later learn 6GB of RAM.  The first problem came from Xiaomi.  Turns out that the phone was still locked, the seller had neglected to logout from his Xiaomi account.  Even worse though he had forgotten his login and password.  Calling Xiaomi support was basically worthless.  Without unlocking the phone on a reset to root the phone lead me to this:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/locked-pocophone2.jpg"><img loading="lazy" decoding="async" width="384" height="512" src="https://virtuallyfun.com/wp-content/uploads/2023/07/locked-pocophone2.jpg" alt="" class="wp-image-12894" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/locked-pocophone2.jpg 384w, https://virtuallyfun.com/wp-content/uploads/2023/07/locked-pocophone2-225x300.jpg 225w" sizes="auto, (max-width: 384px) 100vw, 384px" /></a><figcaption class="wp-element-caption">Locked!</figcaption></figure>
</div>


<p class="wp-block-paragraph">I got lucky however after talking to the seller, he agreed to go above and beyond and we were able to unlock the phone together.  So everything went well.  If you do buy one of these phones used, MAKE SURE TO CHECK THE XIOAMI login id!  It has to be unlocked and blank so you can register it and get the unlock.  It will require a valid email &amp; phone number + sim for it to send/receive SMS codes.</p>



<p class="wp-block-paragraph">Access to the site is very up &amp; down, so I archived what <a rel="noreferrer noopener" href="https://archive.org/details/miflash_unlock_en_7.6.602.42" target="_blank">I had downloaded to unlock the phone here</a>. <a href="https://archive.org/details/miflash_unlock_en_7.6.602.42" target="_blank" rel="noreferrer noopener">miflash_unlock_en_7.6.602.42.7z</a></p>



<p class="wp-block-paragraph">I should add that we&#8217;ve cleared the first few hurdles of precuring the device and unlocking it.  And I&#8217;m glossing over stuff.  Getting to this point was not easy and took a week. The unlock process is not intuitive, and I&#8217;m sure many phones are sold out there that have their google access wiped, but have not been logged out all the way, or the flash erased.  I can&#8217;t show you mine as I ended up erasing Android but be aware of this!</p>



<h2 class="wp-block-heading">Getting ready for Windows</h2>



<p class="wp-block-paragraph">Basically on the Android side there is three main modes, the boot, the recovery and the &#8216;fastboot&#8217; mode.  Holding power &amp; down brings you to fastboot, where using the fastboot tool you can load an image from your PC into ram and execute it.  <a href="https://github.com/edk2-porting/edk2-msm" target="_blank" rel="noreferrer noopener">EDK2 UEFI firmware</a>, is the first part or the renegade project you&#8217;ll encouter.  It&#8217;s really powerful, allowing you to not only boot into Windows, but it also supports a linux disk target mode, allowing you to partition and access the flash directly from a PC. Naturally this is SUPER dangerous, and <a href="https://archive.org/details/pocophone-f1-modem-files" target="_blank" rel="noreferrer noopener">backup your modem files</a>!</p>



<p class="wp-block-paragraph">With the phone unlocked softbooting E2DK you can put it into a target disk mode, connect it to a pc and partition away!</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/disk-host-mode-reduced.jpg"><img loading="lazy" decoding="async" width="467" height="865" src="https://virtuallyfun.com/wp-content/uploads/2023/07/disk-host-mode-reduced.jpg" alt="" class="wp-image-12896" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/disk-host-mode-reduced.jpg 467w, https://virtuallyfun.com/wp-content/uploads/2023/07/disk-host-mode-reduced-162x300.jpg 162w" sizes="auto, (max-width: 467px) 100vw, 467px" /></a><figcaption class="wp-element-caption">disk mode&#8230; for ants!</figcaption></figure>
</div>


<p class="wp-block-paragraph"><a rel="noreferrer noopener" href="https://renegade-project.tech/en/install" target="_blank">The guide</a> (section 1.2) advices pushing the disk tools to the phone booted up in <a rel="noreferrer noopener" href="https://archive.org/download/miflash_unlock_en_7.6.602.42/twrp-3.7.0_9-0-beryllium.img" target="_blank">twrp-3.7.0_9-0-beryllium.img</a>.  Honestly its easier to just partition it on your computer.  HOWEVER if you were to use Windows, there is a slight issue:</p>



<p class="wp-block-paragraph"><strong><span style="text-decoration: underline;">The device may no longer be able to boot into fastboot mode</span></strong></p>



<p class="wp-block-paragraph">I ran into this issue and thought I had bricked my phone.  I was actually in the middle of researching how to do a physical hard reset, <a href="https://www.youtube.com/watch?v=IlAaRQBtHKw" target="_blank" rel="noreferrer noopener">and place it into EDL mode</a> (taking it apart and finding which pads to short, when I found this section of the troubleshooting guide, where it&#8217;s the partition names.  So instead, I ended up doing the partitioning on a Virtual Machine using VMware and Ubuntu.</p>



<pre class="wp-block-code"><code>(parted) print
print
Model: SAMSUNG KLUDG4U1EA-B0C1 (scsi)
Disk /dev/block/sda: 123GB
Sector size (logical/physical): 4096B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name        Flags
 1      24.6kB  41.0kB  16.4kB               switch
 2      41.0kB  73.7kB  32.8kB               ssd
 3      73.7kB  524kB   451kB                bk01
 4      524kB   786kB   262kB                bk02
 5      786kB   1049kB  262kB                bk03
 6      1049kB  1573kB  524kB                keystore
 7      1573kB  2097kB  524kB                frp
 8      2097kB  4194kB  2097kB               bk04
 9      4194kB  8389kB  4194kB               misc
10      8389kB  16.8MB  8389kB               logfs
11      16.8MB  33.6MB  16.8MB               oops
12      33.6MB  50.3MB  16.8MB               devinfo
13      50.3MB  67.1MB  16.8MB               bk05
14      67.1MB  134MB   67.1MB  ext4         persist
15      134MB   201MB   67.1MB  ext4         persistbak
16      201MB   268MB   67.1MB               logdump
17      268MB   403MB   134MB                minidump
18      403MB   1275MB  872MB   ext4         cust
19      1275MB  1342MB  67.1MB               recovery
20      1342MB  1611MB  268MB   ext4         cache
21      1611MB  123GB   121GB                userdata</code></pre>



<p class="wp-block-paragraph">Before I did anything, this is what the phone partition table looked like.  It&#8217;s an exceptional amount.  The new parted v 3.0 that is recommended to use, doesn&#8217;t support the resize command so I had to manually do the numbers after destroying partition 21.</p>



<p class="wp-block-paragraph">Originally, I had made a 32Gb partition to keep some Android functionality but somewhere it just stopped booting.  But I didn&#8217;t care.</p>



<pre class="wp-block-code"><code>rm 21
mkpart userdata ext4 1611MB 32G
mkpart esp fat32 32G 32.5G
set 22 esp on
mkpart win ntfs 32.5GB 123G

21      1611MB  32.0GB  30.4GB  ext4         userdata
22      32.0GB  32.5GB  499MB   fat32        esp         boot, esp
23      32.5GB  123GB   90.5GB  ntfs         win         msftdata</code></pre>



<p class="wp-block-paragraph">Obviously dont follow this.  I&#8217;m only providing output as an example.</p>



<p class="wp-block-paragraph">If I were more patient, I guess I would have dd&#8217;d the entire phone to get a full entire backup. But I didn&#8217;t get this phone to run Android, so I really don&#8217;t care.</p>



<p class="wp-block-paragraph">There is a LOT of disks being presented to Windows, in case you ever wondered how those 128GB flash devices get sold with only 114GB of user space. </p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions.png"><img loading="lazy" decoding="async" width="887" height="108" src="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions.png" alt="" class="wp-image-12898" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions.png 887w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions-300x37.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions-768x94.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-f1-disk-partitions-500x61.png 500w" sizes="auto, (max-width: 887px) 100vw, 887px" /></a><figcaption class="wp-element-caption">So many partitions!</figcaption></figure>



<p class="wp-block-paragraph">And even that 112GB is actually usable!</p>



<p class="wp-block-paragraph">Remember the system partition needs the boot,esp flags, and the windows partition is msftdata.  Also make sure the partition names are either single words, or NO words.  Spaces will kill the fastboot mode.</p>



<p class="wp-block-paragraph">I put all the disks that are presented in offline mode, so I don&#8217;t get confused.  Make sure you are going to mess with the right volumes when formatting after the partitioning.  This is NOT for the novice, it would be easy to not only brick the phone but screw up your existing install.  If you have physical disks attached you don&#8217;t absolutely need, remove them or put them offline to make sure you don&#8217;t screw up.</p>



<p class="wp-block-paragraph">I used diskpart to select the appropriate volumes and format them.</p>



<pre class="wp-block-code"><code>select disk 8
select volume 5
format quick fs=fat32 label="System"
assign letter="S"
select volume 6
format quick fs=ntfs label="Windows"
assign letter="W"</code></pre>



<p class="wp-block-paragraph">This isn&#8217;t a guide, just a reflection of what I went through.</p>



<p class="wp-block-paragraph">With the disk now formatted, it&#8217;s a matter of selecting an OS to install.</p>



<p class="wp-block-paragraph">I had really bad luck picking random versions of Windows, so I looked until I could find a confirmed working version in this video, <a rel="noreferrer noopener" href="https://www.youtube.com/watch?v=t81-Ji17fGM" target="_blank">Rodando o Windows 10 ARM nativamente em um Dispositivo Android (Pocophone F1 + UEFI)</a>.  Long story short, it&#8217;s Windows build 210521-1658 with version <a rel="noreferrer noopener" href="https://github.com/edk2-porting/edk2-msm/releases/tag/v0.4" target="_blank">0.4 of the bootloader</a>.  Long story short I messed with LOTS of Windows on ARM driver sets, before I finally had the brave idea to just load it with no drivers:</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-booted-to-windows.jpg"><img loading="lazy" decoding="async" width="491" height="945" src="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-booted-to-windows.jpg" alt="" class="wp-image-12899" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-booted-to-windows.jpg 491w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-booted-to-windows-156x300.jpg 156w" sizes="auto, (max-width: 491px) 100vw, 491px" /></a><figcaption class="wp-element-caption">booted</figcaption></figure>
</div>


<p class="wp-block-paragraph">But that image is far too stale, and expires out very quickly, reducing any useful functionality once it&#8217;s connected to the internet.  So it&#8217;s something that probably could be fixed, but it&#8217;s far easier to just grab an image that&#8217;s newer.</p>



<p class="wp-block-paragraph">The x86_64 image I&#8217;m using now is 19045.3031, so I guessed to pick something comparable on ARM64.  I used something called <a href="https://archive.org/details/19045.3031_arm64_en-us_professional" target="_blank" rel="noreferrer noopener">19045.3031_arm64_en-us_professional</a>, although it too was out of date, but Windows update brought it up to 22H2 19045.3086 . I had tried the downloader tool and apply all the updates offline, but I had issues.  I suspect now in retrospect it was drivers.</p>



<p class="wp-block-paragraph">Another thing I learned the hard way is that some of these images have multiple OS images installed. I guess it&#8217;s de-duplication, along with compression, but be sure to index the image first!  I accidentally installed a Home version. Yuck.</p>



<pre class="wp-block-code"><code>dism /Get-ImageInfo /imagefile:install.wim

Index : 1
Name : Windows 10 Home
Description : Windows 10 Home
Size : 17,706,743,995 bytes

Index : 4
Name : Windows 10 Pro
Description : Windows 10 Pro
Size : 17,836,320,420 bytes</code></pre>



<p class="wp-block-paragraph">So just don&#8217;t go wildly apply image #1.  I wasted too much time on that one.</p>



<p class="wp-block-paragraph">But in the release I&#8217;m using it&#8217;s image #1.  I checked. Trust me.</p>



<pre class="wp-block-code"><code>dism /apply-image /ImageFile:10.0.21390.1.co_release.210521-1658_arm64fre\install.wim /index:4 /ApplyDir:W:\</code></pre>



<p class="wp-block-paragraph">The S volume needs to be populated with the UEFI boot files.  I had foolishly thought the boot.wim file would include the boot files, but instead bcdboot can set it up based on the location of a Windows install.</p>



<pre class="wp-block-code"><code>bcdboot W:\Windows /s S: /f UEFI</code></pre>



<p class="wp-block-paragraph">The next thing to do is install the drivers.</p>



<p class="wp-block-paragraph">I was lucky enough to get some insight into some driver combination to work, and I came up with this much:</p>



<pre class="wp-block-preformatted">minimal 2210.1-fix
USB beryllium v2.0rc2
FG beryllium v2.0rc2</pre>



<p class="wp-block-paragraph">The key of course is that there is a minimal set in 2210.1-fix that will bring the system up with working USB.  The FG package brings in enough of the power management to know the battery status.</p>



<pre class="wp-block-code"><code>dism /Image:W: /Add-Driver /Driver:drivers /Recurse</code></pre>



<p class="wp-block-paragraph">The drivers are not signed, so that means we need to change a bunch of boot flags.  I also turned on debugging so have Windows dump core files, so you can run analysts on them with <a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools" target="_blank" rel="noreferrer noopener">Windgb</a>.</p>



<pre class="wp-block-code"><code>S:
cd S:\EFI\Microsoft\Boot
bcdedit /store BCD /set "{default}" testsigning on
bcdedit /store BCD /set "{default}" nointegritychecks on
bcdedit /store BCD /set "{default}" recoveryenabled no
bcdedit /store BCD /set "{default}" debug on</code></pre>



<p class="wp-block-paragraph">Of course the catch being that with no drivers loaded it&#8217;s in a super basic mode, with no USB, no touch screen, no power management, no wifi no nothing.  So it&#8217;s a brick.  But at least we&#8217;ve reproduced enough to show that you can boot Windows.</p>



<p class="wp-block-paragraph">Sadly, loading all the drives from <a href="https://github.com/edk2-porting/WOA-Drivers/releases/tag/2210.1-fix" target="_blank" rel="noreferrer noopener">2210.1-fix</a> or beryllium <a href="https://github.com/edk2-porting/WOA-Drivers/releases/tag/v2.0rc2" target="_blank" rel="noreferrer noopener">v2.0rc2</a> lead to this:</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-crashed.jpg"><img loading="lazy" decoding="async" width="567" height="408" src="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-crashed.jpg" alt="" class="wp-image-12900" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-crashed.jpg 567w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-crashed-300x216.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/pocophone-crashed-417x300.jpg 417w" sizes="auto, (max-width: 567px) 100vw, 567px" /></a><figcaption class="wp-element-caption">the cracked glass adds to the feeling.</figcaption></figure>



<p class="wp-block-paragraph">Add in a much needed OTG adapter and a mouse or keyboard, and you can complete the installation.  </p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-Surface-scaled-1.jpg"><img loading="lazy" decoding="async" width="592" height="546" src="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-Surface-scaled-1.jpg" alt="" class="wp-image-12902" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-Surface-scaled-1.jpg 592w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-Surface-scaled-1-300x277.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-Surface-scaled-1-325x300.jpg 325w" sizes="auto, (max-width: 592px) 100vw, 592px" /></a></figure>



<p class="wp-block-paragraph">However, since I left off the majority of the device drivers as I didn&#8217;t want to spend forever trying to track it down, I used a random USB to Ethernet adapter and thankfully It just worked!</p>



<figure class="wp-block-image size-large"><a href="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone.png"><img loading="lazy" decoding="async" width="1024" height="597" src="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone-1024x597.png" alt="" class="wp-image-12901" srcset="https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone-1024x597.png 1024w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone-300x175.png 300w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone-768x448.png 768w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone-500x292.png 500w, https://virtuallyfun.com/wp-content/uploads/2023/07/Windows-10-on-pocophone.png 1282w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Accessing the phone over RDP.</figcaption></figure>



<p class="wp-block-paragraph">I added a fancy USB 3.0 &#8216;dock&#8217; with USB-C connector that you can plug a charger into, so that not only can the phone stay connected to power, but there is room for the Ethernet.  It also has HDMI, perhaps is the drivers were more stable, it could be a viable desktop? And I have what I wanted, which was a non Intel/AMD 64bit platform that is hopefully more reliable than the Alpha64 platform, and maybe something to do some kind of contrast of the past vs future</p>



<p class="wp-block-paragraph">This was NOT a simple thing to go through. I would be extremely hesitant to advise other people to follow suit.  But in the off chance anyone who wants to do it, might have a better idea of what is involved.</p>



<p class="wp-block-paragraph">Read the <a rel="noreferrer noopener" href="https://renegade-project.tech/en/Troubleshooting" target="_blank">Troubleshooting guide</a> &amp; the <a rel="noreferrer noopener" href="https://renegade-project.tech/en/install" target="_blank">Installation guide</a>.  Keep notes!  I would have absolutely given up, without keeping notes.</p>



<p class="wp-block-paragraph">Even simple tracking of disasters like this at least helped me along:</p>



<pre class="wp-block-code"><code>210521-1658<br>10.0.21390.1.co_release.210521-1658_arm64fre</code></pre>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<pre class="wp-block-code"><code>boot-beryllium Version 0.4.1.img</code></pre>



<pre class="wp-block-code"><code>boot-beryllium-ebbg Release - 2210.1.img</code></pre>



<pre class="wp-block-code"><code>boot-beryllium-ebbg Release - 2210.1.img

boot-beryllium-ebbg Release - 2210.1.img

boot-beryllium-ebbg Release - 2210.1.img

boot-beryllium-ebbg Release - 2210.1.img</code></pre>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<pre class="wp-block-code"><code>no drivers</code></pre>



<pre class="wp-block-code"><code>
no drivers</code></pre>



<pre class="wp-block-code"><code>
v1.1.1


v1.1


FocalTechTouch v2.0rc1


v2.0rc1</code></pre>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<pre class="wp-block-code"><code>INTERNAL_POWER_ERROR</code></pre>



<pre class="wp-block-code"><code>
installer


SYSTEM THREAD EXCEPTION NOT HANDLED


SYSTEM THREAD EXCEPTION NOT HANDLED

installer


SYSTEM THREAD EXCEPTION NOT HANDLED</code></pre>
</div>
</div>



<p class="wp-block-paragraph">Sorry the table doesn&#8217;t format well.</p>



<p class="wp-block-paragraph">TL;DR don&#8217;t do it, unless you don&#8217;t mind spending too much time on this.  Get a used Surface X instead.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2023/07/01/64bit-computing-on-a-budget/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
		<item>
		<title>Running the SWGEMU server on WSL</title>
		<link>https://virtuallyfun.com/2022/12/08/running-the-swgemu-server-on-wsl/</link>
					<comments>https://virtuallyfun.com/2022/12/08/running-the-swgemu-server-on-wsl/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Thu, 08 Dec 2022 16:32:47 +0000</pubDate>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[WSL]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=12093</guid>

					<description><![CDATA[The topic had come up again about running Core3 aka the Star Wars Galaxies EMUlated server at home. It&#8217;s always been a somewhat involved setup, but with the advent of the Windows Subsystem for Linux, there exists the ability to &#8230; <a href="https://virtuallyfun.com/2022/12/08/running-the-swgemu-server-on-wsl/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode.png"><img loading="lazy" decoding="async" width="1024" height="576" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode-1024x576.png" alt="" class="wp-image-12098" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode-1024x576.png 1024w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode-300x169.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode-768x432.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode-500x281.png 500w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-god-mode.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">All alone</figcaption></figure>



<p class="wp-block-paragraph">The topic had come up again about running Core3 aka the Star Wars Galaxies EMUlated server at home.  It&#8217;s always been a somewhat involved setup, but with the advent of the Windows Subsystem for Linux, there exists the ability to export and import filesystems as if they were containers.  With that in hand I went ahead and set one up.</p>



<p class="wp-block-paragraph">I initially targeted the older WSL v1, as it supports far more hardware, and I didn&#8217;t want to leave so many behind.  The added benefit of targeting v1, is that the end user can upgrade the filesystem to v2 if they so choose.  The only real difference in this project between v1 &amp; v2 is that v1 cannot run the needed MySQL instance.  This isn&#8217;t a showstopper however as there exists MySQL &amp; MariaDB native versions for Windows.</p>



<p class="wp-block-paragraph">Obviously, you&#8217;ll need Windows 10 or 11 to do this.  From what I can tell even the home version of Windows 10 has WSL capabilities, so this doesn&#8217;t pose any problems.  Simply open the legacy control panel (Windows+R then type in &#8216;control&#8217;), and go to the Programs.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-contgrol.png"><img loading="lazy" decoding="async" width="596" height="492" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-contgrol.png" alt="" class="wp-image-12095" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-contgrol.png 596w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-contgrol-300x248.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-contgrol-363x300.png 363w" sizes="auto, (max-width: 596px) 100vw, 596px" /></a></figure>



<p class="wp-block-paragraph"> and then &#8216;Turn Windows features on or off&#8217;, scroll down and select &#8216;Windows Subsystem for Linux&#8217;.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem.png"><img loading="lazy" decoding="async" width="914" height="603" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem.png" alt="" class="wp-image-12094" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem.png 914w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem-300x198.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem-768x507.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-1-install-subsystem-455x300.png 455w" sizes="auto, (max-width: 914px) 100vw, 914px" /></a></figure>



<p class="wp-block-paragraph">Hit OK, and it&#8217;ll download what is needed from the internet.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-2-searching.png"><img loading="lazy" decoding="async" width="701" height="565" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-2-searching.png" alt="" class="wp-image-12096" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-2-searching.png 701w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-2-searching-300x242.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-2-searching-372x300.png 372w" sizes="auto, (max-width: 701px) 100vw, 701px" /></a></figure>



<p class="wp-block-paragraph">This shouldn&#8217;t take too long, then it&#8217;ll want to reboot the computer.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-3-reboot.png"><img loading="lazy" decoding="async" width="666" height="487" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-3-reboot.png" alt="" class="wp-image-12097" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-3-reboot.png 666w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-3-reboot-300x219.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-3-reboot-410x300.png 410w" sizes="auto, (max-width: 666px) 100vw, 666px" /></a></figure>



<p class="wp-block-paragraph">Now you just have to wait for Windows to reboot.</p>



<p class="wp-block-paragraph">Now you&#8217;ll need to download the filesystem.  I&#8217;ve put it on archive.org for the time being right here: <a href="https://archive.org/download/wslv1-SWGEMU_Ubuntu20.22">wslv1-SWGEMU_Ubuntu20.22 directory listing (archive.org)</a></p>



<p class="wp-block-paragraph">At a minimum you&#8217;ll need the files:</p>



<ul class="wp-block-list">
<li>swgemu-ubuntu.tar.gz</li>



<li>mariadb-10.10.2-winx64.msi</li>
</ul>



<p class="wp-block-paragraph">Keep in mind that the filesystem is 4.8GB.  It will take some time to download.  If the torrent servers are functioning I would highly recommend that.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6.2GB-installed.png"><img loading="lazy" decoding="async" width="465" height="316" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6.2GB-installed.png" alt="" class="wp-image-12119" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6.2GB-installed.png 465w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6.2GB-installed-300x204.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6.2GB-installed-441x300.png 441w" sizes="auto, (max-width: 465px) 100vw, 465px" /></a></figure>



<p class="wp-block-paragraph">Once it&#8217;s installed and it&#8217;s generated it&#8217;s own databases it&#8217;ll need just under 7GB of disk space.  So figure that you need 15GB free for this fun experiment.</p>



<p class="wp-block-paragraph">The first step is to install the database server.  We will need to know the settings in order to configure the swgemu server.  </p>



<p class="wp-block-paragraph">You can use any MySQL, but Maria is fully GPL, and small, and more importantly doesn&#8217;t involve Oracle.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-4-maria-splash.png"><img loading="lazy" decoding="async" width="510" height="402" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-4-maria-splash.png" alt="" class="wp-image-12099" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-4-maria-splash.png 510w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-4-maria-splash-300x236.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-4-maria-splash-381x300.png 381w" sizes="auto, (max-width: 510px) 100vw, 510px" /></a></figure>



<p class="wp-block-paragraph">The install is pretty striaghtfoward.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-5-maria-license.png"><img loading="lazy" decoding="async" width="520" height="403" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-5-maria-license.png" alt="" class="wp-image-12100" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-5-maria-license.png 520w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-5-maria-license-300x233.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-5-maria-license-387x300.png 387w" sizes="auto, (max-width: 520px) 100vw, 520px" /></a></figure>



<p class="wp-block-paragraph">GNU software requires it reproduce the license sooo here we are.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6-maria-options.png"><img loading="lazy" decoding="async" width="621" height="442" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6-maria-options.png" alt="" class="wp-image-12101" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6-maria-options.png 621w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6-maria-options-300x214.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-6-maria-options-421x300.png 421w" sizes="auto, (max-width: 621px) 100vw, 621px" /></a></figure>



<p class="wp-block-paragraph">I would HIGHLY recommend use the default option of install everything.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-7-maria-security.png"><img loading="lazy" decoding="async" width="536" height="436" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-7-maria-security.png" alt="" class="wp-image-12102" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-7-maria-security.png 536w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-7-maria-security-300x244.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-7-maria-security-369x300.png 369w" sizes="auto, (max-width: 536px) 100vw, 536px" /></a></figure>



<p class="wp-block-paragraph">It will ask for a root password.  In this example I&#8217;m using &#8216;password&#8217;, of course you can use anything you want, as long as you remember it.  You don&#8217;t have to allow remote machine access to the database as WSLv1 runs in the same userspace on Windows, so it&#8217;ll effectively be connecting to itself.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-8-maria-network.png"><img loading="lazy" decoding="async" width="522" height="398" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-8-maria-network.png" alt="" class="wp-image-12103" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-8-maria-network.png 522w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-8-maria-network-300x229.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-8-maria-network-393x300.png 393w" sizes="auto, (max-width: 522px) 100vw, 522px" /></a></figure>



<p class="wp-block-paragraph">I use TCP port 10000 as I want the default port 3306 for another insance.  Again it&#8217;s all up to you but you will have to remember what port you put it on.  Ports below 1000 are highly NOT recommended as they need special permission.  I left the buffer pool as default</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-9-Install-Maria.png"><img loading="lazy" decoding="async" width="536" height="415" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-9-Install-Maria.png" alt="" class="wp-image-12104" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-9-Install-Maria.png 536w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-9-Install-Maria-300x232.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-9-Install-Maria-387x300.png 387w" sizes="auto, (max-width: 536px) 100vw, 536px" /></a></figure>



<p class="wp-block-paragraph">With those options set we can let it do the install.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-10-finish-Install-Maria.png"><img loading="lazy" decoding="async" width="571" height="431" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-10-finish-Install-Maria.png" alt="" class="wp-image-12105" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-10-finish-Install-Maria.png 571w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-10-finish-Install-Maria-300x226.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-10-finish-Install-Maria-397x300.png 397w" sizes="auto, (max-width: 571px) 100vw, 571px" /></a></figure>



<p class="wp-block-paragraph">Now the database is installed, and we can go onto restoring the WSL image, and then configuring the core3 server</p>



<p class="wp-block-paragraph">Firstly we need place to put it, On the machine I built it on it was the D: drive, but for this re-deploy on a new machine I&#8217;m using the C: drive.  It&#8217;s all up to you but it MUST be a locally attached disk, no USB disks.</p>



<p class="wp-block-paragraph">Simply create the target directory and run the import command something like this:</p>



<pre class="wp-block-preformatted">md c:\starwars
wsl --import swgemu c:\starwars Downloads\swgemu-ubuntu.tar.gz</pre>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem.png"><img loading="lazy" decoding="async" width="943" height="487" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem.png" alt="" class="wp-image-12106" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem.png 943w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem-300x155.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem-768x397.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-11-restoring-filesystem-500x258.png 500w" sizes="auto, (max-width: 943px) 100vw, 943px" /></a><figcaption class="wp-element-caption">I only have the one disk on this VM</figcaption></figure>



<p class="wp-block-paragraph">This will take a while.</p>



<p class="wp-block-paragraph">Once it&#8217;s done you can check the subsystem status:</p>



<pre class="wp-block-preformatted">C:\Users\Administrator&gt;wsl --list -v
  NAME      STATE           VERSION
* swgemu    Stopped         1</pre>



<p class="wp-block-paragraph">You may have more than one installed, so we&#8217;ll refer to this one by it&#8217;s name &#8216;swgemu&#8217;.</p>



<p class="wp-block-paragraph">You can start the instance with wsl -d swgemu:</p>



<pre class="wp-block-preformatted">C:\Users\Administrator&gt;wsl -d swgemu
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Thu Dec  8 09:02:39 EST 2022

  System load:    0.5185546875   Processes:             7
  Usage of /home: unknown        Users logged in:       0
  Memory usage:   28%            IPv4 address for eth0: 198.46.174.160
  Swap usage:     0%


0 updates can be applied immediately.



This message is shown once a day. To disable it please create the
/root/.hushlogin file.</pre>



<p class="wp-block-paragraph">You will need to edit the script to create the databases.  I like using vi, but you may not.  The easiest way is to just browse to the location and open it up in notepad.  The path to browse is:</p>



<pre class="wp-block-preformatted">C:\starwars\rootfs\root\starwars\sql</pre>



<p class="wp-block-paragraph">You can drag/drop re-init.sh on notepad, or make the file association, it&#8217;s all up to you.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script.png"><img loading="lazy" decoding="async" width="956" height="480" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script.png" alt="" class="wp-image-12107" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script.png 956w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script-300x151.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script-768x386.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-12-edit-the-re-init-script-500x251.png 500w" sizes="auto, (max-width: 956px) 100vw, 956px" /></a></figure>



<p class="wp-block-paragraph">I had set the SQLHOST to the LAN IP I have, you should set it to 127.0.0.1 .  The PUBLIC address is the one that you&#8217;ll be connecting to.  You can set it to your LAN address, or a public one if you know it (you&#8217;ll have to setup NAT), or if you are running it all on one machine for testing, it&#8217;s fine to be 127.0.0.1.</p>



<p class="wp-block-paragraph">Save the file re-init.sh and now you have to run it.</p>



<pre class="wp-block-preformatted">root@DESKTOP-E4F55FE:~# cd starwars/sql/
root@DESKTOP-E4F55FE:~/starwars/sql# ./re-init.sh
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1008 (HY000) at line 1: Can't drop database 'swgemu'; database doesn't exist
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
root@DESKTOP-E4F55FE:~/starwars/sql#</pre>



<p class="wp-block-paragraph">The first SQL query will attempt to drop the swgemu database.  In this case it doesn&#8217;t exist, so the first error is expected.  Nothing to worry about.  That gives us the database, now it&#8217;s time to configure the server.</p>



<p class="wp-block-paragraph">You can use explorer to browse to:</p>



<pre class="wp-block-preformatted">C:\starwars\rootfs\root\starwars\conf</pre>



<p class="wp-block-paragraph">Now open/drop on notepad the file config.lua</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file.png"><img loading="lazy" decoding="async" width="870" height="601" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file.png" alt="" class="wp-image-12108" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file.png 870w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file-300x207.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file-768x531.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-13-edit-config.lua-file-434x300.png 434w" sizes="auto, (max-width: 870px) 100vw, 870px" /></a></figure>



<p class="wp-block-paragraph">Again change the DBHost, and MantisHost to 127.0.0.1, and update the password for root, if you have changed it.  You may also want to change the DBSecret, but since this is all for fun, I&#8217;m leaving it stock.</p>



<p class="wp-block-paragraph">Now it&#8217;s time to run the server.</p>



<pre class="wp-block-preformatted">root@DESKTOP-E4F55FE:~/starwars/sql# cd ..
root@DESKTOP-E4F55FE:~/starwars# ./core3
(0 s) [Core] Server start, pid: 105, time: Thu Dec  8 09:11:54 2022
(0 s) [ConfigManager] Did not find conf/config-local.lua
(0 s) [DatabaseManager] converting database objects to new format
(0 s) [DatabaseManager] finished converting data to new format</pre>



<p class="wp-block-paragraph">There will be a lot of messages going on, and this will take a few minutes.  During the first run Windows will ask for network access permissions. Be sure to check both boxes allowing WAN and LAN access.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-14-allow-network-access.png"><img loading="lazy" decoding="async" width="733" height="463" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-14-allow-network-access.png" alt="" class="wp-image-12110" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-14-allow-network-access.png 733w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-14-allow-network-access-300x189.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-14-allow-network-access-475x300.png 475w" sizes="auto, (max-width: 733px) 100vw, 733px" /></a><figcaption class="wp-element-caption">Check both boxes!</figcaption></figure>



<p class="wp-block-paragraph">I have a Lenovo C20 and it takes about 2 minutes, depending on your config it may take longer or shorter.</p>



<p class="wp-block-paragraph">One thing to point out is that I have configured Core3 for all the worlds, and this will need more than 8GB of ram to start up.  So if you get something like this:</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3.png"><img loading="lazy" decoding="async" width="966" height="591" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3.png" alt="" class="wp-image-12111" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3.png 966w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3-300x184.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3-768x470.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-15-system-memory-use3-490x300.png 490w" sizes="auto, (max-width: 966px) 100vw, 966px" /></a></figure>



<p class="wp-block-paragraph">If this happens, you&#8217;ll have to try a minimal config, commenting out the areas from the config.  On this test system, it only has 8GB of RAM, and that isn&#8217;t enough to have everything.  However the minimal of the training &amp; Tatooine fits no problem:</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal.png"><img loading="lazy" decoding="async" width="948" height="600" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal.png" alt="" class="wp-image-12112" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal.png 948w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal-300x190.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal-768x486.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-16-initialized-with-minimal-474x300.png 474w" sizes="auto, (max-width: 948px) 100vw, 948px" /></a></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="667" height="62" src="https://virtuallyfun.com/wp-content/uploads/2022/12/core3-needs-6.3GB-of-ram-to-run-fully-loaded.png" alt="" class="wp-image-12117" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/core3-needs-6.3GB-of-ram-to-run-fully-loaded.png 667w, https://virtuallyfun.com/wp-content/uploads/2022/12/core3-needs-6.3GB-of-ram-to-run-fully-loaded-300x28.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/core3-needs-6.3GB-of-ram-to-run-fully-loaded-500x46.png 500w" sizes="auto, (max-width: 667px) 100vw, 667px" /></figure>



<p class="wp-block-paragraph">On the machine I originally set this up on, it has 32GB of RAM, so the processes needing just under 7GB of RAM wasn&#8217;t an issue.  However an 8GB machine just isn&#8217;t enough as I found out the hard way re-producing my install.</p>



<p class="wp-block-paragraph">Since we have previously allowed the Core3 application LAN/WAN access you should be able to connect.  If you set the public address to something public, you will need to setup your firewall to forward the following ports to the machine hosting Core3</p>



<p class="wp-block-paragraph">Otherwise you&#8217;ll need to open the following ports and protocols:</p>



<p class="wp-block-paragraph">TCP 44419<br>TCP 44455<br>UDP 44453<br>UDP 44462<br>UDP 44463</p>



<p class="wp-block-paragraph">Again making this a WSLv1 setup makes this easier as Windows runs core3 in the same memory space.</p>



<p class="wp-block-paragraph">With any luck you should now be able to connect to the address you have specified as your PUBLIC address.  If you want to change, you can either update the re-init.sh script and re-run it, destroying everything, or run the HeidiSQL tool, and just update it.</p>



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



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-20-connect-with-Heidi-SQL.png"><img loading="lazy" decoding="async" width="690" height="486" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-20-connect-with-Heidi-SQL.png" alt="" class="wp-image-12114" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-20-connect-with-Heidi-SQL.png 690w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-20-connect-with-Heidi-SQL-300x211.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-20-connect-with-Heidi-SQL-426x300.png 426w" sizes="auto, (max-width: 690px) 100vw, 690px" /></a></figure>



<p class="wp-block-paragraph">I had to set it to use libmysql.dll .  As always remember your root password, and what Port you used to setup MariaDB.  With the profile saved you can open it up.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address.png"><img loading="lazy" decoding="async" width="862" height="362" src="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address.png" alt="" class="wp-image-12115" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address.png 862w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address-300x126.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address-768x323.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/swgemu-wsl-21-set-the-galaxy-public-address-500x210.png 500w" sizes="auto, (max-width: 862px) 100vw, 862px" /></a></figure>



<p class="wp-block-paragraph">The address field tells the clients what IP address they can find the server on, so it can the the LAN if you are staying at home, or it has to be a Publicly accessible one.  Another alternative is something like <a rel="noreferrer noopener" href="https://vpn.net/" target="_blank">Hamachi</a>, which lets you create your own virtual network of machines.  It&#8217;s great, but not all that cheap, but the added benefit is that your server isn&#8217;t a public resource, so you know exactly who is connecting. </p>



<figure class="wp-block-image size-large"><a href="https://vpn.net/"><img loading="lazy" decoding="async" width="1024" height="217" src="https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing-1024x217.png" alt="" class="wp-image-12116" srcset="https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing-1024x217.png 1024w, https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing-300x63.png 300w, https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing-768x162.png 768w, https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing-500x106.png 500w, https://virtuallyfun.com/wp-content/uploads/2022/12/hamachi-pricing.png 1291w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">If you want to be open but in control I&#8217;ve used this in the past to great success.</figcaption></figure>



<p class="wp-block-paragraph">If you do change the IP you have to restart the core3 program.</p>



<p class="wp-block-paragraph">Simply type in &#8216;exit&#8217; at the console and it&#8217;ll start to gracefully shutdown.</p>



<p class="wp-block-paragraph">Then simply start it again with a ./core3</p>



<p class="wp-block-paragraph">If you want to enable the god mode, I assume you have read how what changes to make on the client side, and the table to edit is the accounts table, once you have logged in, it&#8217;ll create your record, and you can find it on HeidiSQL and change the admin_level field to 15.  With this set the next character you create will be a &#8216;god&#8217;.</p>



<p class="wp-block-paragraph">It&#8217;s worth noting that your 1st player won&#8217;t have the god mode enabled, but rather the 2nd onward will have the GOD mode flag set.</p>



<p class="wp-block-paragraph">To enable the / commands (aka the whole fun of god mode!) you need to edit the swgemu.cfg file in your Star Wars Galaxies directory.  You need to uncomment the following line:</p>



<pre class="wp-block-code"><code># .include “user.cfg”</code></pre>



<p class="wp-block-paragraph">Next you need to create a user.cfg file in that directory with the following:</p>



<pre class="wp-block-code"><code>&#91;SwgClient]
allowMultipleInstances=true
&#91;ClientGame]
0fd345d9=true
&#91;ClientUserInterface]
debugExamine=1</code></pre>



<p class="wp-block-paragraph">Now any server you can login to you can run exciting commands like </p>



<pre class="wp-block-code"><code>/setspeed 10 30</code></pre>



<p class="wp-block-paragraph">I&#8217;m not going to go into setting up the client, installing the SWGEMU stuff and how to add custom servers, as I assume you already know how to do so.  This is more to let people run their own instances at home, or among friends.</p>



<p class="wp-block-paragraph">On building core3 for yourself, be aware that by default it&#8217;ll use a &#8216;native&#8217; config option that tunes the compiler to generate code as fast as possible for YOUR processor. So if you want to run it somewhere else, it has a good chance of not running.  I had to edit the following files:</p>



<pre class="wp-block-preformatted">./CMakeLists.txt<br>./utils/engine3/MMOEngine/CMakeLists.txt</pre>



<p class="wp-block-paragraph">And change NATIVE to NO.</p>



<p class="wp-block-paragraph">I also had issues with the SQL not having a default setting for timestamps, and it would fail to create accounts.  Look for stuff like this:</p>



<pre class="wp-block-preformatted">TIMESTAMP NOT NULL,</pre>



<p class="wp-block-paragraph">and replace it with</p>



<pre class="wp-block-preformatted">TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,</pre>



<p class="wp-block-paragraph">And as of this current rev I had some issues with malloc hooks, which I just commented out:</p>



<pre class="wp-block-code"><code>$ diff -ruN AllocationHook.cpp_ utils/engine3/MMOEngine/src/system/mm/AllocationHook.cpp
--- AllocationHook.cpp_ 2022-12-06 07:59:42.160402900 +0000
+++ utils/engine3/MMOEngine/src/system/mm/AllocationHook.cpp 2022-12-06 08:00:22.510402900 +0000
@@ -50,6 +50,7 @@
        instance = this;

 #ifndef PLATFORM_MAC
+#if 0
        __saved_malloc_hook = __malloc_hook;
        __saved_free_hook = __free_hook;
        __saved_realloc_hook = __realloc_hook;
@@ -58,6 +59,7 @@
        __malloc_hook = mallocHook;
        __free_hook = freeHook;
        __realloc_hook = reallocHook;
+#endif

 #else
        malloc_zone_t *dz = malloc_default_zone();
@@ -91,9 +93,11 @@

 void AllocationHook::uninstall() {
 #ifndef PLATFORM_MAC
+#if 0
        __malloc_hook = __saved_malloc_hook;
        __free_hook = __saved_free_hook;
        __realloc_hook = __saved_realloc_hook;
+#endif
 #else
        malloc_zone_t *dz = malloc_default_zone();

$</code></pre>



<p class="wp-block-paragraph">Yes it&#8217;s terrible, but I was in a rush so.. yeah.</p>



<p class="wp-block-paragraph">Also I have access to a Windows 2019 Server which is Windows 10 1809 based, and it doesn&#8217;t support the import-export of filesystems.  So this won&#8217;t be a clean install, I guess it&#8217;d be easier to copy files over from Windows 10, and install Ubuntu 20.22 from the store.</p>



<p class="wp-block-paragraph">Good Luck!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2022/12/08/running-the-swgemu-server-on-wsl/feed/</wfw:commentRss>
			<slash:comments>19</slash:comments>
		
		
			</item>
		<item>
		<title>Windows scp to remote machines with spaces in the directories</title>
		<link>https://virtuallyfun.com/2022/10/06/windows-scp-to-remote-machines-with-spaces-in-the-directories/</link>
					<comments>https://virtuallyfun.com/2022/10/06/windows-scp-to-remote-machines-with-spaces-in-the-directories/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Thu, 06 Oct 2022 05:55:44 +0000</pubDate>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=11973</guid>

					<description><![CDATA[Well one nice thing about Windows 10 is that it has a built in ssh/scp client! Although telnet is optional, I get that it&#8217;s insecure but jeez what is a retro user to do? Anyways the subject at hand is &#8230; <a href="https://virtuallyfun.com/2022/10/06/windows-scp-to-remote-machines-with-spaces-in-the-directories/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Well one nice thing about Windows 10 is that it has a built in ssh/scp client!  Although telnet is optional, I get that it&#8217;s insecure but jeez what is a retro user to do?</p>



<p class="wp-block-paragraph">Anyways the subject at hand is copying files from somewhere that has spaces in the path.  In this case I need a copy of OS X Snow Leopard from my Mac Pro cylinder to this junk Fujitsu Celsius.  I&#8217;m still having USB issues, but I&#8217;d like to get my data off of an external disk formatted in HFS+.  And for &#8216;reasons&#8217; I wanted to use something &#8220;<em>native</em>&#8221; but I don&#8217;t feel like building a Hackintosh.  While not a strict tutorial on getting Snow Leopard running, I did upload my old download of <a href="https://archive.org/details/empire-efi-v-108" target="_blank" rel="noreferrer noopener">Empire EFI on archive.org</a> as this kind of stuff is damned near impossible to find.</p>



<p class="wp-block-paragraph">So back to the matter at hand, I have this VM setup on my Mac Pro, and I want it on this Windows machine.  You&#8217;d think it would be something like this:</p>



<pre class="wp-block-preformatted">scp -C neozeed@192.168.8.10:"/Users/neozeed/Virtual Machines.localized/OSX 10.6/*" .
Password:
scp: /Users/neozeed/Virtual: No such file or directory
scp: Machines.localized/OSX: No such file or directory
scp: 10.6/*: No such file or directory</pre>



<p class="wp-block-paragraph">Okay so double quotes didn&#8217;t work.  How about a Unix style escape for spaces?  I mean it *is* scp after all, maybe it doesn&#8217;t know it&#8217;s on Windows.</p>



<pre class="wp-block-preformatted">C:\osx&gt;scp -C neozeed@192.168.8.10:"/Users/neozeed/Virtual\ Machines.localized/OSX\ 10.6/*" .
Password:
scp: /Users/neozeed/Virtual: No such file or directory
scp: Machines.localized/OSX: No such file or directory
scp: 10.6/*: No such file or directory
</pre>



<p class="wp-block-paragraph">Well maybe it parses it like C, so you need double backslash? <strong>NO</strong> that doesn&#8217;t work either.  Talk about frustrating.  So, in an act of insanity, I tried single quoting the interior spaces around double quotes, something idiotic like a bash variable:</p>



<pre class="wp-block-preformatted">C:\osx&gt;scp -C neozeed@192.168.8.10:"/Users/neozeed/Virtual' 'Machines.localized/OSX' '10.6/*" .
Password:
Mac OS Snow Leopard.vmdk                                                               69%   11GB  16.0MB/s   05:16 ETA

</pre>



<p class="wp-block-paragraph">And yes, now it&#8217;s transferring.  I&#8217;m just using a cheap 50zt 5 port 100Mbit dumb switch.  It&#8217;s good enough and it&#8217;ll probably take some 30 minutes to transfer all the bits, but it&#8217;s <strong><em>working</em></strong>.</p>



<p class="wp-block-paragraph">So there you go.  You may not need it now, or tomorrow but it&#8217;ll save you the 20 minutes of frustration!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2022/10/06/windows-scp-to-remote-machines-with-spaces-in-the-directories/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>So I was missing Windows 10 Phone, so I fired up the emulator</title>
		<link>https://virtuallyfun.com/2021/09/30/so-i-was-missing-windows-10-phone-so-i-fired-up-the-emulator/</link>
					<comments>https://virtuallyfun.com/2021/09/30/so-i-was-missing-windows-10-phone-so-i-fired-up-the-emulator/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 16:11:15 +0000</pubDate>
				<category><![CDATA[disk images]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[Windows 10]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=11375</guid>

					<description><![CDATA[First you can download it here: https://www.microsoft.com/en-us/download/details.aspx?id=53424 In my &#8220;C:\Program Files (x86)\Windows Kits\10\Emulation\Mobile\10.0.14393.0&#8221; directory I have a modest 2GB file called flash.vhd which contains the phone image. I copy it to where I run my VM&#8217;s and run it with &#8230; <a href="https://virtuallyfun.com/2021/09/30/so-i-was-missing-windows-10-phone-so-i-fired-up-the-emulator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">First you can download it here:</p>



<p class="wp-block-paragraph"><a rel="noreferrer noopener" href="https://www.microsoft.com/en-us/download/details.aspx?id=53424" target="_blank">https://www.microsoft.com/en-us/download/details.aspx?id=53424</a></p>



<p class="wp-block-paragraph">In my &#8220;C:\Program Files (x86)\Windows Kits\10\Emulation\Mobile\10.0.14393.0&#8221; directory I have a modest 2GB file called flash.vhd which contains the phone image.  I copy it to where I run my VM&#8217;s and run it with the XDE emulator:</p>



<pre class="wp-block-preformatted">"C:\Program Files (x86)\Microsoft XDE\10.0.14393.0\"xde /memsize 3072 /vhd FLASH.vhd</pre>



<p class="wp-block-paragraph">And I&#8217;m running in no time, I login, load some apps, then I notice the storage:</p>



<div class="wp-block-image"><figure class="alignleft size-full is-resized"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/phone-for-ants.jpg"><img loading="lazy" decoding="async" src="https://virtuallyfun.com/wp-content/uploads/2021/09/phone-for-ants.jpg" alt="" class="wp-image-11376" width="314" height="181" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/phone-for-ants.jpg 314w, https://virtuallyfun.com/wp-content/uploads/2021/09/phone-for-ants-300x173.jpg 300w" sizes="auto, (max-width: 314px) 100vw, 314px" /></a><figcaption>What is this, a phone for ants?</figcaption></figure></div>



<p class="wp-block-paragraph">What?!  the disk image is a paultry 10GB. I guess the idea is that you wouldn&#8217;t actually try to load up the emulator like it&#8217;s your daily driver, rather you load YOUR app and only YOUR app, and just pretend that this isn&#8217;t some weird offshoot nostalgia machine.</p>



<p class="wp-block-paragraph">Well needless to say something needs to be done about this storage situation.</p>



<p class="wp-block-paragraph">I look and find this package, vhdutils.  I had to go to some sketchy site, but it did include source.  I should put this somewhere more legit to take away from all those weird squatters.</p>



<p class="wp-block-paragraph">Update from the future I put <a href="https://github.com/neozeed/VHD-Utilities/tree/v1.0">VHD-Utilities over on GitHub, along with downloadable EXE&#8217;s</a>.  I can&#8217;t get the original site to load in wayback to give credit to whomever wrote it.</p>



<pre class="wp-block-preformatted">30/09/2021 09:09 pm 6,995,017,728 FLASH.vhd</pre>



<p class="wp-block-paragraph">So with stuff installed onto my phone I&#8217;m almost at 7GB physical 7.6 virtual space.  I could go all crazy with 128 or 256GB but it&#8217;d largely be stuff I bought&#8230; which of course thanks to the magical world of DRM won&#8217;t play.</p>



<div class="wp-block-image"><figure class="alignright size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/windows-10-phone-drm.jpg"><img loading="lazy" decoding="async" width="284" height="63" src="https://virtuallyfun.com/wp-content/uploads/2021/09/windows-10-phone-drm.jpg" alt="" class="wp-image-11377"/></a></figure></div>



<p class="wp-block-paragraph">Yeah I guess you are welcome that I bought all those movies, and stuff but sure I wasn&#8217;t going to watch them on this phone&#8230; emulator. Thanks. thanks again.</p>



<p class="wp-block-paragraph">So the resize vhd is quick. brutal. and efficient.  I go with 64GB, because, why not?  I could probably just grow it again if I needed to.</p>



<pre class="wp-block-preformatted">resizevhd.exe v:\Windows10-Phone\FLASH.vhd 68719476736</pre>



<p class="wp-block-paragraph">Now for the fun part.  We need to attach the vhd, and resize the volume. I hope you like diskpart.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/storage-attach-disk.jpg"><img loading="lazy" decoding="async" width="762" height="405" src="https://virtuallyfun.com/wp-content/uploads/2021/09/storage-attach-disk.jpg" alt="" class="wp-image-11378" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/storage-attach-disk.jpg 762w, https://virtuallyfun.com/wp-content/uploads/2021/09/storage-attach-disk-300x159.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/storage-attach-disk-500x266.jpg 500w" sizes="auto, (max-width: 762px) 100vw, 762px" /></a></figure>



<p class="wp-block-paragraph">In the MMC I attach the disk image.. it&#8217;ll pop a few folders as it&#8217;s got a bunch of drive letters.  I&#8217;ve never explored a phone, I don&#8217;t know if the ARM images are just as weird.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/so-many-partitions.png"><img loading="lazy" decoding="async" width="470" height="107" src="https://virtuallyfun.com/wp-content/uploads/2021/09/so-many-partitions.png" alt="" class="wp-image-11379" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/so-many-partitions.png 470w, https://virtuallyfun.com/wp-content/uploads/2021/09/so-many-partitions-300x68.png 300w" sizes="auto, (max-width: 470px) 100vw, 470px" /></a></figure></div>



<p class="wp-block-paragraph">Even more strange, it&#8217;s MBR!</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/10/windows-phone-emulator-is-MBR-1.jpg"><img loading="lazy" decoding="async" width="394" height="456" src="https://virtuallyfun.com/wp-content/uploads/2021/10/windows-phone-emulator-is-MBR-1.jpg" alt="" class="wp-image-11391" srcset="https://virtuallyfun.com/wp-content/uploads/2021/10/windows-phone-emulator-is-MBR-1.jpg 394w, https://virtuallyfun.com/wp-content/uploads/2021/10/windows-phone-emulator-is-MBR-1-259x300.jpg 259w" sizes="auto, (max-width: 394px) 100vw, 394px" /></a></figure></div>



<p class="wp-block-paragraph">So if you were thinking, lots of partitions, and a clear win for GPT, sadly this isn&#8217;t it.</p>



<p class="wp-block-paragraph">Sadly there is no free partitions (although one hiding could be deleted&#8230;?) And the UI doesn&#8217;t support expanding a logical drive (the green container).  But diskpart does.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk.png"><img loading="lazy" decoding="async" width="979" height="374" src="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk.png" alt="" class="wp-image-11380" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk.png 979w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk-300x115.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk-768x293.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-disk-500x191.png 500w" sizes="auto, (max-width: 979px) 100vw, 979px" /></a></figure></div>



<p class="wp-block-paragraph">As indicated above the emulator&#8217;s vhd is disk3.  You can see it&#8217;s the 64GB disk.  Select it.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume.png"><img loading="lazy" decoding="async" width="979" height="353" src="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume.png" alt="" class="wp-image-11381" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume.png 979w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume-300x108.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume-768x277.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-list-volume-500x180.png 500w" sizes="auto, (max-width: 979px) 100vw, 979px" /></a></figure>



<p class="wp-block-paragraph">Next list the volumes.  The Data disk (J:) is what we want so select Volume 10.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume.png"><img loading="lazy" decoding="async" width="979" height="430" src="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume.png" alt="" class="wp-image-11382" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume.png 979w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume-300x132.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume-768x337.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-select-and-extend-volume-500x220.png 500w" sizes="auto, (max-width: 979px) 100vw, 979px" /></a></figure>



<p class="wp-block-paragraph">Literally just &#8216;select volume 10&#8217; and &#8216;extend&#8217;.  Don&#8217;t tell me this is difficult.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended.png"><img loading="lazy" decoding="async" width="979" height="512" src="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended.png" alt="" class="wp-image-11383" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended.png 979w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended-300x157.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended-768x402.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/09/diskpart-volume-extended-500x261.png 500w" sizes="auto, (max-width: 979px) 100vw, 979px" /></a></figure>



<p class="wp-block-paragraph">Listing the volumes again will show a 59GB Data partition.  Congratulations we did it!</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/detach-disk.jpg"><img loading="lazy" decoding="async" width="603" height="384" src="https://virtuallyfun.com/wp-content/uploads/2021/09/detach-disk.jpg" alt="" class="wp-image-11384" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/detach-disk.jpg 603w, https://virtuallyfun.com/wp-content/uploads/2021/09/detach-disk-300x191.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/detach-disk-471x300.jpg 471w" sizes="auto, (max-width: 603px) 100vw, 603px" /></a></figure>



<p class="wp-block-paragraph">Back in the MMC, you&#8217;ll see it as well how the Data partition, along with the green extended partition is now taking up the entire disk.  So we can now Detach the VHD, and run the emulator again!</p>



<div class="wp-block-image"><figure class="alignleft size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/64gb-free-on-the-phone.png"><img loading="lazy" decoding="async" width="318" height="200" src="https://virtuallyfun.com/wp-content/uploads/2021/09/64gb-free-on-the-phone.png" alt="" class="wp-image-11385" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/64gb-free-on-the-phone.png 318w, https://virtuallyfun.com/wp-content/uploads/2021/09/64gb-free-on-the-phone-300x189.png 300w" sizes="auto, (max-width: 318px) 100vw, 318px" /></a><figcaption>Nice!</figcaption></figure></div>



<p class="wp-block-paragraph">And just like that we now have plenty of free space on the emulator.</p>



<p class="wp-block-paragraph">I downloaded some games, and some music.  It&#8217;s nice to be back home.</p>



<p class="wp-block-paragraph">It&#8217;s not an extensive list as I didn&#8217;t game much on my phone but here is what I know works:</p>



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



<ul class="wp-block-list"><li>Final Fantasy 1</li><li>Heroes of Larkwood</li><li>Skulls of the Shogun</li><li>Sonic CD</li><li>FL Studio</li><li>Candy Crush Saga</li><li>Pixel Dungeon +</li></ul>



<p class="wp-block-paragraph">Halo Spartan Asslt just closes, and Asphalt 8: Airborne doesn&#8217;t get the screen size right so it&#8217;s impossible to click enough buttons.</p>



<figure class="wp-block-image size-full"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/sonic-cd-on-windows-10-phone.jpg"><img loading="lazy" decoding="async" width="762" height="412" src="https://virtuallyfun.com/wp-content/uploads/2021/09/sonic-cd-on-windows-10-phone.jpg" alt="" class="wp-image-11386" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/sonic-cd-on-windows-10-phone.jpg 762w, https://virtuallyfun.com/wp-content/uploads/2021/09/sonic-cd-on-windows-10-phone-300x162.jpg 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/sonic-cd-on-windows-10-phone-500x270.jpg 500w" sizes="auto, (max-width: 762px) 100vw, 762px" /></a><figcaption>Sonic CD on Windows Phone 10</figcaption></figure>



<p class="wp-block-paragraph">It&#8217;s nice that sonic runs, (haha) although using a mouse makes it impossible to control.</p>



<p class="wp-block-paragraph">Now one fun thing is that the emulator is x86, nor ARM based so I converted the VHD to a VMDK, ran it under VMware, and YES it RUNS&#8230; sort of.</p>



<figure class="wp-block-image size-large"><a href="https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware.png"><img loading="lazy" decoding="async" width="1024" height="823" src="https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware-1024x823.png" alt="" class="wp-image-11387" srcset="https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware-1024x823.png 1024w, https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware-300x241.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware-768x618.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware-373x300.png 373w, https://virtuallyfun.com/wp-content/uploads/2021/09/Windows-Phone-10-on-VMware.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p class="wp-block-paragraph">Perhaps a format that never was to be, the Phone/Tablet but it boots quickly and is so responsive.  Windows without most of the .. Windows bits.  I guess the real experiment will have to be will it run on a Surface?</p>



<p class="wp-block-paragraph">It&#8217;s all 32bit anyways, and such an evolutionary dead end.  Pitty.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2021/09/30/so-i-was-missing-windows-10-phone-so-i-fired-up-the-emulator/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Enable Hyper-V on Windows 10 Home</title>
		<link>https://virtuallyfun.com/2021/05/30/enable-hyper-v-on-windows-10-home/</link>
					<comments>https://virtuallyfun.com/2021/05/30/enable-hyper-v-on-windows-10-home/#respond</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Sun, 30 May 2021 23:39:10 +0000</pubDate>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=11095</guid>

					<description><![CDATA[So you are in a hurry and need to build a network in a box. It was a bit of a surprise, and you have no time. On site there is ONE computer, it&#8217;s a NUC. A tiny one. And &#8230; <a href="https://virtuallyfun.com/2021/05/30/enable-hyper-v-on-windows-10-home/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">So you are in a hurry and need to build a network in a box.  It was a bit of a surprise, and you have no time.  On site there is <em>ONE</em> computer, it&#8217;s a NUC.  A tiny one.  And you cannot replace the base OS for &#8220;reasons&#8221;&#8230;   No problem, you say, just add in Hyper-V and you can build an &#8216;older&#8217; but useful domain controller, exchange server, VPN &amp; utility servers and then yeah you find out the killer:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="570" height="224" src="https://virtuallyfun.com/wp-content/uploads/2021/05/Windows-10-home.png" alt="" class="wp-image-11096" srcset="https://virtuallyfun.com/wp-content/uploads/2021/05/Windows-10-home.png 570w, https://virtuallyfun.com/wp-content/uploads/2021/05/Windows-10-home-300x118.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/05/Windows-10-home-500x196.png 500w" sizes="auto, (max-width: 570px) 100vw, 570px" /><figcaption>Ugh</figcaption></figure>



<p class="wp-block-paragraph">Windows 10 Home.</p>



<p class="wp-block-paragraph">Well it turns out that you actually *CAN* install Windows 10 with a little command line shake and bake:</p>



<pre class="wp-block-preformatted">pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum &gt;hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^&gt;nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause</pre>



<p class="wp-block-paragraph">I picked up this tip from <a rel="noreferrer noopener" href="https://www.thewindowsclub.com/how-to-install-and-enable-hyper-v-on-windows-10-home" target="_blank">TheWindowsClub</a>.  And yep, it works!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="628" src="https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home-1024x628.png" alt="" class="wp-image-11097" srcset="https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home-1024x628.png 1024w, https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home-300x184.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home-768x471.png 768w, https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home-489x300.png 489w, https://virtuallyfun.com/wp-content/uploads/2021/05/HyperV-on-10Home.png 1088w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Super cool!</p>



<p class="wp-block-paragraph">Of course this also means you can turn your unsuspecting parent&#8217;s home machine into  a remote server&#8230;. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2021/05/30/enable-hyper-v-on-windows-10-home/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Windows Dev VM</title>
		<link>https://virtuallyfun.com/2021/03/08/windows-dev-vm/</link>
					<comments>https://virtuallyfun.com/2021/03/08/windows-dev-vm/#comments</comments>
		
		<dc:creator><![CDATA[tenox]]></dc:creator>
		<pubDate>Mon, 08 Mar 2021 11:21:31 +0000</pubDate>
				<category><![CDATA[guest post]]></category>
		<category><![CDATA[Visual C++]]></category>
		<category><![CDATA[Win32]]></category>
		<category><![CDATA[Win64]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=10889</guid>

					<description><![CDATA[(This is a guest post from Antoni Sawicki aka Tenox) I have been living under a rock for several years now when it comes to Windows development. Recently wanting to do some maintenance on couple of my projects I needed &#8230; <a href="https://virtuallyfun.com/2021/03/08/windows-dev-vm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><em>(This is a guest post from Antoni Sawicki aka Tenox)</em></p>



<p class="wp-block-paragraph">I have been living under a rock for several years now when it comes to Windows development. Recently wanting to do some maintenance on couple of my projects I needed to download Visual Studio and Windows SDK. Poking around the download page I have discovered that Microsoft now provides a <a href="https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/" data-type="URL" data-id="https://developer.microsoft.com/en-us/windows/downloads/virtual-machines/">fully pre-installed VMs with Visual Studio, SDK etc. for VMware, Hyper-V, VirtualBox and Parallels</a>. That&#8217;s actually super cool and handy. Thank you Microsoft!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="640" height="499" src="https://virtuallyfun.com/wp-content/uploads/2021/03/windevvm.png" alt="" class="wp-image-10890" srcset="https://virtuallyfun.com/wp-content/uploads/2021/03/windevvm.png 640w, https://virtuallyfun.com/wp-content/uploads/2021/03/windevvm-300x234.png 300w, https://virtuallyfun.com/wp-content/uploads/2021/03/windevvm-385x300.png 385w" sizes="auto, (max-width: 640px) 100vw, 640px" /></figure>



<p class="wp-block-paragraph">Looks like this has been available for 3 or 4 years now. Oh well.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2021/03/08/windows-dev-vm/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Windows 10 on the Raspberry Pi 4</title>
		<link>https://virtuallyfun.com/2020/07/24/windows-10-on-the-raspberry-pi-4/</link>
					<comments>https://virtuallyfun.com/2020/07/24/windows-10-on-the-raspberry-pi-4/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Fri, 24 Jul 2020 13:28:16 +0000</pubDate>
				<category><![CDATA[arm]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=10375</guid>

					<description><![CDATA[As far as computers go, Raspberry Pi&#8217;s are cheap. The latest (and vastly incompatible) Pi4 is no real exception. Now you&#8217;d think Microsoft would want to get WoA (Windows on ARM) into as many hands as possible to get people &#8230; <a href="https://virtuallyfun.com/2020/07/24/windows-10-on-the-raspberry-pi-4/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">As far as computers go, Raspberry Pi&#8217;s are cheap.  The latest (and vastly incompatible) Pi4 is no real exception.  Now you&#8217;d think Microsoft would want to get WoA (Windows on ARM) into as many hands as possible to get people to port apps to the new cpu architecture.  But that is not the case.</p>



<p class="wp-block-paragraph">As of this moment there is no real desktop machines, the only route to go is with the laptops, which are the few models from Lenovo, HP, Acer and Microsoft themselves.  Brand new these things are not cheap, and of course people find out quickly enough that the emulation just isn&#8217;t quite there (not all that surprising) and of course the lack of native apps doesn&#8217;t help.  It&#8217;s that chicken/egg problem that can only be solved by getting hardware into people&#8217;s hands.</p>



<iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/rRm0NDo1CiY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>



<p class="wp-block-paragraph"><em>Developers!</em></p>



<p class="wp-block-paragraph">So getting back to to the Pi, on <a href="https://www.youtube.com/watch?v=3ngGlMikto0">ETA Prime&#8217;s channel I saw this video</a>, which quickly went over how to get Windows 10 up and running in no time flat.</p>



<ul class="wp-block-list"><li>You&#8217;ll need the image on <a href="https://discord.com/invite/jQCpfVK">Amir Dahan&#8217;s Discord server</a></li><li><a href="https://www.balena.io/etcher/">balenaEtcher</a></li><li>Large(ish) SD card (I&#8217;m using a 256GB card)</li><li>Pi4 (4GB/8GB it doesn&#8217;t matter thanks to a DMA bug you can only use 3GB)</li></ul>



<p class="wp-block-paragraph">On the Discord look for the #download-links and look for build 0.2.1  After you extract it, the image should be about 10GB</p>



<pre class="wp-block-preformatted">10,100,932,608 build 0.2.1.img</pre>



<p class="wp-block-paragraph">With a MD5 checksum of: aad51a0e02ba947d24d543ff8ed612b0</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="796" height="478" src="https://virtuallyfun.com/wp-content/uploads/2020/07/etch-select.png" alt="" class="wp-image-10378" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/etch-select.png 796w, https://virtuallyfun.com/wp-content/uploads/2020/07/etch-select-300x180.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/etch-select-768x461.png 768w, https://virtuallyfun.com/wp-content/uploads/2020/07/etch-select-500x300.png 500w" sizes="auto, (max-width: 796px) 100vw, 796px" /></figure>



<p class="wp-block-paragraph">Use etcher to write the image to the SD.  It took me about 5 minutes to do so. No bigge.  I unplugged the SD/IDE/USB adapter thing I&#8217;m using, plugged it back in, and used Windows disk manager to expand the partition to take up the rest of the disk.  It&#8217;s not terribly complicated to setup.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="715" height="136" src="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-Flashed.png" alt="" class="wp-image-10380" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-Flashed.png 715w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-Flashed-300x57.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-Flashed-500x95.png 500w" sizes="auto, (max-width: 715px) 100vw, 715px" /><figcaption>SSD Flashed</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="664" height="380" src="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-Extend.png" alt="" class="wp-image-10381" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-Extend.png 664w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-Extend-300x172.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-Extend-500x286.png 500w" sizes="auto, (max-width: 664px) 100vw, 664px" /><figcaption>Right click and select Extend</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="499" height="409" src="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-default-size.png" alt="" class="wp-image-10382" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-default-size.png 499w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-default-size-300x246.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/SSD-select-default-size-366x300.png 366w" sizes="auto, (max-width: 499px) 100vw, 499px" /><figcaption>The default option will consume the entire disk</figcaption></figure>



<p class="wp-block-paragraph">After that slap in the SD to your Pi4 and away you go.  Or so I first thought.</p>



<p class="wp-block-paragraph">Realistically you also need:</p>



<ul class="wp-block-list"><li>A USB Hub</li><li>A USB Ethernet adapter (I have some cheapo no name realtek)</li><li>A USB audio card</li><li>A mini HDMI to regular human sized HDMI cables/adapters</li><li>a 5Amp USB charger for extra power!</li></ul>



<p class="wp-block-paragraph">As I found out rather quickly that the only peripherals that are working is the USB ports.  However the USB controller has some DMA bug where it can&#8217;t xfer higher than 3GB which caps the current memory ceiling to 3GB.</p>



<p class="wp-block-paragraph">Otherwise the Pi will think and reboot a few times, and about 15-30 minutes later (I didn&#8217;t time it, I walked out) you&#8217;ll be up and running Windows 10 on ARM!</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="639" src="https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop-1024x639.png" alt="" class="wp-image-10377" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop-1024x639.png 1024w, https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop-300x187.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop-768x479.png 768w, https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop-481x300.png 481w, https://virtuallyfun.com/wp-content/uploads/2020/07/Windows-10-on-ARM-desktop.png 1442w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">It&#8217;s heavily customized in that when Windows boots up it is only consuming about 1GB of RAM.  So that gives us just under 2GB for user programs. GREAT!  Included is the setup program for the latest beta of Microsoft Edge (with the chromium engine) so at least you can actually hit web sites.  However Google doesn&#8217;t like it, so if you are going to try to watch anything with DRM it will not work.</p>



<p class="wp-block-paragraph">While many people complain about STEAM, game compatibility, really what on earth were you expecting?  Naturally people will want to know how fast it is, and well&#8230; It&#8217;s not.  Although it does have 4 cores, running at 1.5Ghz, there is barely any cache (well compared to an i7/Xeon), and it&#8217;s clearly not a power house of a box.  The only real test of a machine like this is going to be native stuff.  And speaking of, it&#8217;s nice that <a href="https://virtuallyfun.com/wordpress/2020/01/28/living-with-arm-for-a-week/">my previous builds for ARM still work</a>!  The sales guy that borrwed the ASUS should be back soon so I can do some side by side comparisons of how slow they are.</p>



<p class="wp-block-paragraph">In addition to <a href="https://vpsland.superglobalmegacorp.com/install/Windows10-ARM/dosbox-code-0-r4308.7z">DOSBox</a>, <a href="https://vpsland.superglobalmegacorp.com/install/Windows10-ARM/Neko98.exe">Neko98</a>, and <a href="https://vpsland.superglobalmegacorp.com/install/Windows10-ARM/frontvm-frontvm-20040517-ARM.7z">frontvm</a>, I managed to get MAME 0.36 cross compiled and I had to disable the DirectX input and output, as although they do compile they have issues on the Pi4.  So it&#8217;s GDI all the way.  That said, it does run:</p>



<iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/09s_UwLIWeg" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>



<p class="wp-block-paragraph">This isn&#8217;t the port you want, or the platform to play it on.  I&#8217;m using the command line Visual C++ tools to build this, and MAME 0.37 drifted to being more of a MinGW thing, and I just don&#8217;t feel like fighting the build process.</p>



<p class="wp-block-paragraph">Another point of fun, is that this processor &amp; OS does have x86 compatibility you can take things to the extreme with <a href="https://github.com/otya128/OTVDM">OTVDM</a>, and run Win16 based programs on Windows 10 for ARM!  Not that I would know why you want Excel 3.0, but rest assured, it works fine.</p>



<pre class="wp-block-preformatted">Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Err:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Unknown error executing apt-key</pre>



<p class="wp-block-paragraph">The platform supports WSL, so I went ahead and installed Ubuntu 18 &amp; 20&#8230; and both have one apparently known catastrophic failure on the Pi&#8217;s.  When trying to update packages the updater crashes. The <a href="https://discourse.pi64.win/t/wsl-unknown-error-executing-apt-key/345/5">fault is apparently in dirmngr</a>, or the usual Linux bandaid of switching distros. There doesn&#8217;t appear to be any &#8216;fix&#8217; to this, so if anyone knows what to do, I&#8217;m all ears.  Also don&#8217;t enable WSL2, it&#8217;ll hang at the bootloader.  I ended up having to reflash the disk.</p>



<p class="wp-block-paragraph">In my quick conclusion, is this the RISC Windows workstation of the future?  No, not really.  It&#8217;s more the $50(+peripherals) tyre kicker edition.  It&#8217;s a cheap way into the platform, to see what the fuss is all about.  This machine feels like a low end i3, the CPU just isn&#8217;t there, it&#8217;s only a BCM2711 Cortex-A72, so there isn&#8217;t all that much to be expected.  On the other hand it&#8217;s <em>FAR FAR FAR</em> cheaper than something like the Surface X.  If you have the hardware it&#8217;s worth checking out if you are interested in non x86 Windows.  Otherwise you aren&#8217;t going to miss much.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2020/07/24/windows-10-on-the-raspberry-pi-4/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
		<item>
		<title>UML Linux on WSL2</title>
		<link>https://virtuallyfun.com/2020/07/15/uml-linux-on-wsl2/</link>
					<comments>https://virtuallyfun.com/2020/07/15/uml-linux-on-wsl2/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Wed, 15 Jul 2020 10:54:04 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[User Mode Linux]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=10367</guid>

					<description><![CDATA[Since WSL2 runs an actual Linux kernel that means you can run 32bit binaries! And that now means you can run stuff like ancient unmodified UML kernels on Windows! Isn&#8217;t that great! I followed my old posts here &#38; here, &#8230; <a href="https://virtuallyfun.com/2020/07/15/uml-linux-on-wsl2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="979" height="512" src="https://virtuallyfun.com/wp-content/uploads/2020/07/UserMode-Linux-on-WSL2.png" alt="" class="wp-image-10368" srcset="https://virtuallyfun.com/wp-content/uploads/2020/07/UserMode-Linux-on-WSL2.png 979w, https://virtuallyfun.com/wp-content/uploads/2020/07/UserMode-Linux-on-WSL2-300x157.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/07/UserMode-Linux-on-WSL2-768x402.png 768w, https://virtuallyfun.com/wp-content/uploads/2020/07/UserMode-Linux-on-WSL2-500x261.png 500w" sizes="auto, (max-width: 979px) 100vw, 979px" /></figure>



<p class="wp-block-paragraph">Since WSL2 runs an actual Linux kernel that means you can run 32bit binaries!  And that now means you can run stuff like ancient unmodified UML kernels on Windows! Isn&#8217;t that great!</p>



<p class="wp-block-paragraph">I followed my old posts <a href="https://virtuallyfun.com/wordpress/2016/04/02/user-mode-linux/">here</a> &amp; <a href="https://virtuallyfun.com/wordpress/2016/10/02/user-mode-linux-revisited-uml-aka-slirp-networking/">here</a>, to get running or the short version being:</p>



<pre class="wp-block-preformatted">dpkg --add-architecture i386
apt-get update
apt-get upgrade
apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 slirp</pre>



<p class="wp-block-paragraph">Download a kernel, <a href="http://user-mode-linux.sourceforge.net/linux-2.6.24-rc7.bz2">linux-2.6.24-rc7.bz2</a> and a root filesystem: <a href="http://fs.devloop.org.uk/filesystems/Debian-4.0/Debian-4.0-x86-root_fs.bz2">Debian-4.0-x86-root_fs.bz2</a> and get running right away:</p>



<pre class="wp-block-preformatted">./linux-2.6.24-rc7 ubd0=test_fs eth0=slirp mem=512m</pre>



<p class="wp-block-paragraph">And it just worked!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2020/07/15/uml-linux-on-wsl2/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Upgrading to WSL2</title>
		<link>https://virtuallyfun.com/2020/06/22/upgrading-to-wsl2/</link>
					<comments>https://virtuallyfun.com/2020/06/22/upgrading-to-wsl2/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Mon, 22 Jun 2020 07:51:39 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/wordpress/?p=10330</guid>

					<description><![CDATA[I finally got the update to version 2004 of Windows 10 (OS Build 19041.329) which now includes support for running a Linux kernel inside a VM, using paravirtual drivers letting it hook into Windows 10. It reminds me of WinOS/2 &#8230; <a href="https://virtuallyfun.com/2020/06/22/upgrading-to-wsl2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I finally got the update to version 2004 of Windows 10 (OS Build 19041.329) which now includes support for running a Linux kernel inside a VM, using paravirtual drivers letting it hook into Windows 10.  It reminds me of WinOS/2 where, OS/2 would run Windows 3.1 in a virtual machine, but using special drivers it could redirect it on the native filesystem, and paint the windows on the OS/2 desktop.</p>



<p class="wp-block-paragraph">So the first thing is make sure you have 2004, winver should look like this:</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="460" height="423" src="https://virtuallyfun.com/wp-content/uploads/2020/06/Windows-10-2004.png" alt="" class="wp-image-10331" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/Windows-10-2004.png 460w, https://virtuallyfun.com/wp-content/uploads/2020/06/Windows-10-2004-300x276.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/06/Windows-10-2004-326x300.png 326w" sizes="auto, (max-width: 460px) 100vw, 460px" /></figure></div>



<p class="wp-block-paragraph">You will need to go to the old control panel, and enable the Virtual Machine Platform.  For those of you using VMware, you&#8217;ll need at least version 15.5.5 (15.5.6 is current as of the time of me writing this).  I&#8217;d suggest you do that before turning on this, but some people like to live dangerously.  Also fully shut down all your VM&#8217;s otherwise things will end up giving you errors (as you&#8217;ll see later).</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="415" height="368" src="https://virtuallyfun.com/wp-content/uploads/2020/06/Virtual-Machine-Platform.png" alt="" class="wp-image-10333" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/Virtual-Machine-Platform.png 415w, https://virtuallyfun.com/wp-content/uploads/2020/06/Virtual-Machine-Platform-300x266.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/06/Virtual-Machine-Platform-338x300.png 338w" sizes="auto, (max-width: 415px) 100vw, 415px" /></figure>



<p class="wp-block-paragraph">After the Virtual Machine Platform is installed, your machine will need to reboot.  After a reboot, you&#8217;ll need to download the Linux Update to the system, available at:</p>



<p class="wp-block-paragraph"><a href="https://aka.ms/wsl2-install">https://aka.ms/wsl2-install</a></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="495" height="387" src="https://virtuallyfun.com/wp-content/uploads/2020/06/wsl-2-install.png" alt="" class="wp-image-10332" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/wsl-2-install.png 495w, https://virtuallyfun.com/wp-content/uploads/2020/06/wsl-2-install-300x235.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/06/wsl-2-install-384x300.png 384w" sizes="auto, (max-width: 495px) 100vw, 495px" /></figure>



<p class="wp-block-paragraph">It&#8217;s a simple install, and only takes a few seconds.  I didn&#8217;t have to reboot.</p>



<p class="wp-block-paragraph">now for the fun parts, you&#8217;ll need to list and shut down (terminate) your running WSL&#8217;s if you have any running.</p>



<pre class="wp-block-preformatted">C:\Users\neozeed>wsl --list --verbose
NAME STATE VERSION
Debian Running 1</pre>



<p class="wp-block-paragraph">As you can see I only have one, and it&#8217;s called Debian, and it is currently running something.  Let&#8217;s kill it!</p>



<pre class="wp-block-preformatted">C:\Users\neozeed>wsl -t Debian
C:\Users\neozeed>wsl --list --verbose
NAME STATE VERSION
Debian Stopped 1</pre>



<p class="wp-block-paragraph">And now it&#8217;s stopped.  The command to upgrade is pretty simple:</p>



<pre class="wp-block-preformatted">C:\Users\neozeed>wsl --set-version Debian 2
Conversion in progress, this may take a few minutesâ€¦
For information on key differences with WSL 2 please visit https://aka.ms/wsl2</pre>



<p class="wp-block-paragraph">And yes, you can also stop the WSL instance, and move it back to version 1, if you find 2 not doing what you want.  However on first impressions, WSL2 is significantly faster.</p>



<p class="wp-block-paragraph">If you are running VMware, and you didn&#8217;t shut down your VM&#8217;s you&#8217;ll get this lovely message when you try to resume:</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="320" height="253" src="https://virtuallyfun.com/wp-content/uploads/2020/06/intel-EPT-hardware-missing.png" alt="" class="wp-image-10334" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/intel-EPT-hardware-missing.png 320w, https://virtuallyfun.com/wp-content/uploads/2020/06/intel-EPT-hardware-missing-300x237.png 300w" sizes="auto, (max-width: 320px) 100vw, 320px" /></figure></div>



<p class="wp-block-paragraph">The save state will be deleted, but rest assured it&#8217;ll launch okay (at least mine did!)</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="831" src="https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1-1024x831.png" alt="" class="wp-image-10336" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1-1024x831.png 1024w, https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1-300x244.png 300w, https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1-768x624.png 768w, https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1-370x300.png 370w, https://virtuallyfun.com/wp-content/uploads/2020/06/10.6-working-1.png 1026w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption>10.6 the last great OS X</figcaption></figure></div>



<p class="wp-block-paragraph">One sad consequence of using the Microsoft Virtual Machine framework is that nesting is no longer available.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="320" height="175" src="https://virtuallyfun.com/wp-content/uploads/2020/06/vmware-no-more-nested-VMs.png" alt="" class="wp-image-10337" srcset="https://virtuallyfun.com/wp-content/uploads/2020/06/vmware-no-more-nested-VMs.png 320w, https://virtuallyfun.com/wp-content/uploads/2020/06/vmware-no-more-nested-VMs-300x164.png 300w" sizes="auto, (max-width: 320px) 100vw, 320px" /></figure></div>



<p class="wp-block-paragraph">which is kind of a bummer, as that was the killer feature.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2020/06/22/upgrading-to-wsl2/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
