<?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>Tristan Watkins on IT Infrastructure &#187; DNS Archive</title>
	<atom:link href="http://tristanwatkins.com/index.php/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://tristanwatkins.com</link>
	<description>Technical guidance for SharePoint, Cloud Services, Windows and more</description>
	<lastBuildDate>Fri, 21 Oct 2011 23:33:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Hyphens in domain names get trimmed from account names in SharePoint 2010 User Profile Import</title>
		<link>http://tristanwatkins.com/index.php/hyphens-in-domain-names-get-trimmed-from-account-names-in-sharepoint-2010-user-profile-import/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyphens-in-domain-names-get-trimmed-from-account-names-in-sharepoint-2010-user-profile-import</link>
		<comments>http://tristanwatkins.com/index.php/hyphens-in-domain-names-get-trimmed-from-account-names-in-sharepoint-2010-user-profile-import/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 21:23:08 +0000</pubDate>
		<dc:creator>Tristan Watkins</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Domain Names]]></category>
		<category><![CDATA[FIM 2010]]></category>
		<category><![CDATA[hyphen]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[STSADM]]></category>
		<category><![CDATA[User Profile]]></category>

		<guid isPermaLink="false">http://tristanwatkins.com/?p=836</guid>
		<description><![CDATA[We&#8217;ve identified that the user profile import in the SharePoint 2010 public beta can&#8217;t handle hyphens in domain names. The import will succeed but the portion of the domain name preceding the hyphen will get trimmed. When a user logs on a new profile is created but it is orphaned from the imported data. In [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve identified that the user profile import in the SharePoint 2010 public beta can&#8217;t handle hyphens in domain names. The import will succeed but the portion of the domain name preceding the hyphen will get trimmed. When a user logs on a new profile is created but it is orphaned from the imported data. In principal we&#8217;ve been able to work around this by migrating the user profiles with STSADM (thanks to my colleague <a title="Martin Hatch" href="http://www.martinhatch.com/" target="_blank">Martin Hatch</a> for the suggestion) but we haven&#8217;t put this approach to the test over a sufficient period of time to be able to recommend it firmly yet. We also don&#8217;t have a mechanism for triggering the update for newly-imported users but it shouldn&#8217;t be rocket science to come up with a solution to that problem for the duration of the beta.</p>
<p>Microsoft have confirmed this is a problem in the SharePoint 2010 public beta and that a fix will be included in the next release. Their response was on a closed beta forum, so I can&#8217;t include that detail here, but this is my description from <a title="Hyphens in domain names get trimmed from account names in user profiles" href="http://social.technet.microsoft.com/Forums/en-GB/sharepoint2010setup/thread/520c3957-539f-4473-bfbb-ad5eae90f0c9?prof=required&amp;ppud=4" target="_blank">MSDN</a>:<span id="more-836"></span></p>
<blockquote><p>We’ve been trying to launch an internal deployment of SharePoint 2010 MySites but we’ve run in to a problem with the user profile import. We’ve reviewed all of the relevant guidance and have been able to complete an import successfully, but all of the characters before a hyphen in our domain name are getting truncated from the imported username. To illustrate:</p>
<p><strong>PREFIX-BLAH\tristan.watkins</strong> becomes <strong>BLAH\tristan.watkins</strong> after it is imported. When I log in, a <em>new</em> user profile is created for <strong>PREFIX-BLAH\tristan.watkins</strong> and all of the imported profile data is useless, since it is associated with a non-existent <strong>BLAH\tristan.watkins</strong>.</p>
<p>I’m assuming this is an issue with the beta version of Forefront Identity Manager 2010 that shipped with SharePoint 2010 beta, but I can&#8217;t find any information suggesting this is a known issue and for all I know it may actually be a SharePoint issue rather than a problem with FIM. For what it&#8217;s worth, this was not a problem in SharePoint 2007.</p></blockquote>
<p>We&#8217;ll be putting this to the test ASAP whenever the next release is available. I&#8217;ll update here if we find anything else out or if we find any similar problems in future.</p>
]]></content:encoded>
			<wfw:commentRss>http://tristanwatkins.com/index.php/hyphens-in-domain-names-get-trimmed-from-account-names-in-sharepoint-2010-user-profile-import/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building a SharePoint 2007/2010 development environment &#8211; Part VI: Issues and Results</title>
		<link>http://tristanwatkins.com/index.php/building-a-sharepoint-20072010-development-environment-part-vi-issues-and-results/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=building-a-sharepoint-20072010-development-environment-part-vi-issues-and-results</link>
		<comments>http://tristanwatkins.com/index.php/building-a-sharepoint-20072010-development-environment-part-vi-issues-and-results/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 02:05:19 +0000</pubDate>
		<dc:creator>Tristan Watkins</dc:creator>
				<category><![CDATA[Client applications]]></category>
		<category><![CDATA[Consultancy and Design]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[AD LDS]]></category>
		<category><![CDATA[ADAM]]></category>
		<category><![CDATA[Aero Glass]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[net user]]></category>
		<category><![CDATA[NUMA]]></category>
		<category><![CDATA[SharePoint 2007]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Sidebar]]></category>
		<category><![CDATA[Sleep]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false">http://tristanwatkins.com/?p=509</guid>
		<description><![CDATA[In the first five parts of this series I covered the project objectives and the system design, then turned my attention to the Hyper-V host image build, automated deployment and the guest virtual machine build. In this post I review some of the questions and issues we&#8217;ve encountered after a few months of working this [...]]]></description>
			<content:encoded><![CDATA[<p>In the first five parts of this series I covered <a title="Building a SharePoint 2007/2010 development environment - Part I:  Introduction and Objectives" href="../?p=497" target="_self">the project objectives</a> and <a title="Building a SharePoint 2007/2010 development environment - Part II: Design" href="../?p=499" target="_self">the system design</a>, then turned my attention to the <a title="Building a SharePoint 2007/2010 development environment - Part III: Host image build and performance benchmarks" href="../?p=503" target="_self">Hyper-V host image build</a>, <a title="Building a SharePoint 2007/2010 development environment - Part IV: Automated deployment" href="../?p=505" target="_self">automated deployment</a> and the <a title="Building a SharePoint 2007/2010 development environment – Part V: Guest Build" href="http://tristanwatkins.com/?p=507" target="_self">guest virtual machine build</a>. In this post I review some of the questions and issues we&#8217;ve encountered after a few months of working this way and some overall reflections on the approach.<span id="more-509"></span></p>
<h2>Issues</h2>
<h3>Guest user accounts</h3>
<p>Guest virtual machines have been configured in a workgroup in order to conserve resources that would be spent on domain services. Additionally, developing on a domain controller is less than ideal for a number of reasons including performance tuning, administrative complexity, start-up times and security.</p>
<p>I created the development virtual machine with 160 local user accounts that have been logged on to the portal and the MySite application in order to create a basic profile. If there is a need to script creation of local user accounts, the <strong>net user</strong> command will be useful. However, this will be of limited assistance for complex profile requirements, since there is no way to synchronise with a directory and since the local users have no associated profile data, but it may be helpful for testing or demonstration.</p>
<p>If LDAP user accounts or other directory objects are required for development purposes (user profiles for instance), consider using <em>Active Directory Lightweight Directory Services</em>. This is the successor to <em>Active Directory Application Mode (ADAM)</em> in Windows Server 2003. It is a Windows LDAP directory that supports user and group objects without a full-blown domain infrastructure.</p>
<p>There will be some scenarios when a full domain services infrastructure is required for development. In those cases it may be preferable to run a second virtual machine as a domain controller.</p>
<h3>Hibernate and Sleep</h3>
<p>Hibernate and Sleep are disabled automatically when Hyper-V is installed. This is by design. Hyper-V disables this functionality, as the guest virtual machines could be damaged by a Hibernate or Sleep operation in the host if they were not saved gracefully. If, on the other hand, all virtual machines had to be put in to a saved state before a host machine could be put to sleep or hibernated, this would mean extending the wait time for these operations to unacceptable levels, as they are also automatically triggered by low battery warnings. Unfortunately we need to live with this behaviour.</p>
<h4>Do not travel with a running laptop</h4>
<p>Putting a running laptop in a bag will cause it to overheat quickly and is likely to damage hardware.</p>
<h4>Improvements to Start-up and Shutdown times</h4>
<p>These builds should start up and shut down in less than two minutes (closer to 90 seconds). Keep in mind that virtual machines can be safely saved and work can be resumed quickly when the machine is restarted. Since all of the development work will be taking place inside the virtual machine, this should reduce the Hibernate/Sleep annoyance.</p>
<h3>Virtual PC won’t run on Windows Server 2008 R2</h3>
<p>Windows Virtual PC will not work on Windows Server 2008 R2, as it was designed specifically for Windows 7. Earlier versions of Virtual PC may install on Windows Server 2008 R2, but they will not co-exist with Hyper-V, so do not install them.</p>
<h3>Hyper-V role won’t work after SysPrep</h3>
<p>This shouldn’t be an issue, as we have set up automated deployment, but it’s worth noting that this is <a title="Hyper-V Installation Tricks - Part 1: Sysprep and Hyper-V" href="http://blogs.msdn.com/mikekol/archive/2008/03/25/hyper-v-installation-tricks-part-1-sysprep-and-hyper-v.aspx" target="_blank">a known issue</a>. There are time-consuming work-arounds to fix some of the problems that this will cause, but they are best considered as a last resort.</p>
<h3>Colour management</h3>
<p>Colours are limited to 16-bit in Hyper-V guests. If a fuller spectrum is required, it should be possible to test in full colour in a browser on the host.</p>
<h3>Resolving host names from an internal domain</h3>
<p>During our pilot we identified that fully-qualified domain names resolved successfully but host names would not resolve without the full domain name. To satisfy this requirement we have added our internal DNS suffixes to the ICS Connection inside the development virtual machine.</p>
<h4>Manually adding DNS suffixes</h4>
<p>If a network adapter in a guest virtual machine loses these settings by deletion/re-creation of the adapter, or for some other reason, the setting can be re-entered as follows:</p>
<ul>
<li>Go to the IPv4 properties on the ICS Connection and select Advanced.</li>
<li>On the DNS tab select the <em>Append these DNS suffixes (in order)</em> radio button.
<ul>
<li>Add <em>internal.domainname.local</em> and <em>other.domainname.com.</em></li>
</ul>
</li>
<li>Un-tick the DNS registration box.</li>
<li>Select OK, OK and Close.</li>
<li>Make sure that this change is captured in all snapshots as necessary.</li>
</ul>
<h3>Internet Explorer (64-bit version)</h3>
<p>Adobe flash player does not currently support 64-bit browsers. You&#8217;ll have to use the 32-bit IE or another browser if you want to view flash files. We recommend using the 32-bit version by default.</p>
<h3>Hyper-V Manager UAC prompt work-around</h3>
<p>If the UAC prompt on Hyper-V Manager is annoying, try launching Server Manager and navigating to Hyper-V in the Roles node. This has the added benefit of exposing the Hyper-V event log messages and service states in that top Hyper-V node. These are not visible in Hyper-V Manager. Awareness of these messages and the service statuses will help to resolve Hyper-V issues faster.</p>
<h3>Test DVD burning</h3>
<p>In our pilot we identified that the DVD burner drivers don’t work <em>for burning</em> in Windows Server 2008 R2 on a Dell XPS M1330. This was also true on a Lenovo laptop. Chipset updates, driver updates and a Microsoft KB registry hack all failed to make a difference. The Matshita (Panasonic subsidiary) site does not support the products directly (they point to the laptop manufacturer). Dell and Lenovo had not released new drivers when we launched. As DVD burning has changed in Windows Server 2008 R2 this may have a wider impact.</p>
<h3>Bluetooth doesn’t work</h3>
<p>The Bluetooth stack is missing from Windows Server 2008 and Windows Server 2008 R2. In Windows Server 2008 there were fairly elaborate means of porting the stack from Vista, but results appear to be spotty at best.</p>
<h3>WorkItemTypeDeniedOrNotExistException when trying to open work items</h3>
<p>This error occurred in the first release of our guest build because I installed Visual Studio 2008 SP1 before the Team Foundation Client (TFC), so the TFC did not get upgraded. The fix is to un/re-install Visual Studio 2008 SP1, or to make sure that the TFC is installed before Visual Studio 2008 SP1.</p>
<h3>NUMA nodes and RAM allocation</h3>
<p>It is important to not exceed NUMA node limits when assigning RAM to virtual machines, although this will not apply to many laptops, as most will have an SMP architecture. It is beyond the scope of this post to go in to NUMA nodes in great detail (and in truth, my understanding of it does not reach beyond a few hours of research), but the limits in your environment should be understood so that performance does not suffer. As a starting point it&#8217;s worth confirming the type of CPU architecture and looking at this in more detail if it is NUMA. The <a href="http://technet.microsoft.com/en-us/library/dd277865.aspx">performance and capacity requirements for Hyper-V</a> document on TechNet explains this well:</p>
<blockquote><p><strong>Configure the correct amount of memory for Hyper-V guests.</strong> During the testing, no change had a greater impact on performance than modifying the amount of RAM allocated to an individual Hyper-V image. Because memory configuration is hardware-specific, you need to test and optimize memory configuration for the hardware you use for Hyper-V.</p>
<p>The initial goal of the testing was to make the Hyper-V image as similar as possible to the physical hardware image against which it was being compared. Based on that goal, the Hyper-V images were originally allocated 32 gigabytes (GB) of RAM, which was the same amount of RAM as was on the physical servers being tested. However, the initial test results showed that with that configuration, the Hyper-V images could sustain a load that was only about 70 percent of the load on the physical hardware. After investigating the Event Viewer on the Hyper-V host machine in the Windows Server 2008  <strong>Custom Views</strong>, <strong>Server Roles</strong>, <strong>Hyper-V Events</strong>, it was discovered that the RAM for the Hyper-V images was being spread across multiple non-uniform memory access NUMA nodes. This information confirmed that performance declined when memory was allocated across nodes. After trying different configurations it was determined that for the hardware being used, 8 GB of RAM was the maximum that could be allocated to a Hyper-V image without crossing NUMA nodes.</p></blockquote>
<p>To reiterate, this means that in Microsoft&#8217;s tests, Hyper-V performed <strong>significantly worse</strong> with 32GB allocated to a virtual machine than it did with an 8GB allocation. The exact size of the NUMA node boundary will vary by vendor, so make certain to gain an understanding of the number of nodes in your system. Divide the total RAM by the number of nodes in order to find the memory limits of a virtual machine. This does not mean that additional virtual machines can’t be run beyond a NUMA node boundary, if there is sufficient RAM available. The node boundary is the limit of optimal process performance. Beyond this limit, the virtual machine will suffer from degraded performance because it needs to use memory from an alocal address space.</p>
<p>However, <strong>NUMA isn&#8217;t the only thing to worry about</strong> when finding an optimal RAM allocation. Based on test results during our pilot we could push our virtual machines to up to 2250MB RAM, depending on the amount of activity in the host. In some cases it may be possible to get up to 2500MB RAM for a virtual machine on a 4GB RAM system, but this was not consistently achievable in our tests. If it’s necessary to achieve that, the virtual machines should be started up soon after booting and before any major client application activity is started on the host machine. Client application activity should be kept to a minimum when allocating this much RAM to virtual machines. We also found that host performance was often reduced to an intolerable level whenever there was less than 2GB RAM available to the host for an extended period of time. 1.75GB RAM may be achievable, but this should be tested extensively for your needs.</p>
<p>Additionally, saving a virtual machine&#8217;s state becomes risky when there is less than 2GB available to the host, as the machine will not resume from the saved state if there is insufficient resource available to it.</p>
<h3>Periodic but routine loss of connectivity on the host machine</h3>
<p>As I&#8217;ve been tracking here, we&#8217;ve documented repeat problems with periodic (but routine) loss of connectivity on the host machine. This is still an open issue. More info here:</p>
<p><a title="Routine loss of connectivity on a Hyper-V host’s external connection" href="http://tristanwatkins.com/?p=115" target="_self">Routine loss of connectivity on a Hyper-V host’s external connection</a><a title="More on routine loss of external network connectivity on Hyper-V hosts (not guests)" href="http://tristanwatkins.com/?p=492" target="_self"><br />
More on routine loss of external network connectivity on Hyper-V hosts (not guests)</a></p>
<h3>Hyper-V performance suffers during graphics-intensive operations</h3>
<p>This has been covered by <a title="Virtual PC Guy" href="http://blogs.msdn.com/Virtual_PC_Guy/" target="_blank">Ben Armstrong</a> in considerable detail and I&#8217;m continuing to track it:<br />
<a title="Hyper-V graphics performance and SharePoint 2010 development" href="http://tristanwatkins.com/?p=203" target="_self">Hyper-V graphics performance and SharePoint 2010 development</a><br />
<a title="Hyper-V graphics performance is on the way… if you need a new laptop" href="http://tristanwatkins.com/?p=247" target="_self">Hyper-V graphics performance is on the way… if you need a new laptop</a><br />
<a title="The definitive word on Hyper-V high-end graphics performance" href="http://tristanwatkins.com/?p=717" target="_self">The definitive word on Hyper-V high-end graphics performance</a></p>
<h3>Aero Glass</h3>
<p>Unfortunately, due to the graphics performance issues in Hyper-V mentioned above, there is a significant graphics performance hit when using Aero Glass. This does not slow down overall systems performance, but graphics-heavy operations will suffer in most Hyper-V environments. To this end, we do not recommend installing Aero Glass, but if you want to put it to the test feel free.</p>
<h4>How to enable Aero Glass</h4>
<ul>
<li>Make sure the Desktop Experience is activated
<ul>
<li>On the Dell XPS M1330, make sure BIOS A14 or later is installed
<ul>
<li>Confirm the latest NVIDIA drivers for Windows 7 x64 are installed</li>
<li>Turn on the Desktop Window Manager Session Manager service and switch to automatic start</li>
<li>Turn on the Themes service and switch to automatic start</li>
<li>Switch to an Aero theme</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3>Sidebar</h3>
<p>It is also possible to add the Windows 7 Sidebar to the host dekstop. We haven&#8217;t tested this extensively enough to provide documentation on the best approach, but we have done it successfully. If there is sufficient interest in this technique I will add a follow-up post in future.</p>
<h3>Storage</h3>
<p>Be prepared for snapshots to increase the local storage requirements considerably. Some of our developers are legitimately struggling to work on three projects concurrently with 300GB local storage. One option we are considering is eSATA over PCMCIA as a means of increasing total spindle speed and storage but we have yet to begin testing this approach. We are specifically interested in eSATA since Hyper-V does not support system VHDs on USB. If we pursue this option I&#8217;ll post the results.</p>
<h2>Results</h2>
<h3>Putting things in perspective</h3>
<p>It&#8217;s worth repeating that we&#8217;re asking this system to do many things it was not intended to do. It is a server operating system with an enterprise virtualisation technology. The Microsoft virtualisation team will tell you that Hyper-V was not designed with developers in mind. <a title="Hyper-V versus Desktop Computing" href="http://blogs.msdn.com/virtual_pc_guy/archive/2009/08/21/hyper-v-versus-desktop-computing.aspx#9880925" target="_blank">To quote Ben Armstrong</a>:</p>
<blockquote><p>As is being discussed at length here &#8211; Hyper-V does not play well with high-end video cards (which are far more common on desktops than servers).  Hyper-V also disables sleep and hibernate, as well as increasing the power utilization of the computer.  All of these things would need to be addressed before we could even consider putting Hyper-V in a desktop product.</p></blockquote>
<p>In short, we bent this system to development needs because of the strength of the technology, despite these imperfections. There are fundamental compromises that can&#8217;t be avoided when using a server operating system as a mobile workstation but we believe that we can deliver SharePoint projects as a team better with this technology than without it.</p>
<h3>Hardware</h3>
<p>Whether laptops are the ultimate hardware solution is a different can of worms, which I&#8217;ve chosen to avoid in this series of posts. I&#8217;ve tailored the approach to laptops since that is what we have and the approach can be ported to workstations or shared virtual infrastructure.</p>
<h3>The developer experience and the bottom line</h3>
<p>There&#8217;s no question that using snapshots, import and export in Hyper-V adds a complex tier to the development experience and there will be a learning curve for those who are less familiar with virtualisation or don&#8217;t use the advanced features often. However, we have achieved an immediate and measurable gain in stability and environment consistency through the use of standard builds, snapshots and exported project-defined environments.</p>
<p>Conversely, it&#8217;s worth keeping in mind that as desirable as standardisation is, there are times when it hinders more than it helps and on those occasions a non-standard build may be more appropriate. Considering alternative builds is a much less cumbersome proposition with  the combination of WDS, Shrink Volume and Dual-booted systems or the new Native boot from VHD. The key consideration to keep in mind is that most other approaches will entail a sacrifice of what I lump together as the &#8220;management benefits&#8221; of Hyper-V (snapshot, import and export). For instance, you may consider allowing a team to develop on native operating systems for a project, but then a team member may lose a day if they need to rebuild their system, or the support team may need two days to build an environment in Hyper-V later on, or a team member may need to split her time with a team who use Hyper-V for their project, or the original project may fork. Memories of project difficulties gone-by come flooding back. While it&#8217;s always worth considering options, if you spend time identifying a standard approach for your business, it&#8217;s probably best to stick with it unless there&#8217;s a truly compelling reason not to.</p>
]]></content:encoded>
			<wfw:commentRss>http://tristanwatkins.com/index.php/building-a-sharepoint-20072010-development-environment-part-vi-issues-and-results/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Can a hardened server play a SharePoint 2010 Silverlight Media Web Part?</title>
		<link>http://tristanwatkins.com/index.php/can-a-hardened-server-play-a-sharepoint-2010-silverlight-media-web-part/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=can-a-hardened-server-play-a-sharepoint-2010-silverlight-media-web-part</link>
		<comments>http://tristanwatkins.com/index.php/can-a-hardened-server-play-a-sharepoint-2010-silverlight-media-web-part/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 00:47:24 +0000</pubDate>
		<dc:creator>Tristan Watkins</dc:creator>
				<category><![CDATA[Client applications]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[desktop experience]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[web part]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Update]]></category>

		<guid isPermaLink="false">http://tristanwatkins.com/?p=722</guid>
		<description><![CDATA[The answer, obviously enough, is that it can if it has Silverlight installed. Read on if you&#8217;re interested in how the web part will behave in its absence. Last week we built a Windows Server 2008 R2 Hyper-V host that we used for our SharePoint 2010 launch event at Microsoft London. We were practicing the [...]]]></description>
			<content:encoded><![CDATA[<p>The answer, obviously enough, is that it can if it has Silverlight installed. Read on if you&#8217;re interested in how the web part will behave in its absence.</p>
<p><span id="more-722"></span>Last week we built a Windows Server 2008 R2 Hyper-V host that we used for our SharePoint 2010 launch event at Microsoft London. We were practicing the demonstration from connected Windows 7 laptops but we also wanted to understand the limitations of presenting from the host itself, should something go wrong with the networking. For the most part this worked fine, but we ran in to problems when we tried to run the media web part. The dialogue box would pop up as normal, but there was no option to <em>Play</em>. If I clicked <em>View</em> I would be prompted to download the .WMV file. At this point I realised that this hardened server did not have the Desktop Experience enabled, so it didn&#8217;t have a default media player.</p>
<p>After installing the Desktop Experience and rebooting (note: this does a few reboots), the pop-up looked the same; the <em>Play</em> button was still missing. Now if I clicked <em>View</em> it would launch in Windows Media Player.</p>
<p>Eventually it occurred to me that the server might be missing Silverlight. We install it by default, so it took some time for me to catch on. I checked the installed updates and sure enough, it was missing. When I tried to run Windows Update it revealed that Silverlight was the only availably update. I tried to install it and I quickly got error 80244019. Searching for a solution suggested a few possible answers &#8211; mostly network/DNS-related. To expedite things I visited the Silverlight site and installed it manually. I believe the problem may have been DNS or proxy-related but since all other Windows updates installed fine it&#8217;s a bit of a mystery.</p>
<p>Installing Silverlight manually did the trick. The Play option returned in the pop-up and video played normally. Out of curiosity I removed the Desktop Experience and tested again. Everything continued to work normally. All of this is totally clear in retrospect, but with the new technology cocktail that is SharePoint 2010, Silverlight 3, IE8 and Windows Server 2008 R2, it&#8217;s easy enough to loose sight of the obvious.</p>
]]></content:encoded>
			<wfw:commentRss>http://tristanwatkins.com/index.php/can-a-hardened-server-play-a-sharepoint-2010-silverlight-media-web-part/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Hyper-V Manager over VPN may fail if the server is VMM-managed</title>
		<link>http://tristanwatkins.com/index.php/hyper-v-manager-over-vpn-doesnt-like-sc-vmm/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hyper-v-manager-over-vpn-doesnt-like-sc-vmm</link>
		<comments>http://tristanwatkins.com/index.php/hyper-v-manager-over-vpn-doesnt-like-sc-vmm/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 21:36:19 +0000</pubDate>
		<dc:creator>Tristan Watkins</dc:creator>
				<category><![CDATA[IT Management]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[HVRemote]]></category>
		<category><![CDATA[Hyper-V Manager]]></category>
		<category><![CDATA[SC VMM]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[WBEMTEST]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://tristanwatkins.com/?p=76</guid>
		<description><![CDATA[About a year ago John Howard published guidance on how to get Hyper-V Manager to connect to Hyper-V servers over VPN. His network monitoring and suggestion to change the VPN connection IP settings so that the VPN adapter registers the machine&#8217;s new address in DHCP/DNS went a long way towards fixing the issue  for me &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>About a year ago <a title="John Howard" href="http://blogs.technet.com/jhoward" target="_blank">John Howard</a> published guidance on how to get Hyper-V Manager to connect to Hyper-V servers over VPN. His network monitoring and suggestion to change the VPN connection IP settings so that the VPN adapter registers the machine&#8217;s new address in DHCP/DNS went a long way towards fixing the issue  for me &#8211; however, we recently uncovered a couple of caveats as detailed in <a title="John Howard" href="http://blogs.technet.com/jhoward/archive/2008/08/07/hyper-v-why-does-hyper-v-manager-not-always-work-over-vpn-connection-access-denied-or-rpc-server-unavailable-errors.aspx#3266386" target="_blank">the comments on his original post</a>.<span id="more-76"></span></p>
<p>First, I found it was necessary to disable the DNS cache on the Hyper-V server so that it would find the newly-registered VPN-connected IP address of the client machine so that it can correctly route all traffic back to it. This can be rectified for testing purposes with an IPCONFIG /FLUSHNDS but it would be a massive annoyance if all remote Hyper-V users had to log on to the Hyper-V server via remote desktop and flush the DNS cache before connecting with Hyper-V Manager. In order to disable DNS caching at all times just disable the DNS client service. Granted, this introduces the overhead of DNS requests for all network activity on the root partition, but in this case we can live with that, especially since most Hyper-V hosts probably won&#8217;t have a lot of traffic on the management NIC.</p>
<p>Once this fix was in place we could establish a Hyper-V Manager connection over VPN, the server&#8217;s activity pane expanded and I could even modify the server&#8217;s settings. Strangely, the Hyper-V virtual machine pane remained empty and never enumerated the guests. At this point I started to detail the new problem for John and he suggested connecting using the WMI testing tool, WBEMTEST. He provided me with the query syntax and I confirmed that WMI was able to enumerate all of the virtual machines over VPN when Hyper-V Manager could not. John also asked if we were using SC Virtual Machine Manager (VMM) in this environment (we are), which unfortunately means that we can&#8217;t use his HVRemote tool to gather additional test results, as it doesn&#8217;t support VMM-managed Hyper-V servers.</p>
<p>We&#8217;re going to rebuild the Hyper-V Server on Windows Server 2008 R2 RTM in a few weeks and test connections before bringing it under VMM-management and test with HVRemote in more detail if there are problems. Until then, it would be interesting to know if anyone else has this problem with VMM-managed Hyper-V servers.</p>
<p>22/10/09 update: we still have the same problem after rebuilding the server. The rebuilt machine is not VMM-manager. Still no solution for this presently.</p>
]]></content:encoded>
			<wfw:commentRss>http://tristanwatkins.com/index.php/hyper-v-manager-over-vpn-doesnt-like-sc-vmm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The stuff around SelfSSL</title>
		<link>http://tristanwatkins.com/index.php/the-stuff-around-selfssl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-stuff-around-selfssl</link>
		<comments>http://tristanwatkins.com/index.php/the-stuff-around-selfssl/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 02:00:19 +0000</pubDate>
		<dc:creator>Tristan Watkins</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[browser security]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[SelfSSL]]></category>

		<guid isPermaLink="false">http://tristanwatkins.com/?p=53</guid>
		<description><![CDATA[Working with software developers, I&#8217;ve probably seen SelfSSL used more often than in most lines of work, and also misuse of it. The purpose of this article is to draw some boxes around the different areas that come in to play when a site is self-certified. Browser Most obviously, the user requests the page through [...]]]></description>
			<content:encoded><![CDATA[<p>Working with software developers, I&#8217;ve probably seen SelfSSL used more often than in most lines of work, and also misuse of it. The purpose of this article is to draw some boxes around the different areas that come in to play when a site is self-certified.</p>
<p style="MARGIN-BOTTOM: 0cm"><strong><span style="font-size: small;">Browser</span></strong></p>
<p style="MARGIN-BOTTOM: 0cm">Most obviously, the user requests the page through the browser, but the browser also warns of Certificate/DNS name mismatches. Unless the certificate was issued to the address through which the site is being browsed, the browser will produce certification warnings. This behaviour is expected and desirable as part of browser security.<span id="more-53"></span></p>
<p style="MARGIN-BOTTOM: 0cm">
<p>The browser also verifies that the certificate is trusted. One of the most frequent problems with SelfSSL is that the certificate does not get installed properly. There are a few ways that this can be approached, but the easiest way (given that SelfSSL should only be used for testing) is to install the certificate in to the automatically selected location, or in the <em>Trusted Root Certificate Authorities</em> store if that should fail (obviously this isn&#8217;t something you&#8217;d normally recommend, but since you issued the certificate yourself, there isn&#8217;t much risk). This can be installed manually through the <em>Certificates</em> MMC in Administrative Tools or in response to errors in the browser on the first visit to the newly-certified site. If installing through the browser, the certificate errors will not go away until after all instances of the browser have been closed and re-opened.</p>
<p>Last but not least, the browser decrypts communication using the private key stored in the trusted certificate.</p>
<p style="MARGIN-BOTTOM: 0cm"><strong><span style="font-size: small;">NIC/DNS</span></strong></p>
<p style="MARGIN-BOTTOM: 0cm">If a test environment requires multiple self-certified sites, these sites will need to have new certificates issued to unique port/IP address pairs (this is fundamental to how SSL works). By default, one would use &lt;IPAddress&gt;:443. A second could be issued on &lt;IPAddress&gt;:444, etc, but it is often more desirable to issue additional certificates on port 443 as well.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm">I&#8217;m always amazed at how many people don&#8217;t know that a single NIC can have multiple IP addresses, in the same or different ranges. When planning self-certified sites, always keep in mind the number of addresses that will be needed, don&#8217;t forget to add them to the NIC, and make sure that the HOSTS file or DNS is updated accordingly.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm"><strong>IIS</strong></p>
<p style="MARGIN-BOTTOM: 0cm">The Application Server uses the certificate assigned through the site security settings (or via the SelfSSL command) to assign a public key for encryption and a private key for decryption. Put more simply, IIS establishes the relationship between site and certificate.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm">As mentioned earlier, IIS binds SSL traffic to a single port-per-IP-address. If use of the default SSL port (443) is desirable for multiple sites, each site must be assigned a specific IP address in IIS and the DNS or HOSTS file settings must resolve the host name to that IP address. It&#8217;s worth repeating that the browser will warn of any mismatches between the certificate&#8217;s address and the URL through which the site is browsed.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm"><strong>SelfSSL</strong></p>
<p style="MARGIN-BOTTOM: 0cm">SelfSSL is a free command-line tool in the Windows Server 2003 IIS ResKit. SelfSSL is like a local CA for <em>issuing a single certificate per-IIS instance</em>. However, it does not take the place of a proper domain or Trusted Root CA, as the certificate needs to be manually installed on the end user&#8217;s machine (see Browser comments above), and it can only issue a single certificate.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm">In order to get around this limitation, we can issue a wildcard certificate (<em>*.domainname.com</em>) that can be exported from the first site it is created on and imported to other sites with the same domain name. See the notes above about running multiple sites on SSL in the NIC/DNS and IIS sections.</p>
<p style="MARGIN-BOTTOM: 0cm">
<p style="MARGIN-BOTTOM: 0cm"><strong>NOT FOR PRODUCTION</strong></p>
<p style="MARGIN-BOTTOM: 0cm">I would like to think that I needn&#8217;t issue any further reminders about using SelfSSL in production, but I&#8217;ll say it anyway. If all of this wasn&#8217;t persuasive, then please remember that every user of the site will need to manually install the certificate. Try and talk someone through this over the phone, multiply the time it takes by ten and then go buy yourself that immeasurably cheaper certificate.</p>
]]></content:encoded>
			<wfw:commentRss>http://tristanwatkins.com/index.php/the-stuff-around-selfssl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

