-
Troubleshooting Windows Remote (WinRM)
Here are a few commands which can be run to troubleshoot Windows Remote (WinRM) connectivity (These commands may need to be run on an elevated CMD): This shows you which port and IP addresses WinRM is listening to: winrm e winrm/config/listener This checks if WinRM has some problem: winmgmt /salvagerepository This shows you the configuration: winrm get winrm/config I ran these commands on my Hyper-V nodes and VMM server, while troubleshooting connectivity / permission related errors.
-
Querying for SPNs
While troubleshooting connectivity problems in VMM 2012 I had to query AD to check if SPNs have been created for the service account used to run VMM. Here is what I used to query AD: setspn –l Domain_name\VMM_service_account_name Incidentally, this showed me that I have two SPNs for this service account. One was for the current VMM server and the second one was for the old VMM server. I had an old VMM server at one time. Then I killed it and created a new VMM server. I deleted the old SPN using this command: setspn -d SCVMM/VMM_server_name Domain_name\VMM_service_account_name PS: Microsoft PSS told me to do this.
-
PowerShell command to check checkpoints in Hyper-V
Here is a quick PS command to check how many of your VMs have a snapshot: Get-VMCheckpoint |format-List -Property Name,Description It is always a good ideal to keep an eye on snapshots of your VMs.
-
Behavior of CSVs in Hyper-V 2012
I have a few observations about CSVs in a Hyper-V 2012 cluster: 1. Online/Offline status in Disk Management. Take a look at the screenshot below. I was troubled by seeing the CSV offline. I thought there was a problem (not really). Here is how the cluster works: The CSV shows up as an online disk only on the cluster node which is managing is (or is the owner of that CSV). If you change the owner of that CSV to another node, the CSV disk will go offline on this node. However both nodes can still access the CSV via C:\ClusterStorage\vol2 2. Cannot map a drive to view CSV contents:…
-
Hyper-V 2012 cluster installation troubleshooting
While installing a Hyper-V 2012 cluster I ran into some trouble. The cluster got installed successfully but a few things did not work properly. Live migration problems: Live migration does not work…well…sometimes. Sometimes it does work. So it behaves intermittently. I started a thread about it here. CSV not visible on all nodes. When using VMM console, the 2 CSVs I created are not available for placement of new or migrated VMs on all 3 nodes clusters in the cluster. Interestingly the CSV mount point under c:\ClusterStorage\VolumeX is visible on all nodes. Witness disk is visible on all nodes. Here are the steps I took towards solving the problem: