Cry about...
Windows Hyper-V-Server 2012
What is Hyper-V-Server? Hyper-V-Server is a cut down version of Microsoft Windows Server, which allows you to host one or more virtual machines. It provides the same functionality as found in Hyper-V on Windows server (or Windows 8), but without the graphic user interface or any other extras so it can only be configured using the command line. Whilst the command line interface isn't as easy to use as the GUI interface would be, it does have one big advantage - its free!
These are notes I've made while working with Microsoft Hyper-V-Server. Of all the notes I've made the following four are probably the most important:
- sconfig - the server configuration utility
- PowerShell - the real Hyper-V-Server toolbox
- How to install and use Server Manager in Windows 8 to manage hyper-v-server
- How to install and use Server Manager in Windows 10 to manage hyper-v-server
- How to use Hyper-V Manager in Windows 8 to manage virtual machines on hyper-v-server
The rest of my how-to notes:
- How to change user password
- How to connect to a hyper-v-server using remote desktop connection.
- How to backup and restore Hyper-V-Server and any Virtual Machines
- How to enable ping
- How to export a virtual machine using PowerShell
- How to move a virtual machine to another Hyper-V-Server
- How to list virtual machines using powershell
- How to start and stop virtual machines using PowerShell
- How to update device drivers on Hyper-V-Server
One line how-tos:
- Change label on disk:
label c:
- List users:
net user
- Delete an account:
net user username /delete
- Create an account
net user username password /add
or use sconfig to create a new administrator account. - List local groups
net localgroup
- List members of a local group:
net localgroup "group-name"
- List local groups that a user is a member of:
net user username
- Add a user to a local group
net localgroup group-name username /add
- Remove a user from a local group
net localgroup group-name username /delete
- Create a network share (read only)
net share share-name=C:\some-folder
- Delete a network share
net share share-name /delete
- Create a network share, writable for an account
net share share-name=C:\some-folder /grant:account,full
Troubleshooting
- Computer Management: You do not have access rights to Logical Disk Manager on SERVER-NAME
- Disk Management could not start Virtual Disk Service (VDS) on SERVER
- Failed to establish a connection with host ... the credentials supplied to the package were not recognised (0x8009030D)
- Hyper-V did not find virtual machines to import from location ... error code 32784
- Hyper-V did not find virtual machines to import from location ... the folder could not be found
- Logon failure: unknown username or bad password when trying to join hyper-v-server to a domain
- Remote Desktop can't connect to the remote [hyper-v] computer
- Server Manager: Hyper-V tab shows Access denied: Unable to establish communication between Client and Server
- Server Manager: Kerberos target resolution error
- Server Manager: WinRM Default authentication error when trying to add a server - see How to install and use Server Manager in Windows 8 to manage hyper-v-server
- Server Manager: Computer SERVER-NAME cannot be managed. ...
- There was an unexpected error trying to create the virtual hard disk
- Virtual machine fails to start with General access denied error / Account does not have sufficient privilege to open attachment
Useful links
These are off site pages which I have found useful while learning hyper-v-server, some of these are aimed at server-core but in general these apply equally to hyper-v-server:
- Remotely manage Hyper-V Server 2012 Core in a workgroup environment
- Server Core Versus Server with a GUI Install Options in Windows Server 2012
- Administering a Server Core installation
About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.