how to install vmware CLI govc on Linux
learn how to install vmware CLI govc on Linux
head over the project page and download the binary file
project link https://github.com/vmware/govmomi/tree/master/govc
release page https://github.com/vmware/govmomi/releases
find a binary file according to your OS's need
for me govc_Linux_x86_64.tar.gz
wget -c "link you have"
Extract the .tar.gz file and install it
tar -xzf govc_Linux_x86_64.tar.gz
chmod +x govc
sudo install -o root -g root -m 0755 gove /usr/local/bin/govc
Assign related variables
export GOVC_URL=https://192.168.1.252
your EXSi endpointexport GOVC_USERNAME=root
the user name we have access withexport GOVC_PASSWORD=4NQbHZtBmCkfYqR9
our passwordexport GOVC_INSECURE=true
disable SSL validation , useful when we run ESXi locally
we can have these for variables in /etc/environment
run the command govc
govc
govc ls
Last updated
Was this helpful?