9

I am setting up a cluster of Hyper-V Server 2012 machines. I've got remote access to the machines via windows 8 and the various remote management consoles.

I can't seem to figure out how to run 'windows updates' on the hyper-v server. There are a couple of hotfixes to hyper-v that I need to get installed. It DOES NOT run on top of windows server 2012 as far as I am aware. (edit: apparently it does run on a slightly modified Windows Server 2012 core)

All the instructions I've been able to find are specificity how to do updates on windows server 2012 core. However I am using the version of Hyper-V that is basically a headless copy that is meant to be run entirely from powershell. Due to the poor naming choices by Microsoft, it is almost impossible to google-search for this particular type of hyper-v server.

I don't want to leave my machine open to vulnerabilities... Please help!

Ape-inago
  • 271
  • 1
  • 3
  • 8

3 Answers3

10

Run SCONFIG. Just type sconfig at the command prompt. Then choose option 6 or 7 (the exact option escapes me at the moment) for Windows Updates. You can change your Windows Update settings to install updates automatically, or you can download and install them manually, just like with the GUI.

sconfig comes with Server Core out of the box. In fact I think it runs at startup the first time you log on to the machine. Not sure how you missed it... maybe it doesn't run at startup on Hyper-V Server 2012.

Ryan Ries
  • 55,011
  • 9
  • 138
  • 197
  • Does the free edition actually run on top of Core? It seemed like everything was missing, and I was under the impression that you needed license to run core. I'll take another look tonight. For reference: http://blogs.technet.com/b/keithmayer/archive/2013/04/05/getting-started-with-hyper-v-server-2012-hyperv-virtualization-itpro.aspx – Ape-inago Apr 22 '13 at 17:35
  • 3
    Yes, Windows Hyper-V Server 2012 *is* Server Core. The internals of the OS are absolutely identical. It just has some licensing limitations and limitations on how much RAM it can have, you can't install other roles on it, etc. – Ryan Ries Apr 22 '13 at 17:40
  • Yes. but you can install software and drivers - software for example because some drivers need admin kits etc. It is windows core. – TomTom Apr 22 '13 at 17:42
  • Documentation on core says that it can do DHCP, File, DNS, Media Services, and Active Directory. ( msdn.microsoft.com/en-us/library/windows/desktop/… ) Is this still the case for Hyper-V server 2012? – Ape-inago Apr 22 '13 at 17:42
  • 1
    No you cannot install other roles on Hyper-V Server 2012. The OS is the same technology as Server Core, but it's restricted to being just a Hyper-V host. Read this whitepaper: http://download.microsoft.com/download/5/7/8/578E035F-A1A8-4774-B404-317A7ABCF751/Competitive-Advantages-of-Hyper-V-Server-2012-over-VMware-vSphere-Hypervisor.pdf – Ryan Ries Apr 22 '13 at 17:53
  • For sake of completeness. Would there be any administrative differences AFTER getting a windows server 2012 core to run only hyper-v vs just installing the hyper-v server 2012? – Ape-inago Apr 22 '13 at 17:59
  • Nope. It looks and smells just like Server Core. Also keep in mind that although Hyper-V Server itself is free, it does not include any guest OS licenses, so account for that in your budget. – Ryan Ries Apr 22 '13 at 18:10
  • 1
    Server Core, as compared to non-Core, reduces the surface area of the OS, which potentially reduces the effectiveness of and susceptibility to security vulnerabilities. Hyper-V Server takes that approach a step further and strips out features not needed to run Hyper-V. If you're looking to harden your Hyper-V hosts, then Hyper-V Server is the way to go. – longneck Apr 22 '13 at 19:29
7

It is a Server 2012 core install. Just use the command line tools.

http://www.moundalexis.com/tm/2010/01/07/windows-update-wuauclt-command-line-switches/

wuauclt basically allows you to do updates.

TomTom
  • 50,857
  • 7
  • 52
  • 134
  • I was under the impression that you needed license to run core. Do you know if there is any difference between this version of core and the one you can make from a server 2012 install? Documentation on core says that it can do DHCP, File, DNS, Media Services, and Active Directory. ( http://msdn.microsoft.com/en-us/library/windows/desktop/hh846323(v=vs.85).aspx ) Is this still the case for Hyper-V server 2012 ? – Ape-inago Apr 22 '13 at 17:41
  • Yes, there is. But not in the "core" but in the additional stuff you can install, because a lot of the things are just not included in the hyper-v setup. But that does not change the core being a core. – TomTom May 27 '13 at 17:29
4

You can try using the Windows Update PowerShell Module to manage Windows updates on your server.

But what you really need to do is to set up the servers to pull updates from WSUS.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940