1.1. Providing Credentials¶
vinfra CLI tool requires the following information to be used:
- IP address or hostname of the management node (set to
- Username (
- Password (created during installation of Virtuozzo Infrastructure Platform).
This information can be supplied via the
--vinfra-password command-line parameters with each command. Alternatively, you can supply it by setting the environment variables
VINFRA_PASSWORD (e.g., in your
~/.bash_profile). In this case, you will be able to run the CLI tool without the aforementioned command-line parameters.
As you typically run
vinfra from the management node as admin, the only variable you usually need to set is the password. For example:
# export VINFRA_PASSWORD=12345
If you installed
vinfra on a remote machine and/or run it as a different user, you will need to set
VINFRA_USERNAME on that machine in addition to