Rancher Desktop UNIX_PATH_MAX Error

When trying to start Rancher Desktop on a Mac, I was running into this error:

must be less than UNIX_PATH_MAX=1XX characers, but is 1XX

As my machine was a managed device I couldn’t update any of the account / path information. I did however find the following workaround. You’ll need to move and link the lima home directory to ~/.rdlima:

$ mv ~/Library/Application\ Support/rancher-desktop/lima ~/.rdlima
$ ln -s ~/.rdlima ~/Library/Application\ Support/rancher-desktop/lima

I was having this issue with a Rancher Desktop version as recent as 1.16.0 (1.16.0). I’m hoping the good folks at SUSE get this to automatically adjust in future releases.

GitLab CI Warning: "git": executable file not found in $PATH

WARNING: current commit information was not captured by the build: git was not found in the system: exec: "git": executable file not found in $PATH

I saw this WARNING sail by while I was watching a Docker build process run on my GitLab CI pipeline. The build wasn’t failing but wasn’t completing cleanly. The GitLab runner image being used for this pipeline was:

image: python:3.9-slim

The solve came after a bit of experimentation and found that I needed to edit my .gitlab-ci.yml file to include the following:

before_script:
  - apk add --update --no-cache git

That edit solved the Warning and cleaned up the pipeline. Noted.

How to shut down VirtualBox / Vagrant from CLI

So you need to stop one or more running VirtualBox instances that you may have started and are hanging around. Here are a few helpful commands:

List all running machines (returns name and UUID)
VBoxManage list runningvms

Stop running VMs by "hibernating" them (recommended to avoid data loss)
VBoxManage controlvm <name|uuid> savestate

Poweroff running VMs (not recommended because we may lose data in the guest)
VBoxManage controlvm <name|uuid> poweroff

Use ACPI in an ACPI-aware guest OS (preferable to poweroff for graceful shutdown of guests)
VBoxManage controlv m <name|uuid> acpipowerbutton