win8--hyper-v必须通过远程管理,XP不行。

1.两台机器,都连到路由上,自动分配地址/要添加host。
  
  1、装hyper-v,傻瓜式,微软特殊,比较简单。
   关闭hyper-v的防火墙:
   netsh
   firewall
   set opmode disable
  
   开hyper-v的远程桌面:hyper-v的配置列表中的4。用xp远程连结,可以连上。
   将hyper-v加入工作组。  
  2、装win8。hyper-v要求vistasp1/win7/win8/x86/x64。hyper-v工作组与hyper-v相同。

              32位只有管理器,无法在本地安装虚拟机,64位支持本地安装虚拟机
  
  3、win8装hyper-v本地安装虚拟机。
  
  4、win8中打开hyper-v,连接服务器,输入hyper-v服务器机器名,连不上?!显示“访问被拒绝”
  
  5、网上一通搜索,机器上一通乱试,终于找到解决办法:
  
  (1)打开hyper-v的WMI服务
  netsh advfirewall firewall set rule group="Windows Management Instrumentation (WMI)" new enable=yes
  
  (2)将vista与hyper-v上的用户administrator密码设置为相同。vista默认不显示administrator,需要用gpedit.msc将其enable。也可以用其他用户(administrators)登录hyper-v,但hyper-v必须有相同的用户名与密码。
  
  (2)下载HVREMOTE.wsf
  http://code.msdn.microsoft.com/HVRemote
  
  http://blogs.technet.com/jhoward/archive/2008/11/14/configure-hyper-v-remote-management-in-seconds.aspx
  
  HVREMOTE.wsf是一个cscript,需要用cscript执行。
  
  cscript HVREMOTE.wsf /show :显示现行配置和问题。
  
  需要将该文件传到hyper-v机器上。首先在hyper-v上建立临时目录:md temp;然后将该目录共享:net share temp=c:temp UNLIMITED;在vista中找到hyper-v的共享目录,将hvremote复制进去。
  
  (3)win8 (client)端
   Add firewall exception for MMC(命令行): cscript hvremote /mode:client /mmc:enable
   Allow anonymous access to Distributed COM(命令行): cscript vremote /mode:client /AnonDCOM:grant
   grant要小写。
  
  (4)hyper-v(server)端
   用户授权:cscript hvremote /mode:server /add:username
  
  (5)再试,远程管理终于联通!!!
  
 参考博客:

http://code.msdn.microsoft.com/HVRemote

http://blog.tianya.cn/blogger/post_show.asp?BlogID=1955281&PostID=17269801