Remote manage Hyper-v server

More
9 months 3 weeks ago #135 by JudgeFredd
Dette skal køres via "elevated" CMD, for at give brugeren administrator rettigheder på hyper-v serveren:

cmdkey /add:<yourHyper-VServerName> /user:<yourAdminUsername> /pass:

Hele vejledningen vedr. fjern administration kan ses her:
pc-addicts.com/remotely-manage-hyper-v-server-2012-core/

Klip fra siden følger her:
Remotely Manage Hyper-V Server 2012 Core

This article is part two of two in the series:
Part 1:Hyper-V Server 2012 Core Installation
Part 2:Remotely Manage Hyper-V Server 2012 Core in a Workgroup
On the Hyper-V Server 2012 Core system
First make sure you can ping the server by it’s computer name. From what I read in other forums, you need to be able to resolve the hostname in order to remotely connect to it in Hyper-V Manager from a client.
Remote into the Hyper-V server from your client computer by using Remote Desktop.
Next we need to allow us access through the Hyper-V’s firewall.
I had some troubles trying to only enable the Remote Management display name, so I just went with all by using “*”. This is not a good idea to do in a production environment (and probably not needed due to having a domain setup), but since we are setting this up for my test lab, I’m OK with it.Make sure you are in the Powershell prompt (should see “PS C:\…” at the prompt)If you are not at the Powershell prompt, simply type: powershell and press enter

Enable-NetFirewallRule -DisplayGroup “*”
While we are remoted into the server, let’s manually create a VM. I still have problems creating VMs remotely, so for now this will have to do.

New-VM -Name Win8 -MemoryStartupBytes 1GB -NewVHDPath V:\Win8.vhdx -NewVHDSizeBytes 20GB
Of course you will want to fill in whatever Name you want, how much RAM, the path, and how large of a hard drive.
On the client computer
We need to store the server’s credentials locally on this client computer.Open an elevated command prompt (runas Administrator)

cmdkey /add:<yourHyper-VServerName> /user:<yourAdminUsername> /pass:

Type in the administrator password on your Hyper-V server and press Enter.
Now let’s add the Hyper-V Management Tools feature on the client computer.Open up Programs and FeaturesSelect Turn Windows features on or offExpand Hyper-VSelect Hyper-V Management Tools and press OK

Now we need to allow remote access to ANONYMOUS LOGONOn the client computer, search for dcomcnfg and Run is as Administrator
In Component Services, expand Component Services | ComputersRight-click on My Computer and select PropertiesOn the COM Security tab, select Edit Limits…
Select ANONYMOUS LOGON and place a check in the Allow column of Remote Access boxSelect OK twice
Now launch Hyper-V Manager on the client computerIn Hyper-V Manager, select Connect to Server in the Actions paneType in the name of your server and press OK
Since I want to install Windows 8, we need to attach the ISO I downloaded to the CD-Rom of this VM and then boot to the CD-Rom.Select Settings in the Actions paneSelect DVD Drive then Image file:Browse to your downloaded ISO and press OK

Now let’s start up the virtual machine.Select Start in the Actions paneSelect Connect in the Actions pane
You should see a window similar to the one below:
If all went well, you should be able to complete the Windows 8 installation in your new virtual machine.
If you have any troubles, please let me know by leaving a comment below.What’s Next?
Since you now have a fully functioning virtual server and a Windows 8 client running, go ahead and setup a couple of servers. If you are interested in how to setup a Domain Controller, check outthis tutorial.


Share this:



Filed Under:Powershell,Server 2012,Virtualization,Windows 8Tagged With:hyper-v server 2012 core,hypervisor,remote,remotely,Server 2012,virtual machine,Virtualization,Windows 8

About Chris Davis

Computer enthusiast for way too many years. You can follow Chris onGoogle+ if you'd like.
Comments

Tadas Burovas (@Triumfas)says:
January 7, 2013 at 4:00 pm

Thanks for really helpful article! I had no problem creating virtual machine using Hyper-V manager.
For firewall part – for Hyper-V remote management, you need only:
Enable-NetFirewallRule -DisplayGroup “Windows Remote Management”
Two things I couldn’t manage to work – connecting using IP address (only host name works) and Firewall mmc for Hyper-V.
Reply

