Host management credentials greyed out VMM

Hello,

I am trying to add a file share storage to our cluster in VMM. But when doing that it gives an error saying "No Run As account is associated with the host. You have not specified a Run As account for your host."

Some googling on that issue points me to add "Host Access" on each specific host, so far so good.

But in order to do that I go to properties on a host and select "Host Access" but the "Run As account"-field is greyed out. Why is that? I cant find a single similar case when googling which leaves me out of ideas.

So anyone with an idea why this field is greyed out?

We are running a 4 node Hyper-V cluster and have just set up VMM, the VMM is running on the cluster - I hope this won't cause any issues.

March 7th, 2013 10:05am

Once you have a cluster in VMM, you can't change this setting.

The only solution is to remove the cluster (and this will eventually break the visability of NIC teaming - if you are using this, in VMM) and add the cluster again, specifying a correct run as account.

-kn

Free Windows Admin Tool Kit Click here and download it now
March 11th, 2013 4:47pm

Hi,

Did you try the solution proposed by Kristian ?

Thanks for the answer ... 

March 12th, 2013 11:16am

I had the same problem, I had to delete the cluster, assign the account, reboot hosts, then rebuild the cluster.

Resolved the issue for me.

Free Windows Admin Tool Kit Click here and download it now
March 13th, 2013 6:20pm

Hi Kristian,

Yeah~Resolved the issue, this solution is worked for me.

Thank you very much!

March 20th, 2013 6:47am

Hey,

can this be done during production?

Are the running VMs affected?

Regards

Free Windows Admin Tool Kit Click here and download it now
May 17th, 2013 1:00pm

Kristian: I admire your knowledge. But I think you are wrong this time.
You can update the credentials in a running cluster without removing it from VMM.
 Why its grayed out I leave to someone at MSFT to answer.

A little bit of this: http://technet.microsoft.com/en-us/library/hh801619.aspx
and a little bit of this: http://technet.microsoft.com/en-us/library/hh801522.aspx

Can result in something like this:

$YourCluster = Get-SCVMHostCluster -Name YOUR-CLUSTER-NAME

$YourRunAs = Get-SCRunAsAccount -Name "YOURRUNASACCOUNT"

Set-SCVmHostCluster -VMHostCluster $YourCluster -VMHostManagementCredential $YourRunAs

This one works like a charm for VMM 2012 SP1 for Windows 2008 R2 and 2012 clusters.

Do you want to update the old threads related to the same subject or do you want me to do it? ;)

May 20th, 2013 8:52am

Thanks so much for your post. You are correct. This works 100% like a charm. We had a need to change Host Access and your process rocks !

Mike E.

Free Windows Admin Tool Kit Click here and download it now
July 10th, 2013 9:20pm

I have two 2012 Hyper-V servers (non cluster) managed by VMM 2012 SP1 RU 3, I'm trying to set the Host Access RunAs Account, but every time I set it and check its been applied the box is blank again!

The following command is being executed; 

$vmHost = Get-SCVMHost -ID "GUID"
$hostManagementAccount = Get-SCRunAsAccount -Name "Virtual Machine Service Account" -ID "GUID"

Set-SCVMHost -VMHost $vmHost -JobGroup "GUID" -RunAsynchronously -VMHostManagementCredential $hostManagementAccount -AvailableForPlacement $true -RemoteConnectPort 2179

I've tried rebooting the host, I've added the local account to the local admin group but still to no effect, I need to set the runas account so I have can do live vm migration from host to host. This works perfectly in the hyper-v console on both hosts.

Thanks for any advice,

Rob

PS, I was trying to resolve this issue http://www.server-log.com/blog/2013/5/20/system-center-2012-sp1-virtual-machine-manager-live-migratio.html


  • Edited by RobFuller Monday, August 05, 2013 8:06 AM
August 5th, 2013 8:06am

Hi Rob,

I assume you are running this via the VMM UI. What's the result of the job?

Free Windows Admin Tool Kit Click here and download it now
August 8th, 2013 6:21am

Yes that right, the result looks successful but nothing is apply. (box just disappears as normal, don't see a task result logged)
  • Edited by RobFuller Thursday, August 08, 2013 12:01 PM
August 8th, 2013 11:57am

Have you tried it using powershell?
Free Windows Admin Tool Kit Click here and download it now
August 9th, 2013 12:10am

That works like a charm, even in SCVMM 2012 R2 / W2K12 R2 Cluster
Many thx

JG
December 19th, 2013 12:35pm

Thank you so much for this fix. Have been pulling my hair out for days and days but then stumbled on this post. You've saved my Bacon. Up voted!!
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2014 9:36pm

Hi gyus. I have exactly the same issue. On the Host Access tab I cannot choose Run As account because this field is greyed out. We Use SCVMM 2012 R2 and Windows 2012 Cluster.

I tried to use script above but I receive  the error: 

Set-SCVMHostCluster : Cannot process argument transformation on parameter
'VMHostManagementCredential'. Only a RunAsAccount Type is allowed for this
parameter. If PSCredential was earlier supported it's no longer supported.
At C:\1\3.ps1:3 char:81
+ ... mentCredential $YourRunAsAccount
+                    ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-SCVMHostCluster], Paramete
   rBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Microsoft.S
   ystemCenter.VirtualMachineManager.Cmdlets.SetHostClusterCmdlet

Please help!

June 6th, 2014 9:41am

Hi Guys, i have the same issue as kot_nn

Set-SCVMHostCluster : Cannot process argument transformation on parameter
'VMHostManagementCredential'. Only a RunAsAccount Type is allowed for this
parameter. If PSCredential was earlier supported it's no longer supported.
At C:\1\3.ps1:3 char:81
+ ... mentCredential $YourRunAsAccount
+                    ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-SCVMHostCluster], Paramete
   rBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Microsoft.S
   ystemCenter.VirtualMachineManager.Cmdlets.SetHostClusterCmdlet

Free Windows Admin Tool Kit Click here and download it now
December 30th, 2014 9:56am

For anyone running into the following error:

Set-SCVMHostCluster : Cannot process argument transformation on parameter
'VMHostManagementCredential'. Only a RunAsAccount Type is allowed for this
parameter. If PSCredential was earlier supported it's no longer supported.

Try augmenting the script a little bit as following (it worked for me):

NOTE: -Name "<ClusterName>" should work as well for the first vaiable

$vmHostCluster = Get-VMHostCluster -ID "<IDofCluster>"

$hostManagementAccount = Get-SCRunAsAccount -Name "<NameOfRunAsAccount>" Set-VMhostCluster $vmHostCluster -VMHostManagementCredential $hostManagementAccount


Cheers,

Max



  • Edited by Maxim M 14 hours 9 minutes ago
July 21st, 2015 12:47pm

For anyone running into the following error:

Set-SCVMHostCluster : Cannot process argument transformation on parameter
'VMHostManagementCredential'. Only a RunAsAccount Type is allowed for this
parameter. If PSCredential was earlier supported it's no longer supported.

Try augmenting the script a little bit as following (it worked for me):

NOTE: -Name "<ClusterName>" should work as well for the first vaiable

$vmHostCluster = Get-VMHostCluster -ID "<IDofCluster>"

$hostManagementAccount = Get-SCRunAsAccount -Name "<NameOfRunAsAccount>" Set-VMhostCluster $vmHostCluster -VMHostManagementCredential $hostManagementAccount


Cheers,

Max



  • Edited by Maxim M Tuesday, July 21, 2015 5:05 PM
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2015 4:43pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics