I am deploying a Bareos backup server.
But I have an error with the VMware plugin.
If I will like to make a backup of a VM, I always get the error "Cannot connect to [Vcenter server] with user [USER] and password.
I have look it up, but don't find anything to solve this problem.
I use Bareos version 15.2.2 and the vSphere server 5.5 standard edition.
The file daemon is installed on the Bareos server itself (normally connect to the vcenter with the plugin).
And the Data Protection API is enabled.
I have fix the problem with adding some code in the function connect_vmware, from the BareosFdPluginVMware.py
Try :
import ssl
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) # add this
context.verify_mode = ssl.CERT_NONE # add this
self.si = SmartConnect(host=self.options['vcserver'],
user=self.options['vcuser'],
pwd=self.options['vcpass'],
port=443, sslContext=context) # add the sslContext
This will ignore the unverified certified.