Automated Configuration

The article describes the recommended automated configuration using vsphere-ctl config command. If you have access to BWeb and would like to use it to configure the connection to VMware infrastructure and your backup jobs, skip ahead to BWeb VMware Center Module.

Attention

New in version 16.0.8

The automated configuration is available with version 16.0.12.

Set up the vSphere configuration in the console:

[root@localhost bin]# ./vsphere-ctl config create
Enter ESXi/vCenter url: 192.168.0.15
Enter user: administrator@vsphere.local
Enter password:
Connecting to "https://192.168.0.15/sdk"...
OK: successful connection
OK: user has all necessary permissions to perform backups and restores
Select the ESXi host that contains the VMs you wish to backup:
    1) 192.168.0.8
    2) 192.168.0.26
Select host: 1
Computing thumbprint of host "192.168.0.8"
OK: thumbprint for "192.168.0.8" is 04:24:24:13:3C:AD:63:84:A1:9F:E5:14:82:7D:5C:31:25:A8:FA:89
OK: added entry [vcenter_192_168_0_8] to ../etc/vsphere_global.conf

It’s also possible to list configurations that are already present:

[root@localhost bin]# ./vsphere-ctl config list
[esxi_192_168_0_26]
     root_directory = /opt/bacula/working/esxi_192_168_0_26
     server = 192.168.0.26
     thumbprint = A0:6D:75:53:9E:30:85:BB:99:63:6E:33:C4:B8:64:E9:06:AD:BF:CF
     url = https://192.168.0.26/sdk
     username = root
[esxi_192_168_0_8]
     root_directory = /opt/bacula/working/esxi_192_168_0_8
     server = 192.168.0.8
     thumbprint = 04:24:24:13:3C:AD:63:84:A1:9F:E5:14:82:7D:5C:31:25:A8:FA:89
     url = https://192.168.0.8/sdk
     username = root
[vcenter_192_168_0_26]
     root_directory = /opt/bacula/working/vcenter_192_168_0_26
     server = 192.168.0.26
     thumbprint = A0:6D:75:53:9E:30:85:BB:99:63:6E:33:C4:B8:64:E9:06:AD:BF:CF
     url = https://192.168.0.15/sdk
     username = administrator@vsphere.local
[vcenter_192_168_0_8]
     root_directory = /opt/bacula/working/vcenter_192_168_0_8
     server = 192.168.0.8
     thumbprint = 04:24:24:13:3C:AD:63:84:A1:9F:E5:14:82:7D:5C:31:25:A8:FA:89
     url = https://192.168.0.15/sdk
     username = administrator@vsphere.local

Existing configuration entries can be validated with:

[root@localhost bin]# ./vsphere-ctl config check vcenter_192_168_0_26
Connecting to "https://192.168.0.15/sdk"...
OK: successful connection
Computing thumbprint of host "192.168.0.26"
OK: local thumbprint matches server thumbprint
Checking user privileges...
OK: user has all necessary privileges

Finally, you can delete configuration entries with:

[root@localhost bin]# ./vsphere-ctl config delete --entry vcenter_192_168_0_8
OK: deleted entry "vcenter_192_168_0_8".

Go back to the main vSphere Plugin Configuration page.

Go back to the main vSphere Plugin page.