Deploying Hyper-V With Windows Server 2008 Core (Domain Environment)
November 27th, 2008
These are the steps and notes I jotted down while deploying Windows Server 2008 Core with Hyper-V. This is by no means a full fledged install document and I’ve put at the bottom of the post links to some other sites which will provide alot more indepeth information.
So first things first install server 2008 core (if you dont know how to do that then stop here
) One important note here is to make sure you use en-us language settings during the install. Hyper-V will not work correctly if you change the language (thank Micrsoft for this feature). Further down is information to change it back if you missed it.
- Allow Remote MMC Administration:
- netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes
- netsh advfirewall set currentprofile settings remotemanagement enable (if you join the pc to domain after this you will need to rerun it)
- Allow Remote Desktop connections:
- cscript %windir%\system32\scregedit.wsf /ar 0 (take out ‘0′ add /v to view setting)
- Allow Remote Desktop through the firewall:
- netsh advfirewall firewall set rule group=”Remote Desktop” new enable=yes
- Set the IP address, netmask, and default gateway:
- netsh interface ipv4 show interfaces (this shows the interaces and the Idx numbers which is what we’ll use for the name in the next command)
- netsh interface ipv4 set address name=”Idx” source=static address=192.168.1.14 mask=255.255.255.0 gateway=192.168.1.2
- Set the DNS Server address:
- netsh interface ipv4 add dnsserver name=2 address=192.168.1.254 index=1
- Rename the Server:
- netdom renamecomputer WIN-IN8HIXT4938 /newname:SERV2K8HYPERV
- Join the Server to the Domain:
- netdom join SERV2K8HYPERV /domain:domain.local /userd:DOMAIN\administrator /passwordd:* (yes thats a double ‘d’. make sure to reboot first if you changed the server name)
- Install the Hyper-V role:
- ocsetup Microsoft-Hyper-V
- Install the update for Hyper-V (trust me when I say to do this. I had nothing but issues till I installed it):
- Configure the Server License and Activate:
- slmgr -dli (display license info)
- slmgr -ipk “SERIALKEY”
- slmgr -dli (check its applied correctly)
- slmgr -ato (activate)
- Change the Language (If you missed my warning at the start):
- intl.cpl (language settings)
- In the Formats tab change the format to English (United States). Click Apply.
- In the Administrative tab click Change system locale, and set it to English (United States). Click Copy to reserved accounts”, Default and System. Then Apply.
- Reboot for the changes to take affect.
- Allow WMI through the firewall:
- netsh advfirewall firewall set rule group=”Windows Management Instrumentation (WMI)” new enable=yes
- Add the Remote Admin Users to the “Distributed COM Users” Group on the Server. From here on follow on from this awesome post here: http://blogs.technet.com/jhoward/archive/2008/04/01/part-4-domain-joined-environment-hyper-v-remote-management-you-do-not-have-the-requested-permission-to-complete-this-task-contact-the-administrator-of-the-authorization-policy-for-the-computer-computername.aspx
UPDATED:
step 13 can now be cut down due to a new tool developed for seting up remote managment rather then following a lot of manual steps. For details see the blog post and link to the tool:
- http://blogs.technet.com/jhoward/archive/2008/11/14/configure-hyper-v-remote-management-in-seconds.aspx
- http://code.msdn.microsoft.com/HVRemote
Some other tips:
- If your using Data Protection Manager 2007, to backup the system state on the 2008 Server you need to install the WSB role: ocsetup WindowsServerBackup
- You can view installed roles with the oclist command
- To check if your server is compatible with Hyper-V you can use the following tool: http://www.grc.com/securable.htm
- If you’re running System Center Virtual Machine Manager 2008 (SCVMM), and you see the “Needs Attention” status on your Hyper-V hosts you need to install two hotfixes:
- Hyper-V Update for Windows Server 2008 x64 Edition (KB 956589) - http://www.microsoft.com/downloads/details.aspx?FamilyID=FD44B4E3-2DCC-4299-B345-BC09A9A37B60&displaylang=en
- Background Intelligent Transfer Service (BITS) update (KB 956774) - http://www.microsoft.com/downloads/details.aspx?familyid=9EC9DBB9-82AD-4D34-9267-76A0126A8F18&displaylang=en
- You can view installed updates as well as other handy info using the command systeminfo
END UPDATED
The following links containt the updates for Windows Vista to allow MMC management of Hyper-V from a vista client machine:
References:
- http://blogs.technet.com/jhoward/archive/2008/04/01/part-4-domain-joined-environment-hyper-v-remote-management-you-do-not-have-the-requested-permission-to-complete-this-task-contact-the-administrator-of-the-authorization-policy-for-the-computer-computername.aspx
- http://www.petri.co.il/installing-hyper-v-on-windows-server-2008-server-core.htm
- http://www.tipandtrick.net/2008/coreconfigurator-core-configurator-gui-configuration-tool-for-windows-server-2008-server-core-free-download/
- http://blogs.technet.com/tonyso/archive/2008/07/16/hyper-v-on-server-core.aspx
- More 2008 commands - http://technet.microsoft.com/en-us/library/cc753802.aspx
This posting is provided “AS IS” with no warranties, and confers no rights.
Blogged By Jason Neurohr
