Tuesday, June 12, 2018

Install and update PowerShell Core on Centos 7

Documentation: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-powershell-core-on-linux?view=powershell-6#centos-7

curl https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo



sudo yum install -y powershell



Check ps version and default modules

 List All Configured Repositories
yum repolist (-v)




pwsh to start powershell
$psversiontable



Install GNOME desktop on Centos7
yum -y groups install "GNOME Desktop"
startx 


Update powershell core


sudo yum update powershell


$PSVersionTable




Thursday, March 22, 2018

VcPlugin is not defined


Calling VcPlugin can fail when executing after Change Credentials workflow object
- place script block with VcPlugin call before change credentials block










https://code.vmware.com/forums/3055/vrealize-orchestrator#447575

Thursday, March 8, 2018

vCenter Server Appliance 6.x t WinSCP Appliance shell BASH




When you copy files using WinSCP, part of the operation happens on the target Linux system. The default Appliance Shell cannot be the remote partner of WinSCP. You must enable the Bash shell on the appliance, as follows: 
  1. Initiate an SSH connection to the vCenter Server Appliance.
  2. Provide the root user user name and password when prompted.
  3. Run this command to enable the Bash shell:

    shell.set --enable True
  4. Run this command to access the Bash shell:

    shell
  5. In the Bash shell, run this command to change the default shell to Bash:

    chsh -s /bin/bash root
  6. Use WinSCP to upload the certificate files to the vCenter Server Appliance.
  7. To return to the Appliance Shell, run this command:

    chsh -s /bin/appliancesh root

Switching the vCenter Server Appliance 6.x to BASH Shell
  1. Log in to the vCenter Server Appliance through SSH.
  2. Run this command to enable access the Bash shell:

    shell.set --enabled true
  3. Type shell and press Enter.
  4. In the temporary BASH shell, run this command to permanently configure the default Shell to BASH for Root:

    chsh -s /bin/bash root
  5. Log out from the BASH Shell.
  6. Log in again for the changes to take effect.

Switching the vCenter Server Appliance 6.x to Appliance Shell
  1. Log in to the vCenter Server Appliance through SSH. 
  2. Run this command to change from using the BASH Shell to the Appliance Shell:

    chsh -s /bin/appliancesh root
  3. Log out from the Appliance Shell.
  4. Log in again for the changes to take effect.
https://kb.vmware.com/s/article/2100508
https://kb.vmware.com/s/article/2107727