WinRM, https, Kerberos, and vCO Powershell Plugin 1.0.1
Summary:
Pain in my arse. I was able to make it work this way, whether this is the correct way to do it is most definitely up for debate. I started writing this on w/ vCO PS Plugin 1.0, so some things might need work. I welcome corrections.
Details:
Pain in my arse. I was able to make it work this way, whether this is the correct way to do it is most definitely up for debate. I started writing this on w/ vCO PS Plugin 1.0, so some things might need work. I welcome corrections.
Details:
- WinRM by default only allows users that are members of the administrators.
- See here how to add additional users
- The only way I’ve been able to make this work in Orchestrator is if the service account I’m using is a member of the administrators group on the powershell remote host.
- It works via standard WinRM or Powershell so a bit puzzled as to why I get access denied errors from vCO. Still researching... :-/
- Setup IIS
- Generate CSR from IIS
- Import CA generated CSR
- IIS Website -> SSL Settings -> Edit Bindings -> https:// -> Select imported SSL cert.
- Command Prompt (not powershell):
- winrm quickconfig -transport:https
- winrm set winrm/config/client @{TrustedHosts=”NameorIP of VCO host”}
- winrm set winrm/config/service/auth @{Kerberos=”True”}
- Assuming you are using the vCenter Orchestrator virtual appliance:
- Log into vCenter Orchestrator local console as root
- Default password for root is “vmware”
- SSH is disabled by default, so it you must login via local console.
- You need to create a krb5.conf file in the following directory:
- /opt/vmo/jre/lib/security
- vi krb5.conf
- Hit “i” to insert text
- Click here for a VI Reference
- Sample krb5.conf:
- You can enter multiple kdc servers (in Active Directory, usually the same as a domain controller)
- kdc = kdc1.somedomain.com
- kdc = kdc2.somedomain.com
- krb5.conf is CASE SeNSITIVE!
- If you use the [domain_realms] section, your domain names will translate into UPPERCASE if using the format above.
- Once you’re done editing, hit “ESC”, “:”, “wq”, Enter
- Change ownership/perms on krb5.conf file:
- chown vco:vco krb5.conf
- chmod 640 krb5.conf
- Restart vCenter Orchestrator Appliance.
- You can probably restart a specific service, but I’m unsure as to which one.
[libdefaults]
default_realm = SOMEDOMAIN.COM
udp_preference_limit = 1 [realms]
SOMEDOMAIN.COM = {
kdc = kdc1.somedomain.com
default_domain = somedomain.com
} [domain_realms] .somedomain.com=SOMEDOMAIN.COM somedomain.com=SOMEDOMAIN.COM
Comments