<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://sufan.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://sufan.maytide.net/read.php/1634.htm</link>
<title><![CDATA[[WS2012]HOWTO: 解决 Windows Server 2012 Hyper-V 实时迁移时遇到的 0x80090303 故障]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Virtualization]]></category>
<pubDate>Fri, 09 Nov 2012 08:32:28 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1634.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012.png"><img title="logo_winserver2012" border="0" alt="logo_winserver2012" src="http://goxia.maytide.net/ftpupfiles/-Windows-Server-2012_A734/logo_winserver2012_thumb.png" width="220" height="44"></a></p> <p><strong><font color="#fd3f0d" size="4">HOWTO: 解决 </font></strong><a href="http://www.microsoft.com/zh-cn/server-cloud/ws2012/default.aspx" target="_blank"><strong><font color="#fd3f0d" size="4">Windows Server 2012</font></strong></a><strong><font color="#fd3f0d" size="4"> Hyper-V 实时迁移时遇到的 0x80090303 故障</font></strong></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当我们在测试 Windows Server 2012 Hyper-V 实时迁移（如：<a href="http://goxia.maytide.net/read.php/1632.htm" target="_blank">无需共享存储的实时迁移</a>）过程中可能会遇到 0x80090303 故障，错误如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012HOWTO--Windows-Server-2012--0x8009_DCD3/0x80090303.png"><img title="0x80090303" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="0x80090303" src="http://goxia.maytide.net/ftpupfiles/WS2012HOWTO--Windows-Server-2012--0x8009_DCD3/0x80090303_thumb.png" width="400" height="309"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;具体内容大致为“迁移源上的虚拟机迁移操作失败。无法验证源主机上的连接：指定的目标未知或无法达到（0x80090303）。”由于 0x80090303 故障与之前日志中提到的 0x8009030E 故障极为相似，如果不加注意我们便会按照实时迁移时 kerberos 权限委派的步骤进行排错解决，去为主机委派设置添加“Microsoft Virtual System Migration Service”服务类型。<a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 当初就走入了这个误区，当使用 ADUC 为 Hyper-V 主机去做委派时发现在主机委派服务类型中并未找到“Microsoft Virtual System Migration Service”。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;检查 Hyper-V 主机事件日志发现在“应用程序和服务日志”-“Microsoft”-“Windows”-“Hyper-V-VMMS”-“Admin”下记录有错误的事件ID：14050，来源为：Hyper-V-VMMS。具体内容是“无法注册服务主体名称“Microsoft Virtual System Migration Service”。”</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012HOWTO--Windows-Server-2012--0x8009_DCD3/image.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://goxia.maytide.net/ftpupfiles/WS2012HOWTO--Windows-Server-2012--0x8009_DCD3/image_thumb.png" width="634" height="358"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;此外，还包含其他几个相关的 SPN（服务主体名称）错误日志：“Hyper-V Replica Service”、“Microsoft Virtual Console Service”。之后使用 setspn –l <em>hostname </em>进行检查，发现当前主机确实缺少这些 SPN，而“Microsoft Virtual System Migration Service”是我们迁移虚机所必须的。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;那么什么是 SPN 呢？！引用一篇微软官方 Blog 的解释：<font color="#a5a5a5"><em>SPN 即“服务主体名称”，是一种名称，唯一标识一个服务实例。用来验证 Kerberos 身份验证的 SPN 的必须正确设置。SPN 是 Active Birectory 属性，但不暴露在 AD 的管理单元。</em></font><font color="#000000">那么 SPN 的作用是什么呢？！gOxiA 推荐这篇微软 Blog <a title="http://blogs.technet.com/b/crmchina/archive/2010/01/29/crm-spn.aspx" href="http://blogs.technet.com/b/crmchina/archive/2010/01/29/crm-spn.aspx">http://blogs.technet.com/b/crmchina/archive/2010/01/29/crm-spn.aspx</a> 供大家参考，虽然与 Hyper-V 没有直接关系，但他们之间的概念是相通的，便于我们更好的理解该故障发生的原因。</font></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;要解决该实时迁移过程中遇到的 0x80090303 故障，我们只需要手工在 Hyper-V 主机上对“Microsoft Virtual System Migration Service”进行 SPN 注册即可。为此，我们需要用到 <strong>setspn –s</strong> <em>spnname</em><strong>/</strong><em>hostname（and FQDN）</em> <em>NetBIOSName</em> 命令行，参考命令行如下：</p> <p><div class="code">setspn –s “microsoft virtual system migration service/hv3”hv3</div></p> <p><div class="code">setspn –s “microsoft virtual system migration service/hv3.contoso.com”hv3</div></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;完成“Microsoft Virtual System Migration Service”的 SPN 注册后，我们便可以正常执行实时迁移，0x80090303 故障消失！按理说 SPN 的注册应该是自动的，但是为什么在 gOxiA 的实验环境下出现失败注册，可能跟 DC 是 SBS2011 有关，因为网上能找到类似的故障都是使用的 SBS2011 作为域控。当然也不排除其他可能存在的因素，在微软的 <a href="http://support.microsoft.com/kb/2761899?wa=wsignin1.0" target="_blank">KB2761899</a> 中就提及到了这个事件 ID，如果你也遇到这个问题，并排除 SBS2011 的原因，那么可以参考：<a title="http://support.microsoft.com/kb/2761899?wa=wsignin1.0" href="http://support.microsoft.com/kb/2761899?wa=wsignin1.0">http://support.microsoft.com/kb/2761899?wa=wsignin1.0</a> 解决！</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关于 SPN 自动注册失败的原因及解决办法，gOxiA 会继续关注，一有答案便会跟大家分享！目前的办法只有使用 setspn 命令手工注册来解决！</p><br/>Tags - <a href="https://sufan.maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://sufan.maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://sufan.maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://sufan.maytide.net/go.php/tags/2012/" rel="tag">2012</a> , <a href="https://sufan.maytide.net/go.php/tags/hyper-v/" rel="tag">hyper-v</a> , <a href="https://sufan.maytide.net/go.php/tags/3.0/" rel="tag">3.0</a> , <a href="https://sufan.maytide.net/go.php/tags/shared/" rel="tag">shared</a> , <a href="https://sufan.maytide.net/go.php/tags/nothing/" rel="tag">nothing</a> , <a href="https://sufan.maytide.net/go.php/tags/live/" rel="tag">live</a> , <a href="https://sufan.maytide.net/go.php/tags/migration/" rel="tag">migration</a> , <a href="https://sufan.maytide.net/go.php/tags/0x80090303/" rel="tag">0x80090303</a> , <a href="https://sufan.maytide.net/go.php/tags/spn/" rel="tag">spn</a> , <a href="https://sufan.maytide.net/go.php/tags/vmms/" rel="tag">vmms</a> , <a href="https://sufan.maytide.net/go.php/tags/virtual/" rel="tag">virtual</a> , <a href="https://sufan.maytide.net/go.php/tags/system/" rel="tag">system</a> , <a href="https://sufan.maytide.net/go.php/tags/service/" rel="tag">service</a>
]]>
</description>
</item>
</channel>
</rss>