How to properly run the VMWare plugin on debian

49 views
Skip to first unread message

Leon Bartle

unread,
Jun 3, 2024, 10:17:24 AM6/3/24
to bareos-users
Debian famously runs 6.7.1-4 of python3-pyvmomi in their newest debian 12 buster. There are no backports.
Bareos requires pyVmomi module version 7.0.2 or greater. 

I tried installing it like this in both the root and bareos user 
pip install --force-reinstall -v "pyvmomi>=7.0.2" --break-system-packages
but to no avail.

Before I destroy my entire linux distro and bareos installation, has anyone of you an idea on how to resolve this depencency chaos? 

Leon Bartle

unread,
Jun 10, 2024, 4:19:24 AM6/10/24
to bareos-users
I have fixed it by doing: 

pip install --no-index --find-links /home/admin/pyvmomi/ --force-reinstall -v "pyvmomi>=7.0.2" --break-system-packages

(As you can see, I am on an airgapped system and saved the offline packagse in /home/admin/pyvmomi, you should be able to drop the part if you are online)


copy the installed files from the python3.11 packages to the python3 packages. It might only work if a specific python verison is installed because the "python3" apt package is "more managed" (?). In this case install "apt install python3.11" or the equivalent newest python verison.

cp -r /usr/local/lib/python3.11/dist-packages/pyVim /usr/lib/python3/dist-packages/

cp -r /usr/local/lib/python3.11/dist-packages/pyVmomi /usr/lib/python3/dist-packages/

cp -r /usr/local/lib/python3.11/dist-packages/pyvmomi-8.0.2.0.1.dist-info /usr/lib/python3/dist-packages/


For some reason Bareos would not eat packages which are in /python3.11/dist-packages.
I was able to see the modules everywhere. I would launch python3, python, python311 and every time I was able to successfully import them. I scanned for venvs, I created a venv for bareos itself but to no avail. Only copying the files manually would do it. Maybe this is something to look at for the vmware plugin.

Reply all
Reply to author
Forward
0 new messages