zoukankan      html  css  js  c++  java
  • Windows Server Core Remote Manage Hyper-V

    原帖:https://serverfault.com/questions/852144/how-do-i-remotely-manage-hyper-v-2016-standalone-via-windows-10

    Found my specific issue :) I was using an invalid hostname, and the DNS wasn't resolving properly.

    • WRONG: server-1.local
    • RIGHT: server-1-local

    But on a different note, I also found that the Microsoft doc (Remotely manage Hyper-V hosts with Hyper-V Manager) didn't document all the instructions necessary for me to make things work. It was mostly correct, but was missing one step. So I've attached my manual setup instructions.

    See below for my full setup instructions for remotely managing Hyper-V 2016 via Windows 10 Professional. My setup involved two separate physical machines - I install both systems from scratch.

    On the Hyper-V server

    1. Install Hyper-V Server 2016 (via GUI)
    2. Set password Note: change following in the terminal gui running sconfig
    3. Set computer name (e.g. server-1); note: do NOT use periods
    4. Configure remote management (disabled => enabled)
    5. Remote Desktop (disabled => enabled)
    6. In the Powershell window, run as admin:

    Powershell commands:

    Enable-PSRemoting
    Enable-WSManCredSSP -Role server
    

    On the desktop/laptop you're going to manage Hyper-V remotely

    1. Install Windows 10 Professional/your drivers/your apps (GUI)
    2. Change your network adapter setting
      • If on older patches of Windows 10
        • Click Start > Search "Homegroup" > Launch "Homegroup"
        • Click on the link to change network type (public => private)
      • If on newer patches of Windows 10
        • Try this: go to "Start Menu > (type) 'Ethernet' > (click) Ethernet adapter > (click) Private"
    3. Add a DNS entry in your hostfile (run notepad as Administrator)
      • Edit "C:WindowsSystem32driversetchosts"
      • Add an entry like "192.168.100.2 server-1"
    4. In the Powershell window, run as admin:

    Powershell commands:

    Enable-PSRemoting
    Set-Item WSMan:localhostClientTrustedHosts -Value server-1
    Enable-WSManCredSSP -Role client -DelegateComputer server-1
    Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
    cmdkey /add:server-1 /user:Administrator /pass
    

    Note

    The official Microsoft documentation was missing the cmdkey instruction, which registers the login info necessary to get into the Hyper-V server. I found it in a separate doc.

  • 相关阅读:
    3月工作问题总结
    【读书笔记】linux编程艺术
    项目管理工具 Trac入门
    [node.js]开放平台接口调用测试
    mysql 高并发更新计数问题
    memcache 问题 socket or its streams already null in trueClose call
    hadoop学习笔记
    node.js学习与应用
    mc参数备忘&javajson备忘
    WCF技术剖析_学习笔记之三
  • 原文地址:https://www.cnblogs.com/easyc/p/Windows_Server_Core_2016_Remote_Manage_HyperV.html
Copyright © 2011-2022 走看看