<?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>virtual machines | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/virtual-machines/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>Fri, 07 Aug 2020 10:16:01 +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>virtual machines | 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>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 fetchpriority="high" 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>
	</channel>
</rss>
