Comprehensive data protection for all workloads
Post Reply
sorell.it
Novice
Posts: 4
Liked: 3 times
Joined: Oct 24, 2016 10:22 pm
Full Name: Sorell IT
Contact:

How To: Create Ubuntu Storage Repository

Post by sorell.it » Oct 24, 2016 10:32 pm 2 people like this post

In order to get this to work we had to be running Veeam 9.0.0.1715 & these commands were run on a Ubuntu 16.04 Server installation.

Run the following on the ubuntu server, this installed the required software needed to build the perl modules required by Veeam

Code: Select all

sudo apt-get install build-essential
Now you can install the perl modules with cpan

Code: Select all

sudo cpan constant Carp Cwd Data::Dumper Encode Encode::Alias Encode::Config Encode::Encoding Encode::MIME::Name Exporter Exporter::Heavy File::Path File::Spec File::Spec::Unix File::Temp List::Util Scalar::Util Socket Storable threads
Note: I actually install all the perl modules with seperate commands however it should work all as one

Now that all the modules are installed you need to enable sued to elevate without prompting for a password

Code: Select all

sudo visudo
And then put in the line

Code: Select all

%sudo   ALL=NOPASSWD: ALL
After that you should now be able to connect Veeam to a Ubuntu server

P.Tide
Product Manager
Posts: 4992
Liked: 427 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: How To: Create Ubuntu Storage Repository

Post by P.Tide » Oct 26, 2016 11:35 am

Hi,

Have you tried to add

Code: Select all

Defaults:veeamuser !requiretty
in your sudoers file for the veeamuser that you use to connect to the server?

sorell.it
Novice
Posts: 4
Liked: 3 times
Joined: Oct 24, 2016 10:22 pm
Full Name: Sorell IT
Contact:

Re: How To: Create Ubuntu Storage Repository

Post by sorell.it » Dec 07, 2016 10:52 pm

Sorry for the crazy delayed reply, Just had the opportunity to run up another Ubuntu repo for Veeam so I tried out what you suggested and it still didn't play ball for me. Went back to using:

Code: Select all

%sudo   ALL=NOPASSWD: ALL
and then it started working.

tsightler
VP, Product Management
Posts: 5305
Liked: 2160 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: How To: Create Ubuntu Storage Repository

Post by tsightler » Dec 08, 2016 1:46 am 2 people like this post

Just in case others read this, sudo is not required for a Linux repository, as long as the user that you are connecting with has permissions to the directory you want to use to store backups. It generally not considered best practice to provide sudo access to accounts used for Linux repositories. Far better is to create a restricted user and set the permissions on the repository directory to u+rw only by that user.

Post Reply

Who is online

Users browsing this forum: BenjaminB and 59 guests