pyvmomi-community-samples
pyvmomi-community-samples copied to clipboard
Add example on how to set up environment variables
trafficstars
Is your feature request related to a problem? Please describe.
Hey everybody, I would like to see an example of how to set up (global) environment variables on the VM so it's available during shell/cmd line usage. For instance, having some env var like FOO=123 available so I can do the following in the VM:
$ echo $FOO
123
Describe the solution you'd like
An example on how to set up environment variables in the VM
Describe alternatives you've considered
No response
Additional context
No response
To set system-wide Linux environment variables, you can edit the /etc/environment file.
Instead of appending export commands to the file, append the <NAME>='<VALUE>' pair to the end of the file.