<?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>Hyper-V | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/hyper-v/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 28 Aug 2025 08:37:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>Hyper-V | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>Great mysteries &#8211; number 1</title>
		<link>https://learncgames.com/great-mysteries-number-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=great-mysteries-number-1</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 28 Aug 2025 08:37:45 +0000</pubDate>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3453</guid>

					<description><![CDATA[<p>I run Ubuntu in a hyper-V session.  It works very well and handy for getting screenshots. I&#8217;ve been using a 24.04 LTS for a while and decided I needed another one to test CyberPanel. i already have Webmin on my main one so wanted a clean Ubuntu so as not to mess Webmin.  It took [&#8230;]</p>
The post <a href="https://learncgames.com/great-mysteries-number-1/">Great mysteries – number 1</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignleft size-large wp-image-3454" src="https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1024x579.png" alt="Hyper-v that refuses to become fullscreen!" width="1024" height="579" srcset="https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1024x579.png 1024w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-300x170.png 300w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-768x434.png 768w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue-1536x869.png 1536w, https://learncgames.com/wp-content/uploads/2025/08/hyper-v_issue.png 1910w" sizes="(max-width: 1024px) 100vw, 1024px" />I run Ubuntu in a hyper-V session.  It works very well and handy for getting screenshots. I&#8217;ve been using a 24.04 LTS for a while and decided I needed another one to test CyberPanel. i already have Webmin on my main one so wanted a clean Ubuntu so as not to mess Webmin.  It took ten minutes to setup then another 20 minutes to install 300+ updates.</p>
<p>Then I edited Grub to give me a fullscreen- 1920 x 1080.  You just edit /etc/default/grub with an editor run under sudo. I use Gedit but nano will do. Just change the line to this:</p>
<pre>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1920x1080"</pre>
<p>followed by</p>
<pre>sudo update-grub</pre>
<p>and that should be it. Only it didn&#8217;t work in my new Ubuntu 24.04 LTS VM. I installed ifconfig from net-tools, connected to it from my Windows PC and copied grub across. I did the same with my older 24.04 LTS VM and compared the two grub files. Both identical yet one works fullscreen and the newer one doesn&#8217;t. Any ideas?</p>The post <a href="https://learncgames.com/great-mysteries-number-1/">Great mysteries – number 1</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3453</post-id>	</item>
		<item>
		<title>In praise of Hyper-V</title>
		<link>https://learncgames.com/in-praise-of-hyper-v/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=in-praise-of-hyper-v</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 13 Aug 2020 23:00:55 +0000</pubDate>
				<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[virtual machines]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=1165</guid>

					<description><![CDATA[<p>I&#8217;ve been using virtual machines for years. Originally I started with VirtualBox, the free VM manager from Oracle. I&#8217;m not sure why I switched to Hyper-V, about five or six years ago but I&#8217;ve been on Hyper-V since then. You need to be on Windows Pro and have at least 8 GB though the more [&#8230;]</p>
The post <a href="https://learncgames.com/in-praise-of-hyper-v/">In praise of Hyper-V</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-full wp-image-1166" src="https://learncgames.com/wp-content/uploads/2020/08/hyper-v.png" alt="Hyper-V Manager screen " width="450" height="297" srcset="https://learncgames.com/wp-content/uploads/2020/08/hyper-v.png 450w, https://learncgames.com/wp-content/uploads/2020/08/hyper-v-300x198.png 300w" sizes="(max-width: 450px) 100vw, 450px" />I&#8217;ve been using virtual machines for years. Originally I started with VirtualBox, the free VM manager from Oracle. I&#8217;m not sure why I switched to Hyper-V, about five or six years ago but I&#8217;ve been on Hyper-V since then. You need to be on Windows Pro and have at least 8 GB though the more RAM the better. I have 64 GB and the most I&#8217;ve ever had in use at one time is 29 GB. I always try to keep RAM use below 50% as there&#8217;s less disk swapping.</p>
<p>VMs are an excellent way to try out other Operating systems, install software and venture outside the comfort zone of a Windows PC and Windows 10.  Many of the screenshots published here in earlier posts have come from Ubuntu 18.04 LTS running in Hyper-V. It takes a minute to fire it up and connect then login.</p>
<p>I learnt to use Linux that way, both via the Ubuntu GUI and terminal commands and much of my 2nd Ebook has been tested on a Raspberry Pi OS running in a VM. Of course it lacks the hardware of the real Pi, so I have to test programs on both, but it&#8217;s quite a bit quicker doing a screen grab using the commercial Snagit on my Windows 10 PC.</p>
<p>I can do screen grabs on a PI using scrot, but then I have to upload the image using WinSCP or Putty. It&#8217;s not the end of the world but when you are doing a lot, having the image in the Snagit editor ready to copy/paste is a time saver. Also in a similar way, make sure you can do copy/paste via the clipboard and can resize the guest OS (as it&#8217;s called). It makes a difference.</p>
<p>I have mine configured so its uses RDP and you can just see the corner of the RDP bar in the Ubuntu image below where I&#8217;ve just launched Visual Studio Code.</p>
<p><img decoding="async" class="alignleft size-full wp-image-1167" src="https://learncgames.com/wp-content/uploads/2020/08/ubuntu-rdp.png" alt="Ubuntu 18.04 LTS running in an RDP session on Windows 10 in Hyper-V" width="600" height="360" srcset="https://learncgames.com/wp-content/uploads/2020/08/ubuntu-rdp.png 600w, https://learncgames.com/wp-content/uploads/2020/08/ubuntu-rdp-300x180.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>From a terminal I did <em>ifconfig</em> and got</p>
<pre><code class="language-bash" data-line="">eth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 172.21.212.121  netmask 255.255.240.0  broadcast 172.21.223.255
        inet6 fe80::2b71:6d6b:9a09:9aae  prefixlen 64  scopeid 0x20
        ether 00:15:5d:38:01:03  txqueuelen 1000  (Ethernet)
        RX packets 47317  bytes 69248755 (69.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27622  bytes 1791175 (1.7 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
</code></pre>
<p>and on Windows</p>
<pre><code class="language-batch" data-line="">C:\Users\David&gt;ping 172.21.212.121

Pinging 172.21.212.121 with 32 bytes of data:
Reply from 172.21.212.121: bytes=32 time&lt;1ms TTL=64
Reply from 172.21.212.121: bytes=32 time&lt;1ms TTL=64
Reply from 172.21.212.121: bytes=32 time&lt;1ms TTL=64
Reply from 172.21.212.121: bytes=32 time&lt;1ms TTL=64

</code></pre>
<p>This makes it very handy for testing network servers or if you do web development running a web server locally.</p>The post <a href="https://learncgames.com/in-praise-of-hyper-v/">In praise of Hyper-V</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1165</post-id>	</item>
		<item>
		<title>Expanding my virtual hard disk</title>
		<link>https://learncgames.com/expanding-my-virtual-hard-disk/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=expanding-my-virtual-hard-disk</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 04 Jun 2020 23:00:09 +0000</pubDate>
				<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[raspbian]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VM]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=736</guid>

					<description><![CDATA[<p>Most Linux development is done on Ubuntu running under Hyper-V on my Windows 10 PC. If you have lots of RAM (and I have a full 64 GB), it&#8217;s very convenient. I run Snagit on Windows and this makes it very easy to grab screenshots of the Ubuntu window. I also have a &#8220;Raspberry-pi&#8221; running [&#8230;]</p>
The post <a href="https://learncgames.com/expanding-my-virtual-hard-disk/">Expanding my virtual hard disk</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:695,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201107231551\/https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 00:52:01&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 23:04:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-24 11:22:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 23:21:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 01:21:58&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 10:17:28&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 20:24:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 06:59:56&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 20:46:41&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-medium wp-image-737" src="https://learncgames.com/wp-content/uploads/2020/05/filelight-300x180.png" alt="filelight utility running on Ubuntu" width="300" height="180" srcset="https://learncgames.com/wp-content/uploads/2020/05/filelight-300x180.png 300w, https://learncgames.com/wp-content/uploads/2020/05/filelight-768x462.png 768w, https://learncgames.com/wp-content/uploads/2020/05/filelight.png 846w" sizes="auto, (max-width: 300px) 100vw, 300px" />Most Linux development is done on Ubuntu running under Hyper-V on my Windows 10 PC. If you have lots of RAM (and I have a full 64 GB), it&#8217;s very convenient. I run Snagit on Windows and this makes it very easy to grab screenshots of the Ubuntu window.</p>
<p>I also have a &#8220;Raspberry-pi&#8221; running under Hyper-V.  There&#8217;s a <a title="Link to Raspbian download" href="https://www.raspberrypi.org/downloads/raspberry-pi-desktop/" target="_blank" rel="nofollow noopener noreferrer">Raspbian desktop</a> that you can download and run in Hyper-V, VirtualBox or VMWare though I&#8217;ve only done Hyper-V. Don&#8217;t forget when you are running a Raspberry Pi this way that its x86 based not ARM. That does affect the available software, so it doesn&#8217;t behave exactly like a real Pi though often close enough.</p>
<p>Today though I started getting low disk space from my virtual Ubuntu. That&#8217;s the problem with virtual machines. When you first setup a Virtual hard disk, you never know just how much disk space you will need.</p>
<p>There&#8217;s a terminal command that shows how much space you have left.</p>
<pre>df -h --total</pre>
<p>This produced this</p>
<pre><span style="color: #8ae234;"><b>david@david-Virtual-Machine</b></span>:<span style="color: #729fcf;"><b>~</b></span>$ df -h --total
Filesystem      Size  Used Avail Use% Mounted on
udev            942M     0  942M   0% /dev
tmpfs           193M  1.4M  192M   1% /run
/dev/sda1        11G  9.9G  603M  95% /
tmpfs           964M     0  964M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           964M     0  964M   0% /sys/fs/cgroup
/dev/sda15      105M  3.6M  101M   4% /boot/efi
tmpfs           193M   16K  193M   1% /run/user/121
tmpfs           193M   24K  193M   1% /run/user/1000
total            14G  9.9G  4.1G  71% -
</pre>
<p>This was after I&#8217;d extended my virtual hard disk.  You can see I now have 4.1 GB free.</p>
<p>The pretty picture is from a utility filelight. You install it in the usual way</p>
<pre>sudo apt install filelight</pre>
<p>Or if you prefer a more visual insight, install qdirstat.</p>
<pre>sudo apt install qdirstat</pre>
<p>This is like WinDirStat on Windows but qdirstat seems to run many times faster. It took a couple of seconds to produce this image below. WinDirStat would take 10-30 minutes.</p>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-738" src="https://learncgames.com/wp-content/uploads/2020/05/qdirstat.png" alt="qdirstat" width="450" height="252" srcset="https://learncgames.com/wp-content/uploads/2020/05/qdirstat.png 450w, https://learncgames.com/wp-content/uploads/2020/05/qdirstat-300x168.png 300w" sizes="auto, (max-width: 450px) 100vw, 450px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>So how did I expand my Hyper-V hard drive?</p>
<p>First you have to get rid of any checkpoints. Save your Hyper-V session if open then delete the checkpoint.</p>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-739" src="https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint.png" alt="Delete Hyper-V checkpoint" width="558" height="322" srcset="https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint.png 558w, https://learncgames.com/wp-content/uploads/2020/05/hyperV-checkpoint-300x173.png 300w" sizes="auto, (max-width: 558px) 100vw, 558px" />Right click on the checkpoint for the selected VM and click delete. This will take a minute or two and you&#8217;ll see it have a Merging status. You may need to shutdown the VM.</p>
<p>After that you can go into the settings and it will let you edit the virtual hard drive and change the size.</p>The post <a href="https://learncgames.com/expanding-my-virtual-hard-disk/">Expanding my virtual hard disk</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">736</post-id>	</item>
		<item>
		<title>Developing for Raspberry Pi without one</title>
		<link>https://learncgames.com/developing-for-raspberry-pi-without-one/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=developing-for-raspberry-pi-without-one</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Sat, 09 May 2020 23:00:09 +0000</pubDate>
				<category><![CDATA[raspberry-pi]]></category>
		<category><![CDATA[Visual Studio Code]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[WinSCP]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=553</guid>

					<description><![CDATA[<p>Yes it is possible, as the screenshot shows. You can download a copy of Raspbian from Raspberry-pi. You can either download the .iso directly or save them a bit of bandwidth and do it via a file Torrent. It then takes about 15 minutes or so to install it. When you first run it, it [&#8230;]</p>
The post <a href="https://learncgames.com/developing-for-raspberry-pi-without-one/">Developing for Raspberry Pi without one</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:695,&quot;href&quot;:&quot;https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201107231551\/https:\/\/www.raspberrypi.org\/downloads\/raspberry-pi-desktop\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 17:35:16&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-11 00:52:01&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-17 23:04:29&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-24 11:22:35&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-27 23:21:03&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-13 01:21:58&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-17 10:17:28&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-03-25 20:24:09&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-07 06:59:56&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-14 20:46:41&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:22&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:733,&quot;href&quot;:&quot;https:\/\/winscp.net\/eng\/index.php&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260206023418\/https:\/\/winscp.net\/eng\/index.php&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 18:05:03&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-11 00:52:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 14:11:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 16:20:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 11:22:36&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 16:30:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-09 06:32:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 10:13:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 10:22:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-22 12:23:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-26 11:03:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-02 19:15:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 00:14:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 13:35:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 16:12:23&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-20 16:12:23&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:734,&quot;href&quot;:&quot;https:\/\/code.headmelted.com&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20201201232800\/http:\/\/code.headmelted.com\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 18:05:05&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-24 11:22:34&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-28 07:04:08&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-04 16:16:44&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-09 06:32:09&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-17 10:22:41&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-08 00:14:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-04-14 20:46:39&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-14 20:46:39&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]'></div>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-554" src="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code.png" alt="Hyper-V RaspberryPi running VS Code" width="600" height="484" srcset="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code.png 600w, https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-vs-code-300x242.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" />Yes it is possible, as the screenshot shows. You can download a copy of Raspbian from <a title="Link to the desktop iso download link" href="https://www.raspberrypi.org/downloads/raspberry-pi-desktop/" target="_blank" rel="noopener noreferrer">Raspberry-pi</a>. You can either download the .iso directly or save them a bit of bandwidth and do it via a file Torrent. It then takes about 15 minutes or so to install it. When you first run it, it will do an update.</p>
<p>It looks exactly like Raspbian on a PI but there are one or two little things to bear in mind. It&#8217;s 32-bit, the clipboard doesn&#8217;t seem to work and SSH by default is disabled. It&#8217;s real easy to enable it, just find <em>Raspberry Pi Configuration</em>. Click the Raspberry in a circle menu button at the top, then click <em>Preferences</em> and there it is on the menu that pops up. In the Interfaces tab, tick the Enabled checkbox for SSH.</p>
<p>I use the excellent <a title="Link to official WinSCP website" href="https://winscp.net/eng/index.php" target="_blank" rel="noopener noreferrer">WinSCP</a> to connect to it. Conveniently the Pi will show you its ip address (or from a terminal run <em>ifconfig</em> and it will show you the ip address of eth0) and just put that in with username pi and your pi&#8217;s password which you should have changed when you set up Raspbian.</p>
<p>Finally you have to install Visual Studio Code and as usual, it&#8217;s not quite so easy. Most Linux distros these days are 64-bit and the official VS Code is only available for Debian in 64-bit and Raspbian is of course 32-bit. But there are <a title="Link to Headmelted.com" href="https://code.headmelted.com/" target="_blank" rel="noopener noreferrer">community builds</a> and it&#8217;s the same place that I got the ARM version from.</p>
<p>And here&#8217;s the result. A slightly sluggish (well it is under Hyper-V). I had to comment out the code that initialises the audio. Line 580 ish.</p>
<pre><code class="language-c" data-line="">/*	int success=Mix_OpenAudio(22050, AUDIO_S16LSB, 2, 8192);
	if (success==-1 ) {
		LogError(&quot;InitSetup failed to init audio&quot;);
	}
	LoadSoundFiles();
*/
</code></pre>
<p>And here&#8217;s the results.<br />
<img loading="lazy" decoding="async" class="alignleft size-full wp-image-555" src="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids.png" alt="Asteroids running on Hyper-V Raspbian" width="650" height="513" srcset="https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids.png 650w, https://learncgames.com/wp-content/uploads/2020/04/hyper-pi-asteroids-300x237.png 300w" sizes="auto, (max-width: 650px) 100vw, 650px" /></p>The post <a href="https://learncgames.com/developing-for-raspberry-pi-without-one/">Developing for Raspberry Pi without one</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">553</post-id>	</item>
		<item>
		<title>Laptop vs Hyper-V</title>
		<link>https://learncgames.com/laptop-vs-hyper-v/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=laptop-vs-hyper-v</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 09 Apr 2020 23:00:19 +0000</pubDate>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Techniques]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=337</guid>

					<description><![CDATA[<p>As a way of checking that the stuff I&#8217;m posting on GitHub, I&#8217;ve been downloading them onto a laptop and testing them. The laptop is a seven year old Toshiba that was re-purposed from Windows to Ubuntu 18.04 LTS, the same version as I&#8217;m running in a Hyper-V session on my main development PC. Although [&#8230;]</p>
The post <a href="https://learncgames.com/laptop-vs-hyper-v/">Laptop vs Hyper-V</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:784,&quot;href&quot;:&quot;https:\/\/pixabay.com\/users\/Engin_Akyurt-3656355\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2425303&quot;,&quot;archived_href&quot;:&quot;&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:785,&quot;href&quot;:&quot;https:\/\/pixabay.com\/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2425303&quot;,&quot;archived_href&quot;:&quot;http:\/\/web-wp.archive.org\/web\/20260205102120\/https:\/\/pixabay.com\/?utm_source=link-attribution&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-02-06 18:36:20&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-02-28 23:53:08&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-02 10:02:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-06 10:53:13&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-15 13:06:44&quot;,&quot;http_code&quot;:403},{&quot;date&quot;:&quot;2026-04-21 05:13:51&quot;,&quot;http_code&quot;:403}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-21 05:13:51&quot;,&quot;http_code&quot;:403},&quot;process&quot;:&quot;done&quot;}]'></div>
<figure id="attachment_338" aria-describedby="caption-attachment-338" style="width: 300px" class="wp-caption alignleft"><img loading="lazy" decoding="async" class="size-medium wp-image-338" src="https://learncgames.com/wp-content/uploads/2020/03/coffee-2425303_640-300x200.jpg" alt="Laptop" width="300" height="200" srcset="https://learncgames.com/wp-content/uploads/2020/03/coffee-2425303_640-300x200.jpg 300w, https://learncgames.com/wp-content/uploads/2020/03/coffee-2425303_640.jpg 640w" sizes="auto, (max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-338" class="wp-caption-text">Image by <a href="https://pixabay.com/users/Engin_Akyurt-3656355/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2425303">Engin_Akyurt</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=2425303">Pixabay</a></figcaption></figure>
<p>As a way of checking that the stuff I&#8217;m posting on GitHub, I&#8217;ve been downloading them onto a laptop and testing them.</p>
<p>The laptop is a seven year old Toshiba that was re-purposed from Windows to Ubuntu 18.04 LTS, the same version as I&#8217;m running in a Hyper-V session on my main development PC.</p>
<p>Although the laptop is older and only running an i3 chip, it still outperforms the game code running under Hyper-V code on my five year old i7-5930K PC.  I think the difference is purely because the GPU code is run in a software layer not on the real GPU. But I might be wrong.</p>
<p>When I tested it with 255 asteroids on screen the laptop still maintained 60 fps but the Hyper-V running version dropped below 60 fps once there were 125 asteroids on screen. I have a suspicion that C code that isn&#8217;t calling any SDL routines would run faster under Hyper-V because it&#8217;s virtualised.</p>The post <a href="https://learncgames.com/laptop-vs-hyper-v/">Laptop vs Hyper-V</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">337</post-id>	</item>
	</channel>
</rss>
