2017年10月21日星期六

Remote management of Hyper-V hosts

Remote management using Hyper-V Manager in domain environment
Open Hyper-V Manager, Then, In the left pane, right-click Hyper-V Manager, and select Connect To Server.
























Select Another Computer,and type the Name or IP of the computer you want to manage.












You can also click Browse to open a standard Select Computer search box,in wich you can search for a computer name.






















Click OK,The computer you want to manage will be appears in the left pane. In the left pane, select the computer you want to manage. The virtual machines on that computer appear in the center pane.



































Remote management using Hyper-V Manager in WorkGroup environment
Connecting to a remote Hyper-V server when both computers are joined to the same AD DS domain is easy. The computers use Kerberos for authentication, which is brokered by a domain controller. When the computers are not in the same domain, or not in any domain, the authentication process is more complicated, because the computers cannot use Kerberos. Therefore, you must configure them to use the Credential Security Support Provider (CredSSP) authentication protocol instead.

On the remote (managed) server:
Creates the firewall rules needed to allow the incoming management traffic using enable-psremoting cmdlet
Enables the use of CredSSP for authentication using enable-wsmancredssp cmdlet













On the local (managing) computer:
Add the fully-qualified domain name of the Hyper-V server to be managed to the local system's WSMan trusted hosts list.
set-item wsman:\localhost\client\trustedhosts -value "hypervserver.domain.com"
enables CredSSP on the client
enable-wsmancredssp -role client -delegatecomputer "hypervserver.domain.com"
Note:hypervserver.domain.com" is Hyper-v Server's FQDN

















On the Select Computer page, Select you want connetc to Hyper-v Server, and check Connect as another user: <none>. Then Select Set User












Type the user name and password with administrative privileges.
















Select OK,Connect to Hyper-v.














Remote management using PowerShell
To connect to the remote Hyper-V server from an administrative PowerShell session, you must first create a session, using the New-PSSession cmdlet











To enter the session, you use the Enter-PSSession cmdlet
Note:1 is session ID












If you are not currently logged on with an account that has administrative privileges on the remote server, you can enter a session using another account with the following command:
enter-pssession # -credential DomainName\UserName


















Now you can use the relevant PowerShell command to manage Hyper-v. Such as displays the virtual machine running on the Hyper-v Server using Get-VM















Exit the session using Exit cmdlet


没有评论:

发表评论