Setting up 2012 R2 Hyper-V

Soldato
Joined
29 Dec 2014
Posts
2,504
Location
The "North"
Hi everyone,

Recently I've started to meddle with my home servers again (Using them to study for my Microsoft qualifications) and I was struggling with setting up Hyper-V to be able to run the VM's from my Laptop.

I can use Server manager to interface with the server and set up a local domain (Is it worth setting up a full TLD domain for my home?) but when I try to connect via the Hyper-V manager it says I don't have the authority to authorize a connection to the server?

Does anyone have any ideas where I'm messing up? :)
 
I'm a little confused about what you've set up. Do you have a domain with both the Hyper-V server and the laptop as members? If so, is the user account you're using an administrator on the Hyper-V server?
I've tried setting up the server in a local domain, setting up the computer in a work group with no avail. I've also tried the Administrator account and a second account set up as an administrator.
I've found a few times that getting RSAT or another 2012 R2 server to talk to a hyper-v server a bit finicky. Have you looked at this:
https://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6
I'll have a go at this however will it not just say that it still needs authenticating as it is still administering the Hyper-V server:)
 
Strange. I have only ever had problems with authentication when trying to manage a Hyper-V server that's a member of a domain from a workstation that isn't a member - if they're both members of the same domain then it should "just work". At which point are you being told that you don't have authorisation to connect? When you pick "Connect to Server" from within the Hyper-V Manager?
I don't think the PC's are on the same domain as the domain for the server is a local one so when I tried putting the PC on it it didn't work. Would it be worth while setting up a full network domain (Apologies if it's the incorrect terminology as I'm new to this area of things)

Download vmware workstation . Set up a dc and a vhost on it. Use snapshots etc so you can undo something before you scew up the server. Saves a lot of time.
I am guessing you have made your lab linked into your home network.
Can't as it's there for me to learn about what my works clients are using so I can do a bit of self training/practicing :)

run HyperV manager as a different user and connect with the credentials to your 2012 box
Tried but it still didn't work :(
 
Not sure how you set up your lab then ? My view is everything should be separate in it own box from your own network.Screw up just go back to an old snapshot. I had free nas set up as a San with 2 hyper v hosts, dc and a client all running in vm workstation.
I have a backup server, I'm planning on getting a storage server and right now I'm trying to get this server with hyper-v setup using any means as to be honest I agree with you that separate boxes are better as if one fails it doesn't break everything (Most of the time :))

If the laptop isn't on the same domain as the Hyper-V server, then you'll need to run the Hyper-V Manager as a user on that domain as jfish suggested. That means you'll have to include the domain name with the username, for example if your Hyper-V server is in the "contoso" domain then you'd log on as "contoso\administrator".
I have a server at home which is configured as a domain controller with the Hyper-V role enabled, and my PC is a member of that domain. It makes it much easier to configure access this way, as I simply log onto the PC as a domain admin, which automatically grants me the permission to manage Hyper-V.
I tried using a domain user as the login for the server but still to no avail, it's really odd as from what I've read it should have just worked :(

This doesn't make any sense. Have you actually installed a Domain Controller? Do you have an Active Directory domain set up? If not, you have workgroups, not domains, and I'm not sure the Hyper-V client will even work in that scenario.
What version of Hyper-V have you installed - the standalone Hyper-V server, or a 2012 server with the Hyper-V role installed?
It's a weird situation as I sort of have an active directory if that makes sense which uses "Element.local" however it won't let others connect as it is a local domain (Not .com etc). That's why I was wondering if it would be worth while setting up a full domain server and getting a tld to use for my home lab network to get the system running smoothly. I apologies if I'm not very clear in explaining as it's all new territory for me :)
 
If your laptop can't locate a login server for the "element.local" domain then I guess it won't be able to authenticate your Hyper-V Manager session. What happens when you try to join the laptop to the "element.local" domain? If it says it can't find it, you might need to change your DNS settings on the laptop so that it can locate the domain controller...
It just won't join so I assume it means the domain is unavailable to the laptop, if so how would I go about making the domain available so the laptop can join it?

There's no reason why a .local domain wouldn't work, I use them all the time. The main reason not to use .local domains is because Mac clients can't connect to them if you use that name (because they use .local instead of localhost IIRC).
Also you didn't answer my question - have you created a DC already for the "element.local"? Are you using Hyper-V or Win2012 with the Hyper-V role installed.
When you use terms like "full domain server" or say "the domain for the server is a local one" it becomes very confusing because that simply doesn't make sense.
I apologies for any vague/unanswered questions but for my domain I am using the TS140 which is also running Hyper-V within Server 2012 R2. I was considering creating a separate domain server but only if I have to as I don't really have the cash for more servers (Not yet anyway :))
 
What error message do you get when you try to join the domain? Are you connecting everything together using a cheap home router? If so It's probably a DNS error where your client doesn't know how to resolve the domain, because the domain name won't have been registered in your router's DNS. What happens when you try to ping element.local? If the name can't be resolved, add the DNS server for that domain to your IP config.
Why can't you install a DC on a VM within Hyper-v? You might have to get creative with your DNS but there's no reason why you can't do it this way. I do.
Yeah it's using a relatively cheap router (Some TP-Link thing). I'm away from home at the moment however I'll try pinging the element.local domain and seeing if that works. Also there's no reason why I shouldn't be able to run the DC within a VM other than I just haven't thought about it :)

