govmomi
cluster-template
govmomi | cluster-template | |
---|---|---|
17 | 63 | |
2,254 | 1,552 | |
0.4% | 2.8% | |
9.0 | 9.8 | |
5 days ago | 3 days ago | |
Go | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
govmomi
-
go install from github via https possible?
I'm trying to install a VMware go module from github called govmoni (https://github.com/vmware/govmomi). The instructions on the project's page on github say use "go get", but "get" is now a retired subcommand. If I try to use "go install" in place of "go get", then I get asked for https username & password for github. github no longer allows usernames and passwords for https (https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls). I swear there should be a special place in hell for people that make changes incompatible with google search results. I can git clone and so on via https without a problem so I'm not clear why go has a problem.
- govc, CLI for vCenter. Script to log in without showing or saving password.
- Scheduling power down of all hosts & vCenter in home lab.
-
Terraform Vsphere Help
A quick search led me to this issue: https://github.com/vmware/govmomi/issues/1345
-
cloud-init struggle
export METADATA=$(gzip -c9 /dev/null || base64; }) \ USERDATA=$(gzip -c9 /dev/null || base64; }) # set govc env variables export GOVC_INSECURE=1 export GOVC_URL=vcenter.company.com export [email protected] export GOVC_PASSWORD='MY-PASSWORD' govc vm.change -vm "${YOUR_TEST_VM}" \ -e guestinfo.metadata="${METADATA}" \ -e guestinfo.metadata.encoding="gzip+base64" \ -e guestinfo.userdata="${USERDATA}" \ -e guestinfo.userdata.encoding="gzip+base64" Download govc: https://github.com/vmware/govmomi/releases Doku govc: https://github.com/vmware/govmomi/blob/master/govc/USAGE.md
-
Reboot VMs With a Script
There are command line utilities for some tasks in vmware, like govc. That will enable you to do simple enough scripts to do things like that.
-
Can't seem to get TIG stack working, what's the alternate ?
In general monitoring, not specifically for vmware. Icinga2 have a module for vmware monitoring too, and it can be integrated with influxdb and grafana for extra visualization. I've used also govc in scripts to get some particular VM metrics to see them with influx and grafana
-
Programmatically get list of VM names and IP's from a standalone ESXi server?
VMware itself offers a lot of bindings for their APIs; you can consult their Github org and their list of public repositories for the open source ones, for example for Go or Python.
-
Get File From Non-Networked VM
If vmtools is installed and running, use govc to copy the file out directly. Don’t recall the precise subcommand - probably guest.something
-
get vmdk file info via cli?
I'm using govc (Github) for these tasks.
cluster-template
-
Home Lab Guide
k8s is a lot easier for homelabs than it used to be, and imo it's quicker than nix for building a declarative homelab. templates like this one can deploy a cluster in a few hours: https://github.com/onedr0p/cluster-template
here's my home assistant deployment as a single file: https://github.com/pl4nty/homelab/blob/main/kubernetes/clust...
I deliberately nuked my onprem cluster a few weeks ago, and was fully restored within 2 hours (including host OS reinstalls). and most of that was waiting for backup restores over my slow internet connection
- An opinionated template for deploying a single k3s cluster with Ansible backed by Flux, SOPS, GitHub Actions, Renovate, Cilium, Cloudflare and more!
-
Entropy...
example repo: https://github.com/onedr0p/flux-cluster-template
-
Noob question: How do you setup your local dev environment?
Magical setups like this often get a lot of bad rap, but if you already understand Ansible and know Linux etc, you might find this repo a good start to building out your own cluster using gitops: https://github.com/onedr0p/flux-cluster-template
-
Fastest way to set up an k8s environment ?
more of an end-to-end solution than a build-it-yourself, but this was a huge help in my understanding of k8s and the other tech like gitops - https://github.com/onedr0p/flux-cluster-template
- BookStack Updates for the last 6 months
- Advice on making my self-hosting easier to maintain (currently using terraform/kubernetes)
-
Tired of people trying to make tools IaaS agnostic
idk how it'd scale for a larger operation, but flux+sops+age has worked great for me. based on https://github.com/onedr0p/flux-cluster-template
-
What's a software you searched to selfhost but is still missing to you ?
Here is a really good and VERY thorough example of pulling that all together: https://github.com/onedr0p/flux-cluster-template
- My recently deployed media apps in ArgoCD, migrating from Terraform.
What are some alternatives?
pyvmomi - VMware vSphere API Python Bindings
awesome-home-kubernetes - ⚠️ Deprecated: Awesome projects involving running Kubernetes at home
homelab-packer - Create VM templates for vSphere with Packer
external-dns - Configure external DNS servers (AWS Route53, Google CloudDNS and others) for Kubernetes Ingresses and Services
sexilog - SexiLog is a specific ELK virtual appliance designed for vSphere environment
home-ops - Wife approved HomeOps driven by Kubernetes and GitOps using Flux
vsphere-influxdb-go - Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB
netmiko - Multi-vendor library to simplify Paramiko SSH connections to network devices
hajimari - Hajimari is a beautiful & customizable browser startpage/dashboard with Kubernetes application discovery.
homelab-infra - Homelab infra management