Chris-Dsays:
January 7, 2013 at 5:11 pm

Thanks for the info! I was missing the “Windows” part of the Remote Management DisplayGroup (and I think I was using DisplayName – doh!!)
Reply

Ottosays:
February 8, 2013 at 3:53 am

hi, thanks for your video and instructions.
i have the same setup (win8 client and hyper-v 2012 standalone (in remote datacentre)
Unfortunately im not able to connect with hyper-v manager.
i can access with mmc add in but hyper v manager dont let me connect
see videohttp://screencast.com/t/SWEEoi1qo
any ideas?
Reply

Chris-Dsays:
February 8, 2013 at 4:11 am

Thank you for the screencast. I haven’t tried this outside my network, but let’s try something. In my initial tests, I accidentally used -DisplayName instead of -DisplayGroup for the firewall cmdlet. If you are ok with trying that for testing, maybe give it a shot? Other than that, right now I don’t have any quick ideas. I will have to play with it a little here on my side and try and figure it out.
Reply

Ottosays:
February 8, 2013 at 4:36 am

thanks
unfortunately no luck….
PS C:\Users\root> Enable-NetFirewallRule -DisplayGroup “*”
PS C:\Users\root> Enable-NetFirewallRule -DisplayName “*”
PS C:\Users\root>
Reply

Chris-Dsays:
February 8, 2013 at 4:38 am

Bummer… I will read that error again on your screencast and see if I can assist this weekend.
Reply

Ottosays:
February 8, 2013 at 4:02 am

ANONYMOUS LOGON remote access is allowed….
Reply

Colton Sharpsays:
February 12, 2013 at 9:11 pm

Ok I’ve got a question I created my Hyper-V core before seeing your video on how to do that and I wanted to change a few things so I went ahead and reinstalled it but I had already followed what you had done here so that I could logon with server manager anyways so with my new setup I had new server name and password so I went into the com security and then edit limits where you enable remote access and I deleted that anonymous login so that I could create the new one apparently bad idea now when I use the cmdkey to add the logon it never shows up inside the com security edit limits I’ve tried restarting ran a cmdkey delete /servername command and deleted the logon it says created successfully and everything just doesn’t show up in the com security edit limits area is there a way to enable remote access while creating that key or any solutions for me?
Thank you for all your videos though they are Fantastic!
Reply

Colton Sharpsays:
February 12, 2013 at 10:13 pm

I ended up just doing system restore to where I installed the Hyper-V console and that took me back to where I can get it all going again thanks for your videos though they are great!!
Reply

Chris-Dsays:
February 13, 2013 at 4:45 am

Sweet! Glad you got it working and thanks for the comments!
Reply

James Stephansays:
February 19, 2013 at 9:35 am

I have come up with a ton of creative and simple ways to manage Free Core Server 2012 or Hyper-v 3.0. I have a GUI startmenu, and tons of little GUI apps that prove very useful in the GUI-less core. The best is not free but well worth the cost – VT Utilities. Check out my blog at stephanco.blogspot.com. leave a comment to email me to request a new feature or app.
Reply

prasadjadhavsays:
February 21, 2013 at 10:33 pm

Thanks for sharing good for without domain environment
Reply

Chris-Dsays:
February 22, 2013 at 3:53 am

You are welcome! More to come!
Reply

Arifinsays:
April 16, 2013 at 7:27 am

Cool post
Btw, how can I connect my Hyper-V machine to my network environment ?
I found my network setting was not connected
Reply

Fabricesays:
May 4, 2013 at 9:06 pm

Hi all, I found this tutorial very helpful, but I only gave the DCOM remote permission to ‘authenticated users’ instead of Anonymous, just in case….
Thanks again.
Reply

Chris Davissays:
May 6, 2013 at 4:29 am

Ah thats good! I will have to remember that one… thanks!
Reply

Hokensays:
May 13, 2013 at 4:37 am

To manage remotly and locally this is a simple tool:
www.probus-it.se/hypervtools

Please Log in to join the conversation.

Time to create page: 0.905 seconds