<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://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://maytide.net/read.php/1636.htm</link>
<title><![CDATA[[WS2012] Windows Server 2012 使用 SMB 共享存储的实时迁移]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Virtualization]]></category>
<pubDate>Mon, 12 Nov 2012 05:39:41 +0000</pubDate> 
<guid>https://maytide.net/read.php/1636.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><font color="#fd3f0d" size="4"><a href="http://www.microsoft.com/zh-cn/server-cloud/ws2012/default.aspx" target="_blank"><strong><font color="#fd3f0d">Windows Server 2012</font></strong></a><strong> 使用 SMB 共享存储的实时迁移</strong></font></p> <p><a href="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/live_migration_with_smb_shared_storage.png"><img title="live_migration_with_smb_shared_storage" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="live_migration_with_smb_shared_storage" src="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/live_migration_with_smb_shared_storage_thumb.png" width="634" height="313"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前几天 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 与大家分享了“<a href="http://www.microsoft.com/zh-cn/server-cloud/ws2012/default.aspx" target="_blank">Windows Server 2012 无需共享存储的实时迁移</a>”，当我们了解了无需共享存储的实时迁移之后，对于 Windows Server 2012 使用 SMB 共享存储的实时迁移学习和实践起来就更加容易了！还记得之前的迁移过程中有一个步骤是让我们选择要移动的虚拟机项目吗？！其中“仅移动虚拟机”这个选项就是基于共享存储的实时迁移。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012-Windows-Server-2012-_7DE4/5.png"><img title="5" border="0" alt="5" src="http://goxia.maytide.net/ftpupfiles/WS2012-Windows-Server-2012-_7DE4/5_thumb.png" width="630" height="476"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;既然是使用共享存储的实时迁移，那么文件共享是必须具备的前提条件，需要注意的是虽然是文件共享，但是我们必须使用基于 SMB 3.0 协议的文件共享服务器，大家可参考上一篇日志“<a href="http://goxia.maytide.net/read.php/1635.htm" target="_blank">Windows Server 2012 Hyper-V over SMB</a>”进行准备工作。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;测试环境大致说明，两台 Hyper-V 主机已经加入到活动目录（AD），并在名为 Hyper-V 的主机上启用了 SMB 共享，为了确保使用 SMB 共享存储的实时迁移正常工作，我们需要做 Kerberos 委派，与“<a href="http://goxia.maytide.net/read.php/1632.htm" target="_blank">Windows Server 2012 无需共享存储的实时迁移</a>”中提到的委派设置相同，添加 CIFS 委派即可，否则就会 出现如下图一样的错误。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/12.png"><img title="12" 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="12" src="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/12_thumb.png" width="472" height="474"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由于 SMB 共享是建立在一台 Hyper-V 主机上的，所以我们需要特别设置一下共享权限，将目录权限和共享权限都添加 everyone 有完全控制权限，否则在迁移时会出现错误，如下图所示。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/13.png"><img title="13" 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="13" src="http://goxia.maytide.net/ftpupfiles/3492f77cde1c_9020/13_thumb.png" width="444" height="368"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;因为本机在访问位于本机共享资源的UNC时，会使用 user 权限进行验证，如果按照“<a href="http://goxia.maytide.net/read.php/1635.htm" target="_blank">Windows Server 2012 Hyper-V over SMB</a>”中推荐的安全规范进行设置，会导致主机访问共享失败。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一切准备就绪后，就可以开始迁移了，在 Hyper-V 移动向导过程中选择“仅移动虚拟机”，过程就是这么简单！对于此类的实时迁移，因为虚机的磁盘文件（VHD）始终位于基于 SMB 3.0 的文件服务器上，虚机的迁移只是将运行状态从一台主机迁移到另一台主机，当然 SMB 存储的链接也会被迁移过去，但是 VHD是绝不会被移动的。</p> <p><a href="http://goxia.maytide.net/ftpupfiles/WS2012-Windows-Server-2012-_7DE4/5.png"><img title="5" border="0" alt="5" src="http://goxia.maytide.net/ftpupfiles/WS2012-Windows-Server-2012-_7DE4/5_thumb.png" width="630" height="476"></a></p><br/>Tags - <a href="https://maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="https://maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="https://maytide.net/go.php/tags/server/" rel="tag">server</a> , <a href="https://maytide.net/go.php/tags/2012/" rel="tag">2012</a> , <a href="https://maytide.net/go.php/tags/hyper-v/" rel="tag">hyper-v</a> , <a href="https://maytide.net/go.php/tags/3.0/" rel="tag">3.0</a> , <a href="https://maytide.net/go.php/tags/over/" rel="tag">over</a> , <a href="https://maytide.net/go.php/tags/smb/" rel="tag">smb</a> , <a href="https://maytide.net/go.php/tags/live/" rel="tag">live</a> , <a href="https://maytide.net/go.php/tags/migraiton/" rel="tag">migraiton</a> , <a href="https://maytide.net/go.php/tags/with/" rel="tag">with</a> , <a href="https://maytide.net/go.php/tags/shared/" rel="tag">shared</a> , <a href="https://maytide.net/go.php/tags/storage/" rel="tag">storage</a>
]]>
</description>
</item>
</channel>
</rss>