google-cloud Using Google Cloud Service Account impersonation with Terraform In this post I’ll demonstrate how to configure a Terraform project to use Google Service Account impersonation and explain why I think this is a better option that using service account keys.
vsphere How to download and setup the VMware vSphere Client Find out how you should be managing your vSphere environment in 2021!
vsphere How to Update VMware ESXi Hosts with Lifecycle Manager This tutorial shows you how to use the vSphere Lifecycle Manager to update ESXi hosts.
powershell How to download and install offline Windows updates with PowerShell This tutorial shows you how to use the MSCatalog PowerShell module to download and install offline Windows updates.
powercli How to run ESXCLI commands in PowerShell using the PowerCLI Get-EsxCli cmdlet If you’re a vSphere admin, you’ll be very familiar with the esxcli command. But have you ever wondered how to run esxcli commands from PowerCLI? Maybe you don’t want to enable SSH on your hosts, or perhaps you need to run an esxcli command in a PowerShell script.
powershell How to validate Azure resource moves using PowerShell The validate move resources API operation in Azure lets you pre-validate a potential move without actually moving any resources. This can be helpful when planning complex move scenarios.
powershell What is PowerShell splatting and how does it work? In this tutorial you’ll learn all about splatting, which is a technique used to pass parameter values to a PowerShell command.
powercli Add Hard Disks to VMs Asynchronously with PowerCLI At the time of writing the New-HardDisk PowerCLI CmdLet does not yet have a -RunAsync parameter. I found this out when trying to create a new 300 GiB eagerly zeroed disk on multiple VMs in one go. I soon realised that I was going to be sat there for a long time as each new disk was being formatted one at a time.
powershell Managing vSphere Global Permissions with PowerShell It appears that working with vSphere global permissions in PowerCLI is not yet possible. The VIPerms PowerShell module combines the add/remove examples from William’s post with a new function to list all global permissions. In this post I will demonstrate how to install and use this module.
esxi ESXi Host Certificate Renewal Doesn't Include Full Chain I have just successfully migrated one of our vCenter 6.0 Windows servers to a brand new 6.7 U1 vCenter Server Appliance. After this migration I configured VMCA to be a intermediate certificate authority to our internal CA. The process for this is relatively straight forward, however, there appears to be an issue in 6.7 (and potentially 6.5) whereby hosts which are subsequently issued a new SSL certificate fail to use the full certificate chain, and therefore still show as untrusted in the browser when accessing the ESXi host client.
powercli Get ESXi Host CDP Info With PowerCLI I recently had to provide our networking team with a list of ESXi hosts and which switchports each of their physical NICs were connected to. Like many other environments, we are primarily a Cisco house and therefore I was able to get this data by querying the Cisco Discovery Protocol (CDP) information via PowerCLI. Here is how I went about it.
vrops vRealize Operations Manager Upgrade Fails Due To Swap Issue Today I upgraded my non-production vRealize Operations Manager (vROps) appliance from v6.7 to v7.0. However, when applying the initial OS update .pak file via the admin interface, the upgrade immediately failed with the error message "source ./pak_python_wrapper.sh validate.py" failed. Initially a colleague of mine pointed me to the well known disk space issues (KB article), but a quick look at the disk stats showed that there was plenty of space available on all partitions.
powercli Storage DRS and PowerCLI Part 1: Get VM Overrides Introduction With Storage DRS (SDRS) enabled datastore clusters, we have many options to configure overrides on a per-VM basis. For example disabling SDRS for a specific VM or forcing SDRS to keep a VMs VMDK files on separate datastores (anti-affinity). However, one thing which has caught out our 2nd line team recently and caused us some SDRS performance issues is that when you manually Storage vMotion (svMotion) one or more VMDK files and pick a specific datastore as the destination, you have to tick a box that disables SDRS for the particular VM.
vmware ESXi Loses Connectivity to VMFS Datastores. Introduction This post explains my recent experiences with certain hosts losing access to some of our VMFS datastores. Hopefully it will help someone avoid the pain that I have been through in diagnosing this issues! The Symptoms I was initially made aware of this issue as it appeared that certain hosts were losing connectivity to VMFS datastores. Upon investigation I found the following events being logged very frequently against multiple hosts.
vrops vROps Reports and PowerCLI Part 3: A Helper Module For your reference here is a list of the articles in this mini-series. vROps Reports and PowerCLI Part 1: Generating Reports vROps Reports and PowerCLI Part 2: Downloading Reports vROps Reports and PowerCLI Part 3: A Helper Module (this article) Introduction If you have been following along with the previous two articles in this series, you should now have a pretty good understanding of how to manipulate the extensionData container via PowerCLI to generate and download reports from vRealize Operations Manager (vROps).
powershell PowerShell Tips: Script Optimization Introduction A colleague of mine recently asked for some help with a script he was writing. We use vSphere tags in order to determine which backup schedule a given VM is in and he wanted to find all VMs which were not assigned a tag in the category backup-service-level, and therefore were not being backed up. His actual query was regarding filtering out certain VMs which will never be given a backup tag.
vrops vROps Reports and PowerCLI Part 2: Downloading Reports For your reference, here are the articles in this mini-series: vROps Reports and PowerCLI Part 1: Generating Reports vROps Reports and PowerCLI Part 2: Downloading Reports (this article) vROps Reports and PowerCLI Part 3: A Helper Module Introduction Following on from the previous article in this mini-series, this article demonstrates how to retrieve a generated report from vROps as a PowerShell object. Downloading A Generated Report The last step of the previous article was to use the GetReport() method to verify that your report generation was complete.
vrops vROps Reports and PowerCLI Part 1: Generating Reports For your reference, here are the articles in this mini-series: vROps Reports and PowerCLI Part 1: Generating Reports (this article) vROps Reports and PowerCLI Part 2: Downloading Reports vROps Reports and PowerCLI Part 3: A Helper Module Introduction I’ve been spending quite a bit of time with vRealize Operations Manager (vROps) lately, mostly running reports. While this is easy enough to do via the web UI, I found myself running a report, downloading the .
tutorials Installing Gogs In A FreeNAS Jail I recently stumbled across the Gogs project whilst looking for self-hosted Git solutions. I run a FreeNAS server at home so I thought I would get the app up and running in a jail. Here is how I did it. Jail Preparation Create a new jail named gogs and make sure that the jail is up to date by running. pkg update && pkg upgrade Now install the required packages.