在Windows 2008 Server Core模式下安装和管理Hyper-V

35次阅读
没有评论

如何在Server Core模式下安装Hyper-V,安装分两步:

1. 首先需要在Server Core使用bcdedit更改启动的配置,运行以下的命令:
bcdedit /set hypervisorlaunchtype auto
注意:如果以前没有配置过这个设置,当运行以上的命令后,Server Core需要重新启动。

2. 然后请您使用以下的命令来安装Hyper-V
start /w OCSetup Microsoft-Hyper-V
等命令结束的时候,重新启动这台Server Core来完成安装, Hyper-V需要重新启动才能完成安装。然后使用oclist命令来查看是不是Hyper-V这个角色已经被安装好了。

因为Hyper-V无法在命令行下面进行虚拟机的创建和管理。所以在Server Core服务器中安装完Hyper-V后,需要用另外的一台装有Hyper-V管理界面的Windows 2008服务器或者是有装好Hyper-V Manager的Vista SP1的机器来创建和管理虚拟机。 如何能够让外面服务器管理Hyper-V,需要在Server Core上做一些额外的操作。

a. 使用以下的命令在Server Core上启用远程管理,:
netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes

b.用以下的命令启用远程桌面
cscript \windows\system32\scregedit.wsf /ar 0
cscript \windows\system32\scregedit.wsf /cs 0

c. 用以下的命令来重新启动Server Core机器让这些配置生效
shutdown /t 0 /r

以下是一些在Server Core模式下安装Hyper-V的资料供参考:
Hyper-V on Server Core

Server Core 的部署与管理https://blog.51cto.com/zhengweiit/389959
正文完