As for being creative with the DNS, what would this entail as would it be easier just to get something like an Edgerouter X/Lite to get rid of the current router as an issue? :)
 
It's not a problem with the equipment, it's a config issue. You should be able to get it working with your current router, you'll probably just need to add the IP address of the DNS server for the element.local to your client. No need to throw money away.
The problem is that your TP-Link router doesn't know how to forward DNS requests to the element.local DNS servers, so when your client (which is presumably getting IP settings from the router via DHCP?) looks for element.local, the router doesn't know what this host is, hence you can't connect.
You'll have the same problem if you put a new AD/DNS server on your Hyper-V server. You'll need to manually set up your clients with a valid DNS server for that domain.
Honestly, what you really need to do is take a step back away from your keyboard, and then think and plan what you are going to do. It doesn't sound like you have the best grasp of networking or Active Directory based on what you've posted here, so your next step should be to write down what you're looking to achieve, then work out how to do it. Put together a little network diagram, have a bit of a read of how DNS works, plan out how you want AD to look, think about which other VM servers you'll want to work on. Otherwise, you'll end up with something that doesn't work properly and spend loads of time figuring out issues that are peculiar to your setup, and not the things you actually want to learn.
The client laptop has a static IP as does the server so it shouldn't be using the DHCP server on the router. To be honest I haven't covered active directory yet as I the only course I've done so far is an MTA in Networking and Infrastructure so it looks like I may need to do some more research and planning. For the time being all I'm looking for from this server is for it to run VMs and for me to be able to use them from my client laptop e.g. VMs for media server, game servers that can be configured via the laptop if that makes sense (Sorry if I'm being vague) :)
 
Okay but the same thing applies - your laptop does not know how to resolve element.local.
Couple of ways you can fix this:
1. Add element.local and the IP address for the element.local DC to your hosts file
2. Change the config of your laptop's NIC to add the DNS server for the element.local domain
#2 would be preferable.
Right then, I shall try #2. I may need to do some more research but I'll let you know how it goes. Thank you for the help so far by the way :)
 
Okay, today I got home and after a few hours of meddling I'm reinstalling Windows 2012 R2. I think the DNS is out of my competence for Server 2012 R2 so I was wondering if anyone has any ideas what the easiest I could set up a server so it runs VMs which I can manage using Hyper-V from a separate PC? :)
 
I assume this is small scale stuff, so while not best practise i think this is what you want.
(AI ssume you only have 1 physical server and 1 laptop.)

1.) Setup the physical server as a domain controller, install the hyper-v role on that server.
2.) Create VMs and use either an external (if you want internet access from them ) or internal network (they talk to each other and physical servers, they wont have internet access)...(do not use private or they wont talk to the physical domain controller or laptop).
3.) Join the laptop to the domain and use the remote server admin tools for admin the VMs.
Yep that's pretty much what I'm looking for, right now there are two servers and two laptops with a third server being added later this year/next so it's not a big setup. Ill try that when I get home tonight then :)
 
Okay so the servers set up again however now I can't get the laptop set up on the domain despite all the necessary roles being installed on the server. Just wondering how would I go about getting this setup in the most simple configuration possible? :)
 
Back
Top Bottom