• About me…
  • VMware
  • Powershell
  • DIY

ConfigMgr.nl

VMware, PowerShell, Automation, and more…

  • About me…
  • VMware
  • Powershell
  • DIY

Testing Script Runtime Service for vSphere – part 1

7 januari 2021 PowerCli Powershell VMware No Comments

Last year I tweeted about the introduction of the Script Runtime Service and now I decided to give it a try. The reason for this is that I think this is something we all waited for: a central script host.

At first, I thought this was an evolution of the Script Execution Service that can be found in the vSphere HTML5 Web Client Fling. This fling had several features, and one of them was called PowerActions: integrating PowerCLI and the vSphere Client. The vSphere Client now provides the ability to execute PowerCLI commands and scripts, and store scripts in a library. Custom actions backed by PowerCLI scripts can be defined and executed on inventory objects.

To use it you would roll out a vSphere HTML5 Web Client Fling appliance and enable the Script Execution Service from the management interface.

Then you would be able to run scripts from a central repository. So SES and SRS seem to offer similar functionality. But to be honest, I don’t know how these two services compare.

The new Script Runtime Service also uses a separate machine. This would either be a K8S cluster or a VM. In this post, I will be using a VM.

First, download the bits from GitHub. I saved the files in D:\SRS. Then import the OVF to your environment. Because the disk is split into three parts importing it using the vSphere Web Client doesn’t work. So you can use PowerCLI for this. Create a connection to your environment and run these two commands:

$vmhost = Get-VMHost -Name esx01.local.lab
Import-VApp -Source D:\SRS\SRSHostVM.ovf -VMHost $vmhost

It takes some time to import the VM but in the end, you should see a VM named SRSHostVM. Power on the VM and wait for it to boot. Log on with root (default password is changeme), change the password, and install the SRS. Detailed instructions on how to do the installation can be found on the GitHub page. My first attempt failed because DNS was not configured for the VM. The reason was that I forgot to configure the DNS Server option in the DHCP scope. So make sure that DNS is working. To be sure I also created an A record for the VM (srs.local.lab).

When the installation is finished you should see something like this:

Now you can check the installation by opening the swagger page of the service. Use the name you used in the installation command. In my case it’s https://srs.local.lab/swagger. If all goes well you should see something like this:

Using SRS

Now that the SRS is installed successfully, it is time to use it! Luc Dekens wrote an excellent article about building your own SRS and how to use it: https://www.lucd.info/2020/12/23/a-hitchhikers-guide-to-srs-1-0-0/

In the next post I will try to give you some examples on how to use the Script Runtime Service.

powercliscriptsrsvCentervcsavSphere

Using ADFS with vCenter 7

Reporting on your Windows Server backup

Geef een antwoord Reactie annuleren

Deze website gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

Recente berichten

  • Handy one-liners
  • The system has insufficient locker space for the image profile
  • Testing Script Runtime Service for vSphere – part 2
  • Reporting on your Windows Server backup
  • Testing Script Runtime Service for vSphere – part 1

Jeroen BurenFollow

Jeroen Buren
jeroen_burenJeroen Buren@jeroen_buren·
13 jul

VMware vSphere+ and VMware vSAN+ Now Generally Available https://dy.si/MRAKdy

Reply on Twitter 1547231373118754817Retweet on Twitter 1547231373118754817Like on Twitter 1547231373118754817Twitter 1547231373118754817
jeroen_burenJeroen Buren@jeroen_buren·
21 jun

Never stop learning... https://dy.si/bJt42

Reply on Twitter 1539159798926610432Retweet on Twitter 1539159798926610432Like on Twitter 1539159798926610432Twitter 1539159798926610432
Retweet on TwitterJeroen Buren Retweeted
brianmaddenBrian Madden@brianmadden·
26 mei

I just wrote an article on LinkedIn with my brutal and honest thoughts on the @Broadcom / @VMware deal. VMware is toast. It's sad, but there is no other way. https://www.linkedin.com/pulse/brian-maddens-brutal-unfiltered-thoughts-broadcom-vmware-brian-madden/

Reply on Twitter 1529925814203973632Retweet on Twitter 152992581420397363293Like on Twitter 1529925814203973632386Twitter 1529925814203973632
jeroen_burenJeroen Buren@jeroen_buren·
25 mei

A video tells more than a thousand words... https://dy.si/DBFdUR2

Reply on Twitter 1529336584557867010Retweet on Twitter 1529336584557867010Like on Twitter 1529336584557867010Twitter 1529336584557867010
jeroen_burenJeroen Buren@jeroen_buren·
1 mei

Fijn weer een seintje gekregen van @VattenfallNL : Uw termijnbedrag is op dit moment niet meer helemaal in lijn met uw verbruik. Ze bedoelen natuurlijk niet meer in lijn met hun tarieven…

Reply on Twitter 1520835622042222595Retweet on Twitter 1520835622042222595Like on Twitter 15208356220422225952Twitter 1520835622042222595
Load More...

Categorieën

Proudly powered by WordPress | Theme: Doo by ThemeVS.