Link to home
Start Free TrialLog in
Avatar of SuperRhino
SuperRhinoFlag for United States of America

asked on

What commands need to be run in Server 2008 R2 core for Hyper-V manager and SCVMM to work?

Hey guys,

We are just getting into setting up our production virtualized environment and just have a few questions, here is a quick layout of what we have:  We will have 2 Poweredge R610's running as our Hosts (server 2008 r2 core) with a Equallogic PS6000e as our SAN.  We also have another poweredge server as our management server and will be running SCVMM.  

When setting up Server 2008 r2 core, I have read that there are certain commands that need to be run to open up the firewall for things such as, server manager, mmc etc.  Also, when I open up sconfig there are 3 options to allow/enable mmc, windows powershell, server manager.  What all commands need to be run to get this production setup going? It looks like in Server 2008 core you had to run some other netsh commands for firewall settings but some you dont have to in R2.  Can someone explain what needs to be run and what the actual commands are doing?

Thanks for the help

SuperRhino

Avatar of Syed Mutahir Ali
Syed Mutahir Ali
Flag of United Kingdom of Great Britain and Northern Ireland image

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

http://blogs.technet.com/jhoward/archive/2008/03/30/part-3-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

Install  Powershell on your server core  or hyper-v server :

First you  would have to install .NET  and then powershell (Follow the technet  forum link)

http://jdhitsolutions.com/blog/2010/03/powershell-quick-start-on-server-core-r2/

http://dmitrysotnikov.wordpress.com/2008/05/15/powershell-on-server-core/

http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2management/thread/83b7d33b-ee27-45ae-8e68-ab5e63cd7274

http://blogs.msdn.com/virtual_pc_guy/archive/2009/02/10/enabling-powershell-on-hyper-v-server-2008-r2.aspx

Download  the Powershell Management  Library for Hyper-V :
http://pshyperv.codeplex.com/Wikipage

Then  follow this article to add the  Powershell Mgmt Library and start using  Powershell for your Hyper-V mgmt  tasks :
http://www.virtualizationadmin.com/articles-tutorials/microsoft-hyper-v-articles/storage-management/administer-microsoft-hyper-v-command-line-cli.html

Following  are the commands from  the Powershell Library download at codeplex:

Finding   a VM
Get-VM, Choose-VM  , Get-VMHost

Connecting  to a VM
New-VMConnectSession

Discovering   and  manipulating Machine states
Get-VMState , Set-VMState ,    Convert-VmState,  
Ping-VM , Test-VMHeartBeat, Shutdown-VM ,    Start-VM,  Stop-VM, Suspend-VM
Get-VMKVP, Add-KVP, Remove-KVP,    Get-VMJPEG

Backing up, exporting and snapshotting VMs
Export-VM    , Import-VM, Get-VMSnapshot, Choose-VMSnapshot , Apply-VMSnapshot ,    New-VMSnapshot ,Remove-VMSnapshot, Rename-VMSnapShot,   Update-VMSnapshot,  Get-VMSnapshotTree, Get-VmBackupScript

Adding   and removing  VMs, configuring motherboard settings.
New-VM ,   Remove-VM  ,  Set-VM , Get-VMCPUCount, Set-VMCPUCount, Get-VMMemory,   Set-VMMemory,  Set-VMSerialPort

Manipulating Disk  controllers,  drives and  disk images
Get-VMDiskController
Add-VMSCSIController   ,  Remove-VMSCSIcontroller
Get-VMDriveByController ,  Add-VMDRIVE ,   Remove-VMdrive
Get-VMDiskByDrive, Add-VMDISK ,  Set-VMDisk,  Get-VMDisk
Get-VMFloppyDisk  , Add-VMFloppyDisk
Add-VMNewHardDisk

Manipluating   Network  Interface Cards
Get-VMNic , List-VMNic , Choose-VMNIC,   Add-VMNIC,   Remove-VMNIC , Set-VMNICAddress , Set-VMNICConnection ,   Get-VMNicport ,  
Get-VMnicSwitch, Choose-VMSwitch, New-VMSwitchPort,    Get-VMByMACaddress, Choose-VMExternalEthernet,
New-VMExternalSwitch,    New-VMInternalSwitch,New-VmPrivateSwitch

