Build Debian packages with VMWare plugin

62 views
Skip to first unread message

Sébastien WENSKE

unread,
Nov 15, 2024, 10:28:45 AM11/15/24
to bareos-users
Hello Folks

I am trying to build bareos from source and I am having a problem with the 'bareos-vmware-plugin' package.

At best, the process ends with this kind of errors:

dh_shlibdeps -l/builds/veepee/vptech/sre/iac/debian-packages/bareos/bareos-Release-23.0.4/debian/tmp/usr/lib/bareos
dpkg-shlibdeps: error: no dependency information found for /lib/libvixDiskLib.so.8.0.3 (used by debian/bareos-vadp-dumper/usr/sbin/bareos_vadp_dumper)
Hint: check if the library actually comes from a package.


I am using "dpkg-buildpackage" to build the packages.

Do you have any clues or a way to include the "VMware-vix-disklib-8.0.x" libraries and generate the "bareos-vmware-plugin" package (and "bareos-vmware-vix-disklib" at the same time, if I understand correctly)?

Vielen Dank und ein schönes Wochenende!

Andreas Rogge

unread,
Nov 18, 2024, 10:06:08 AM11/18/24
to bareos...@googlegroups.com
Am 15.11.24 um 16:28 schrieb Sébastien WENSKE:
> Hello Folks
>
> I am trying to build bareos from source and I am having a problem with
> the 'bareos-vmware-plugin' package.
I bet you do :)

> Do you have any clues or a way to include the "VMware-vix-disklib-8.0.x"
> libraries and generate the "bareos-vmware-plugin" package (and "bareos-
> vmware-vix-disklib" at the same time, if I understand correctly)?
You'll need the runtime package bareos-vmware-vix-disklib and also need
the devel package bareos-vmware-vix-disklib-dev which contains the headers.
The latter one is sadly non-redistributable (thank you VMware) so you'll
have to roll your own package from the VDDK.

If you really need it, I can check if I am allowed to provide the debian
control-files.

Best Regards,
Andreas

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz

OpenPGP_signature.asc

Ruth Ivimey-Cook

unread,
Nov 19, 2024, 1:55:02 AM11/19/24
to Sébastien WENSKE, bareos-users

Hi,

I have built bareos this way and it does work, but the vixdisklib mentioned has to be obtained from broadcom (owners of vmware), and you have to register to get it, though it is free of charge. If you don't need to interact with vmware, I suggest you don't try to build the plugin package, as getting vixdisklib is fiddly.

When I build it, I expand the broadcom download (I can't remember if you need to build vixdisklib too - refer to the readme), set the environment vars, as shown below, and run "debuild". Check that the file "debian/rules" is set correctly for your needs.

    $ export VIXDISKLIB_INCLUDE_DIRS=$PWD/vmware-vix-disklib-distrib/include

    $ export VIXDISKLIB_LIBRARIES=$PWD/vmware-vix-disklib-distrib/lib64

    $ debuild -b -ui -uc -us -eVIXDISKLIB_INCLUDE_DIRS -eVIXDISKLIB_LIBRARIES


Regards,

Ruth

Vielen Dank und ein schönes Wochenende! --
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/0c192794-3a46-4815-85db-d67513b0e0f7n%40googlegroups.com.
Message has been deleted
Message has been deleted

Sébastien WENSKE

unread,
Nov 22, 2024, 2:56:54 AM11/22/24
to bareos-users
Hi Ruth and Andreas !

I succeeded yesterday by starting building bareos-vmware-vix-disklib_amd64.deb first, then installing it before building the rest of the packages:


- - - - 8< - - - -
-- checking for library vixDiskLib and vixDiskLib.h header ...
-- VIXDISKLIB_FOUND=TRUE
-- VIXDISKLIB_LIBRARIES=/usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so
-- VIXDISKLIB_INCLUDE_DIRS=/usr/include
-- HAVE_VIXDISKLIB=1
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE - success
[...]
dpkg-deb: build package 'bareos-vmware-plugin' in '../bareos-vmware-plugin_23.1.0-2_amd64.deb'.
dpkg-deb: build package 'bareos-vadp-dumper' in '../bareos-vadp-dumper_23.1.0-2_amd64.deb'.
- - - - 8< - - - -


That said, thank you, I will try your solution later.

Sébastien WENSKE

unread,
Nov 22, 2024, 2:56:54 AM11/22/24
to bareos-users
Hi Ruth

I succeeded yesterday by building bareos-vmware-vix-disklib_amd64.deb first, then installing it before building the rest of the packages.


- - - - 8< - - - -
-- checking for library vixDiskLib and vixDiskLib.h header ...
-- VIXDISKLIB_FOUND=TRUE
-- VIXDISKLIB_LIBRARIES=/usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so
-- VIXDISKLIB_INCLUDE_DIRS=/usr/include
-- HAVE_VIXDISKLIB=1
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE - Success
[...]
dpkg-deb: building package 'bareos-vmware-plugin' in '../bareos-vmware-plugin_23.1.0-2_amd64.deb'.
dpkg-deb: building package 'bareos-vadp-dumper' in '../bareos-vadp-dumper_23.1.0-2_amd64.deb'.

- - - - 8< - - - -


That said, thanks, I will test your solution later.

Sebastian

Le mardi 19 novembre 2024 à 07:55:02 UTC+1, Ruth Ivimey-Cook a écrit :

Sébastien WENSKE

unread,
Nov 22, 2024, 2:56:55 AM11/22/24
to Ruth Ivimey-Cook, bareos-users
Hi Ruth and Andreas !

I succeeded yesterday by starting building bareos-vmware-vix-disklib_amd64.deb first, then installing it before building the rest of the packages:


- - - - 8< - - - -
-- checking for library vixDiskLib and vixDiskLib.h header ...
-- VIXDISKLIB_FOUND=TRUE
-- VIXDISKLIB_LIBRARIES=/usr/lib/vmware-vix-disklib/lib64/libvixDiskLib.so
-- VIXDISKLIB_INCLUDE_DIRS=/usr/include
-- HAVE_VIXDISKLIB=1
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE
-- Performing Test VIXDISKLIBCREEATEPARAMS_HAS_PHYSICALSECTORSIZE - success
[...]
dpkg-deb: build package 'bareos-vmware-plugin' in '../bareos-vmware-plugin_23.1.0-2_amd64.deb'.
dpkg-deb: build package 'bareos-vadp-dumper' in '../bareos-vadp-dumper_23.1.0-2_amd64.deb'.
- - - - 8< - - - -


That said, thank you, I will try your solution later.

Sebastian


De : Ruth Ivimey-Cook <rivim...@gmail.com>
Envoyé : lundi 18 novembre 2024 01:01
À : Sébastien WENSKE <seba...@wenske.fr>; bareos-users <bareos...@googlegroups.com>
Objet : Re: [bareos-users] Build Debian packages with VMWare plugin
 

Sébastien WENSKE

unread,
Nov 22, 2024, 5:50:03 AM11/22/24
to bareos-users
Sorry for the noises, I don't know what happened and why mail has been delayed.

Have a Nice day!
Sebastian

De : bareos...@googlegroups.com <bareos...@googlegroups.com> de la part de Sébastien WENSKE <seba...@wenske.fr>
Envoyé : mardi 19 novembre 2024 11:31
À : bareos-users <bareos...@googlegroups.com>

Objet : Re: [bareos-users] Build Debian packages with VMWare plugin
You received this message because you are subscribed to a topic in the Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bareos-users/W7otGg9eJRo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bareos-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/ef769d21-487b-4731-a595-3c5a8f959e0an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages