Setting up Windows Hyper-V Server 2012 R2 in a workgroup

Setting up Windows Hyper-V Server 2012 R2 in a workgroup

All of Microsoft’s server stuff is designed to work within an already existing Active Directory environment. Most home users don’t have an Active Directory server, unless you are running SAMBA 4 or higher (Linux product, advanced users only). So additional configuration is needed to get server products running and talking to eachother in a Workgroup environment.

Three main steps here

A) Setup Hyper-V Server 2012 R2 to accept connections
B) Setup Remote Server Management on desktop machine
C) Setup Hyper-V Management on desktop machine

  1. Add Local Administrator whose name and password match your user account on your desktop
  2. Configure Domain/Workgroup to match that of your home Workgroup (default is probably fine)
  3. Change computer name to something recognizable (like “hypervserv”)
  4. Configure/enable remote management
  5. Enable all clients Remote Desktop
  6. Disable firewall* using this command line (works in cmd.exe or powershell) netsh advfirewall set allprofiles state off
  7. Download and install Windows 8 Remote Server Management (not yet avalible for Windows 8.1 but it should be by October 18th)
  8. Edit your desktop hosts file AS ADMINISTRATOR in notepad. Add your hyperv server to %windir%\System32\drivers\etc\hosts file via notepad. It should look something like
192.168.1.110 hypervserv

For whatever reason microsoft server products will NOT connect via IP, you MUST use server names. Make sure you save it as “all files” “hosts” file and not as a “hosts.txt” file.

9. Open powershell AS ADMINISTRATOR and enter this command. If you don’t you will get an error like “WinRM Negotiate authentication error”

Set-Item wsman:\localhost\Client\TrustedHosts hypervserv -Concatenate -Force

10. To setup Hyper-V manager with workgroups, Run

%windir%\System32\dcomcnfg.exe

as administrator
-Right click My computer under Component Services\Computers
-Select COM Security, Edit Limits under Access Permissions
-Check “allow” for “Remote Access” on both ANONYMOUS LOGON and ALL APPLICATION PACKAGES
11. Restart Hyper-V manager

And you should be good now. If anything doesn’t work, make sure you are running powershell/notepad/etc as administrator and not as local user.

*Yes, really! If this is a production environment, don’t do this, but this is for a home user on a workgroup who doesn’t have Active Directory setup. Once everything is working you can turn it back on

This entry was posted in computing, windows and tagged , , , , , , . Bookmark the permalink.

6 Responses to Setting up Windows Hyper-V Server 2012 R2 in a workgroup

  1. admin says:

    Was unable to login to my Hyper-V server the other day. I was able to login using my administrator account, but my local user logon (which was mirrored on Hyper-V) could not get in, I was locked out of Hyper-V Manager and was getting RPC errors. Turns out my local user password had expired(!). A quick command line fixed the issue:

    “Cannot connect to the RPC service on computer…” because my credentials on the server had expired. Change the account security policy on the server to prevent password from expiring. The command is:

    NET accounts /MAXPWAGE:UNLIMITED

  2. Kev says:

    Hi, thanks for the great info, howeverm i have a few questions.
    I log into my win8.1 laptop with my MS account which is basically my email address. How can you mirror THAT account on the hyper-v server? It won’t allow the @ symbol and suchlike.

    Also, as this is the only account on my laptop how can i amend my hosts file as admin? Or do i specifically have to enable the built-in admin account purely for this purpose?

    Thanks

  3. Benny Badyrer says:

    @Kev:
    Goto “ComputerManager/Local Users and Groups” here you can see the “real” name of the MS Online User. It is usally NAME_000.
    Works with Win 8.1 Pro.

  4. aurang zib says:

    its not working

  5. admin says:

    ..Can you be more specific? what error message? Did you follow all of the steps exactly? I just setup a new Hyper-V server this way today and re-used my instructions no problem.

  6. Lacy says:

    I see a lot of interesting articles on your blog. You have to spend a lot
    of time writing, i know how to save you a lot of work, there is a
    tool that creates unique, SEO friendly posts in couple of minutes,
    just search in google – laranita’s free content source

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>