Vmware Tools Copy Files

Docs

Copy To Guest

$vm = Get-VM -Name TEST
Get-Item "X:\yourfile.txt" | Copy-VMGuestFile -Destination "c:\temp" -VM $vm -LocalToGuest -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

Copy From Guest

$vm = Get-VM -Name TEST
Copy-VMGuestFile -Source c:\yourfile.txt -Destination c:\temp\ -VM $vm -GuestToLocal -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

Ansible VMware Connection Plugin & Become

When using VMware as the connection plugin to connect to remote hosts you commonly set two facts for username and password: ansible_vmware_tools_user: "mkamner" ansible_vmare_tools_password: "Super Secret PW" This will work just fine for windows and with many tasks on linux. However, if you want to use become: true on linux it will fail with the strangest error messages. For example: apt will fail, because it can’t acquire the lock file [Read More]

GitLab

My preferred git server and CI/CD system, either gitlab.com or self-hosted.

Helm

A good way to pull in external dependencies into Kubernetes For writing my own manifests I prefer to use Kustomize.

JQ

A incredibly powerful tool for manipulating the heaps of JSON files and responses I interact with daily.

A lot of times I also use ijq1 instead, which is a interactive version of jq.

Kubernetes

I have run and am still running loads of Kubernetes clusters, mostly on-premise.

Kustomize

My prefered tool for writing and provisioning home-built manifests to [[kubernetes]]

MacOS

My operating system of choice on the client, usually on a MacBook Pro.

PowerShell

PowerShell holds a special place in my heart as it was the first ever tool I dived into deeply and used to automate my daily work.

To this day it runs a bunch of fundamental automations in my life.

Python

These days Python is my language of choice for both simple scripts and more complex backend applications, usually in combination with [[django]]

vCenter Cert Bundle

Errors connecting to vCenter or any ESXi server in the cluster without certificate errors?

  • Get CA cert from the vCenter: wget https://{{ YOUR VCENTER }}/certs/download.zip --no-check-certificate
  • Install where required

VMware KB