1.1. Providing Credentials

The vinfra CLI tool requires the following information to be used:

  • IP address of the management node (set to by default).
  • Username (admin by default).
  • Password (created during installation of Virtuozzo Infrastructure Platform).

This information can be supplied via the --vinfra-portal, --vinfra-username, and --vinfra-password command-line parameters with each command. Alternatively, you can supply it by setting the environment variables VINFRA_PORTAL, VINFRA_USERNAME, and 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_PORTAL and/or VINFRA_USERNAME on that machine in addition to VINFRA_PASSWORD.