Working  with VHD   files
Get-VHDDefaultPath, Get-VHDInfo, New-VHD,  Compact-VHD,   Test-VHD,Convert-VHD,Merge-VHD,Mount-VHD,  Unmount-VHD

HV Remote is a very good utility for setting up and managing, do not forget the powershell library for Hyper-V too.

Avatar of SuperRhino

ASKER

HV Remote looks like a great tool but is it really necessary still in R2?  I thought I had read that there are really only a couple commands to open up certain firewall settings to get Hyper-V and SCVMM to work.  Also doesn't using SCVMM take the need away to use powershell?  
ASKER CERTIFIED SOLUTION
Avatar of Syed Mutahir Ali
Syed Mutahir Ali
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Are the commands in Hyper-V Server the same as the commands in Server 2008 r2 core?  Basically this is the first time we are setting up Server core.  We will be running Server 2008 r2 core enterprise on the Host Machines and then running another Server 2008 r2 enterprise full on a management server.  On the management machine, we will be running SCVMM.  I just need the basic commands to get the Core servers ready to be managed from the SCVMM server.  From what I am readying online it looks like there is a few firewall commands to be done.  

Msmanji, this article is all about MMC firewall commands but it doesnt talk about anything else.  I would like to get some answers from someone that has setup SCVMM with hosts in a production environment.  No need to link links on something that you just googled as I have been googleing for days on getting some clear answers.  

Thanks for the responses though guys.
"Someone that has setup SCVMM with hosts in a production environment"
Will it make you feel any better to know that I fit that description.

I would like to clear something about giving you links to information. Googling would have been good. But this came from my favorites. The reason for linking is giving credit to the original person who posted it. It was useful for me and though it might be useful to you. Clearly it wasn't, for which, I humbly sorry.

Regards.
Shahid
Msmamji,

I apologize so much, I wasn't trying to be mean.  I feel terrible, I had open a different article from googleing myself and thought it was the one you had linked.  I was completely mistaken!  I was going back through the answers/links that you had provided and when I did I realized that the link actually does have some good info.  Please do accept my apology.  Thank you so much for the link.  One of those days so far.
don't feel bad. No need for apologies. genuine misunderstanding. :)

Will try to compile something useful for you on the weekend.

Regards,
Shahid
Are the commands in Hyper-V Server the same as the commands in Server  2008 r2 core?  Basically this is the first time we are setting up Server  core.  We will be running Server 2008 r2 core enterprise on the Host  Machines and then running another Server 2008 r2 enterprise full on a  management server.  On the management machine, we will be running SCVMM.   I just need the basic commands to get the Core servers ready to be  managed from the SCVMM server

Yes the basic commands to setup a computer name, open firewall, rdp are the same or enhanced with "Hv remote", "core configurator".

Once you have set that up, you would have to use SCVMM 2008R2 to Manage Hyper-V Server 2008R2 or Windows 2008R2 Core.

http://technet.microsoft.com/en-us/library/cc764213.aspx

Another article with the commands required to open firewall on server 2008R2 core :
http://eniackb.blogspot.com/2009/07/windows-server-2008-r2-core-sconfig.html

Above are the commands required to open up your R2Core box to be managed by SCVMM.

Now, what is the information you need about SCVMM R2 ? is there anything in specific, as above is what you would need atleast to get your R2core or HyperServer R2 core up and running.

You can then Install VMM and connect to the hosts to manage them,
Have a look at this article
http://blogs.technet.com/askds/archive/2008/06/05/how-to-enable-remote-administration-of-server-core-via-mmc-using-netsh.aspx

The following article will enable you to manage the server core machine firewall remotely.
http://www.petri.co.il/remotely-managing-windows-2008-server-core-firewall.htm

As far as the VMM requirements are concerned, you only need to install the VMM agent on the hyper-V core machine.
Two ways to do that you either install using the VMM server which will take care of the port requirements (ports are mentioned in the above post by mutahir),
Or
you install the VMM agent locally by using the setup provided in the media, in which case you are asked to enter ports on which the VMM Server will communicate with the hyper-V host. You need to match these with ports with the ports used during the VMM Server setup. normally these are port 80(HTTP, WinRM) and 443 (BITS).

After this you need to make sure that BITS and Windows Remote Management (WS-Management) are running as services on the Core machine. Use the article provided earlier to setup management of services remotely.

Regards,
Shahid