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

  1. find a binary file according to your OS's need

  2. wget -c "link you have"

Extract the .tar.gz file and install it

  1. tar -xzf govc_Linux_x86_64.tar.gz

  2. chmod +x govc

  3. sudo install -o root -g root -m 0755 gove /usr/local/bin/govc

  1. export GOVC_URL=https://192.168.1.252 your EXSi endpoint

  2. export GOVC_USERNAME=root the user name we have access with

  3. export GOVC_PASSWORD=4NQbHZtBmCkfYqR9 our password

  4. export 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 ls

Last updated

Was this helpful?