<?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 &#8211; The Server Side Technology</title>
	<atom:link href="https://www.theserverside.technology/it/tag/hyper-v/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.theserverside.technology/it</link>
	<description>in-depth information for tech pros</description>
	<lastBuildDate>Sun, 22 Mar 2020 16:50:59 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.1</generator>
	<item>
		<title>The little virtual machine that is crashing Hyper-V on AMD</title>
		<link>https://www.theserverside.technology/it/2020/03/22/the-little-virtual-machine-that-is-crashing-hyper-v-on-amd/?pk_campaign=feed&#038;pk_kwd=the-little-virtual-machine-that-is-crashing-hyper-v-on-amd</link>
					<comments>https://www.theserverside.technology/it/2020/03/22/the-little-virtual-machine-that-is-crashing-hyper-v-on-amd/?pk_campaign=feed&#038;pk_kwd=the-little-virtual-machine-that-is-crashing-hyper-v-on-amd#respond</comments>
		
		<dc:creator><![CDATA[The Server-Side Technology Staff]]></dc:creator>
		<pubDate>Sun, 22 Mar 2020 16:50:57 +0000</pubDate>
				<category><![CDATA[SysAdmins]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[hyper-v]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[windows server]]></category>
		<guid isPermaLink="false">https://www.theserverside.technology/?p=1545</guid>

					<description><![CDATA[<div style="margin: 5px 5% 10px 5%;"><img src="https://www.theserverside.technology/wp-content/uploads/2020/03/hyperv_1280-300x169.jpg" width="300" height="169" title="" alt="" /></div><div>
<p>At VaiSulWeb virtualization is so pervasive that basically there aren&#8217;t physical machines other than virtualization hosts or storage since about 2008 or 2009. That means about 10 years now. And counting. Microsoft Hyper-V served us very well and over time our reliance on that technology increased with happy results. It has been solid and consistent and allowed us to scale up more and more, adding new technologies and solutions and enabling us to virtualize roles and workloads that seemed a bit difficult to virtualize.</p>



<p>As many other providers, we recently started integrating AMD CPUs into our infrastructure, given the terrific advantages that those could bring to the datacenter especially for generic or mixed workloads. Only a subset of our infrastructure has been migrated to the new AMD servers but things got easier because of the many advantages that the Windows Server (+ Hyper-V) platform could provide and we carefully started to fill those hosts by migrating workloads. Results have been very pleasing.</p>



Performance improvements and security



<p>As we had planned, we immediately started benefiting of performance improvements. Not only CPU-bound tasks were faster but also I/O performance were terrific. </p>



<p>One of our goals was also to improve security by using AMD technologies that showed better resiliency when dealing with security issues when compared to Intel chipsets and CPUs and we were also prepared to face a few limitations. For example, Hyper-V isolated containers are not supported on non-Intel CPUs and thus cannot be used.</p>



<p>We started migrating our workloads to the new servers and Hyper-V functionalities like shared-nothing live migration and live migrations made the process quite easy and straightforward. In a few days about 80% of the target workloads have been migrated with minimal or no disruption at all. So far so good.</p>



Unexpected crashes



<p>Then something odd happened: one of the hosts started to crash. That was surely something we rarely faced in our 10+-years-long experience with Hyper-V but that specific host was crashing up to 2-3 times per day and while it usually was back online in about 2 minutes with all of its VMs restarted, the virtual machines that it was hosting were obviously also crashing causing downtimes. That was very surprising since similar machines (basically identical since they were using the same components) were not exhibiting any issue even after running for weeks in production and even more in our labs.</p>



<p>That machine had been running for days without issues then started crashing 2-3 times per day with no traceable pattern. Sometimes it could run for hours (10 or more) without issues, sometimes it was crashing two times in 15 minutes. Weird. And scary.</p>



<p>We decided to halt our migration to ensure that we didn&#8217;t miss any incompatibility between Windows Server 2019 and those AMD servers yet other servers were not having any issue and tracing back the issues we had, that specific machine had not been exhibiting issues for days before it started crashing so often.</p>



Diagnosing the issues



<p>The first thing that you might want to do in such cases is to ensure [...]</div><img src="https://stats1.vaisulweb.cloud/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.theserverside.technology%2Fit%2F2020%2F03%2F22%2Fthe-little-virtual-machine-that-is-crashing-hyper-v-on-amd%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dthe-little-virtual-machine-that-is-crashing-hyper-v-on-amd&amp;action_name=The+little+virtual+machine+that+is+crashing+Hyper-V+on+AMD&amp;urlref=https%3A%2F%2Fwww.theserverside.technology%2Fit%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
		
					<wfw:commentRss>https://www.theserverside.technology/it/2020/03/22/the-little-virtual-machine-that-is-crashing-hyper-v-on-amd/?pk_campaign=feed&#038;pk_kwd=the-little-virtual-machine-that-is-crashing-hyper-v-on-amd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.theserverside.technology/wp-content/uploads/2020/03/hyperv_1280.jpg" length="54089" type="image/jpg" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2020/03/hyperv_1280-300x169.jpg" width="300" height="169" medium="image" type="image/jpeg">
	<media:copyright>The Server Side Technology</media:copyright>
	<media:title></media:title>
	<media:description type="html"><![CDATA[]]></media:description>
</media:content>
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2020/03/hyperv_1280-300x169.jpg" width="300" height="169" />
	</item>
		<item>
		<title>How to containerize Windows Admin Center</title>
		<link>https://www.theserverside.technology/it/2019/11/02/how-to-containerize-windows-admin-center/?pk_campaign=feed&#038;pk_kwd=how-to-containerize-windows-admin-center</link>
					<comments>https://www.theserverside.technology/it/2019/11/02/how-to-containerize-windows-admin-center/?pk_campaign=feed&#038;pk_kwd=how-to-containerize-windows-admin-center#comments</comments>
		
		<dc:creator><![CDATA[Guglielmo Mengora]]></dc:creator>
		<pubDate>Sat, 02 Nov 2019 15:48:29 +0000</pubDate>
				<category><![CDATA[SysAdmins]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[hyper-v]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows admin center]]></category>
		<category><![CDATA[windows server]]></category>
		<guid isPermaLink="false">https://www.theserverside.technology/?p=1426</guid>

					<description><![CDATA[<div style="margin: 5px 5% 10px 5%;"><img src="https://www.theserverside.technology/wp-content/uploads/2019/11/wac_header-300x174.png" width="300" height="174" title="" alt="" /></div><div>
<p class="has-drop-cap">Microsoft is investing a lot into its new Server Manager though Redmond is not encouraging that parallelism and often says that Windows Admin Center is not a 1-to-1 replacement for Server Manager. That is true because Server Manager and its underlying technology has a deeper connection with the operating system and it can be considered a platform while Winows Admin Center can be considered a very sophisticated shell that mostly works through WMI/Powershell connections.</p>



<p>However, Windows Admin Center is gaining a lot of traction and it&#8217;s quickly gaining support because its Web UI allows to embed important tasks into simple to access and to use widgets called tools and access them through a simple browser. Productivity is enhanced especially when used with the Core version of Windows operating systems and I&#8217;m not surprised that Microsoft is experiencing a growth in adoption for the Core SKUs because of it.</p>



Why containerizing Windows Admin Center ?



<p>So the first question would be: why would someone want to containerize Windows Admin Center ? First, a containerized WAC would be very easy to deploy on multiple systems in a very straightforward way. Furthermore, multiple copies of WAC, possibly in use by different teams, could be deployed and used thanks to the isolation provided by containers and their flexibility. Containers could be also useful to mitigate any security issue that could arise even if Windows Admin Center showed no security vulnerabilities as far as I know. Finally, by using Hyper-V isolation multiple instances of WAC could be isolated and provided to multiple tenants.</p>



Prepare the environment



<p>To deploy WAC into a container we will use Windows Server 2019. We must first enable containers support by selecting and adding the feature in Roles&#38;Features section of Server Manager:</p>



<p>Then we must install Docker as per Microsoft Docs : </p>



Install-Module -Name DockerMsftProvider -Repository PSGallery -Force



<p>and then</p>



Install-Package -Name docker -ProviderName DockerMsftProvider



<p>and finally restore Windows Server 2019 to complete installation</p>



Restart-Computer -Force



<p>When server restarts we can pull the Windows Server 2019 Core image that we will use to run Windows Admin Center. Note that WAC doesn&#8217;t need IIS because it will self-host so downloading the base OS image will be enough</p>



docker pull mcr.microsoft.com/windows/servercore:ltsc2019



<p>After downloading the image we are now ready to spin our new container and install Windows Admin Center.</p>



Create the WAC container 



<p>We have a choice to make before creating the container for WAC and that is the port we want to expose WAC onto. That would be the port we connect to in order to use WAC. To make our life easier now, we will expose this port to the host but more sophisticated deployments might be appropriate depending on what you&#8217;re trying to achieve. We need to decide that first because we will then need this information when installing Windows Admin Center. We will make it available on port 8443.</p>



docker run -it -p 8443:8443 mcr.microsoft.com/windows/servercore:ltsc2019 cmd.exe



<p>If everything goes well you will have CMD prompt ready after starting the container. Now we need to copy the installation files into the container. You probably downloaded [...]</div><img src="https://stats1.vaisulweb.cloud/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.theserverside.technology%2Fit%2F2019%2F11%2F02%2Fhow-to-containerize-windows-admin-center%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dhow-to-containerize-windows-admin-center&amp;action_name=How+to+containerize+Windows+Admin+Center&amp;urlref=https%3A%2F%2Fwww.theserverside.technology%2Fit%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
		
					<wfw:commentRss>https://www.theserverside.technology/it/2019/11/02/how-to-containerize-windows-admin-center/?pk_campaign=feed&#038;pk_kwd=how-to-containerize-windows-admin-center/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<enclosure url="https://www.theserverside.technology/wp-content/uploads/2019/11/wac_header.png" length="102851" type="image/jpg" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2019/11/wac_header-300x174.png" width="300" height="174" medium="image" type="image/jpeg">
	<media:copyright>The Server Side Technology</media:copyright>
	<media:title></media:title>
	<media:description type="html"><![CDATA[]]></media:description>
</media:content>
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2019/11/wac_header-300x174.png" width="300" height="174" />
	</item>
		<item>
		<title>Visual Studio: how to run Windows Phone and Android emulators in a virtual machine</title>
		<link>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine</link>
					<comments>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine#respond</comments>
		
		<dc:creator><![CDATA[Guglielmo Mengora]]></dc:creator>
		<pubDate>Fri, 06 Jan 2017 23:03:41 +0000</pubDate>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mobile & Devices]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[hyper-v]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[visual studio 2015]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[windows server]]></category>
		<category><![CDATA[windows server 2016]]></category>
		<guid isPermaLink="false">http://www.theserverside.technology/?p=1173</guid>

					<description><![CDATA[<div style="margin: 5px 5% 10px 5%;"><img src="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" title="" alt="" /></div><div><p>If you&#8217;re anything like me, virtualization has a great and important role in your everyday work. I use to virtualize most of my development machines, with Visual Studio and the whole stack. That allows me to avoid reconfiguring the environments whenever I need to switch my main machine, plus you get all the benefits of virtualization like for example the ability to backup the whole machine and move it elsewhere.</p>
<p>Up until now, such deployments had just one limitation: you could not use them to run mobile apps since nested virtualization was not supported on Windows 8 or Windows Server 2012 R2 so you could not run emulators that needed Hyper-V. Things changed with Windows 10 and Windows Server 2016 since nested virtualization is now allowed so I thought that was perfect chance to redeploy machines I used for mobile development into VMs.</p>
<p>So Visual Studio 2015 is running and Xamarin ready, you create a new Xamarin Forms project and you want to test that your environment is working fine. You start debug for the Android application but the Visual Studio Android emulator is not working. A &#8220;Hyper-V component is not running&#8221; :</p>
<p><p>Something happened while starting a virtual machine: &#8216;VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.macoswin&#8217; failed to start. (Virtual machine ID 77D02994-C4A1-4A43-9AE7-7E55C03521D4) The Virtual Machine Management Service failed to start the virtual machine &#8216;VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.macoswin&#8217; because one of the Hyper-V components is not running (Virtual machine ID 77D02994-C4A1-4A43-9AE7-7E55C03521D4). _</p></p>
<p>Hyper-V seems to be working fine plus it has been installed, something that never succeeded in past Windows (Server) versions but emulators don&#8217;t work. The reason for this is your host is not enabling all Hyper-V features to the guest machine. That&#8217;s probably related to the fact that Hyper-V is also needed for Containers but I&#8217;m not sure about that.</p>
<p>Turns out that you need to tell host that you want to expose ALL Hyper-V functionalities if you want to enable full nested virtualization so you have to log into the host (which might simply be your own notebook or desktop PC or even a Surface Pro, like in my case) and run this command using an elevated shell:</p>
 
 Set-VMProcessor -VMName &#60;VMName&#62; -ExposeVirtualizationExtensions $true

<p>&#60;VMName&#62; obviously is the name of the virtual machine that you want to enable nested virtualization for. Also ensure that such VM has been shut down (no saving, no suspension). Once you reboot, emulators will start working. You might need to re-deploy the emulators VMs just to ensure that everything will be redeployed in a smooth way. You simply need to delete those emulators inside Hyper-V Manager.</p>
<p>The problem is: when you will deploy your test app &#8211; even the simplest one, the one generated by the template &#8211; it will not run inside the emulator. It just starts and shuts down almost instantly, probably crashing.</p>
<p>To fix this problem, you need to change a setting in the virtual machine that is hosting Visual Studio and the emulators as well:</p>
<p></p>
<p>Again, you need to shut the VM down before changing [...]</div><img src="https://stats1.vaisulweb.cloud/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.theserverside.technology%2Fit%2F2017%2F01%2F06%2Fvisual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine%2F%3Fpk_campaign%3Dfeed%26pk_kwd%3Dvisual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine&amp;action_name=Visual+Studio%3A+how+to+run+Windows+Phone+and+Android+emulators+in+a+virtual+machine&amp;urlref=https%3A%2F%2Fwww.theserverside.technology%2Fit%2Ffeed%2F" style="border:0;width:0;height:0" width="0" height="0" alt="" />]]></description>
		
					<wfw:commentRss>https://www.theserverside.technology/it/2017/01/06/visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/?pk_campaign=feed&#038;pk_kwd=visual-studio-how-to-run-windows-phone-and-android-emulators-in-a-virtual-machine/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000.jpg" length="277194" type="image/jpg" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" medium="image" type="image/jpeg">
	<media:copyright>The Server Side Technology</media:copyright>
	<media:title></media:title>
	<media:description type="html"><![CDATA[]]></media:description>
</media:content>
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://www.theserverside.technology/wp-content/uploads/2017/01/xamarin_dev_2000-300x174.jpg" width="300" height="174" />
	</item>
	</channel>
</rss>
