Warnings when backing up Linux VMs

VMware specific discussions

Warnings when backing up Linux VMs

Veeam Logoby pshute » Wed Mar 22, 2017 1:56 am

Our Windows servers are backing up ok, but each Linux machine gets this warning: "Unable to perform guest file system indexing: Guest credentials for the VM are not specified."

Can someone please explain the implications of this? Does it just mean restoring a single file is more difficult?

I tried to enter credentials, but the test is failing. I created a user called veeamuser on one Linux machine, and added it to the root group, then I set that user as the credentials for just that machine.

Now when I run the test, that machine fails with "Guest OS account has no root privileges". What have I done wrong? This is how I created the user:
Code: Select all
sudo adduser veeamuser
sudo usermod -aG root veeamuser


I don't know that much about Linux. Am I approaching this the right way?
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby Mike Resseler » Wed Mar 22, 2017 6:41 am

Hi Peter,

Did you look at this page: https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Thanks
Mike
Mike Resseler
Veeam Software
 
Posts: 3340
Liked: 379 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Wed Mar 22, 2017 10:17 pm

Yes. I assume my problem is with creating the user, and that it's Linux help I need, not Veeam help.
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby Mike Resseler » Thu Mar 23, 2017 6:17 am

Hi Peter,

Have a look at this post: vmware-vsphere-f24/failed-to-run-command-with-sudo-t26973.html#p144297 whether it can help you. @veenski has described it step by step

Hope it helps
Mike
Mike Resseler
Veeam Software
 
Posts: 3340
Liked: 379 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Warnings when backing up Linux VMs

Veeam Logoby PTide » Thu Mar 23, 2017 12:00 pm

Hi,

The implication is that it won't be possible to browse backups for FLR via Enterprise Manager without mounting the backup in console.
Regarding sudo problem - if you have Red Hat system then you can do the following:
Code: Select all
usermod -aG wheel username
PTide
Veeam Software
 
Posts: 3134
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Thu Mar 23, 2017 11:09 pm

Mike Resseler wrote:Hi Peter,

Have a look at this post: vmware-vsphere-f24/failed-to-run-command-with-sudo-t26973.html#p144297 whether it can help you. @veenski has described it step by step

Hope it helps
Mike

Thanks, I did miss the big pink warning box about adding NOPASSWD:ALL to the sudoers file at https://helpcenter.veeam.com/docs/backu ... tml?ver=95.

I've edited sudoers so now it looks like this:
Code: Select all
veeamuser ALL=(ALL) NOPASSWD: ALL
veeamuser ALL=(root) NOPASSWD: /bin/uname
veeamuser ALL=(root) NOPASSWD: /usr/bin/scp
veeamuser ALL=(root) NOPASSWD: /bin/arch
veeamuser ALL=(root) NOPASSWD: /bin/mount
veeamuser ALL=(root) NOPASSWD: /usr/bin/sh
veeamuser ALL=(root) NOPASSWD: /bin/rm
veeamuser ALL=(root) NOPASSWD: /tmp/*


But I'm still getting the error about the user not having root access. The system is Ubuntu 12.04.2.
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Thu Mar 23, 2017 11:19 pm

PTide wrote:Hi,

The implication is that it won't be possible to browse backups for FLR via Enterprise Manager without mounting the backup in console.

Thanks, that's what I was hoping.
Regarding sudo problem - if you have Red Hat system then you can do the following:
Code: Select all
usermod -aG wheel username

It's Ubuntu 12.04.2. Tried it anyway, group wheel does not exist.
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby Mike Resseler » Fri Mar 24, 2017 6:12 am

Can you try to removal all those lines that you added in the sudoers besides veeamuser ALL=(ALL) NOPASSWD: ALL as a test?
Mike Resseler
Veeam Software
 
Posts: 3340
Liked: 379 times
Joined: Fri Feb 08, 2013 3:08 pm
Location: Belgium, the land of the fries, the beer, the chocolate and the diamonds...
Full Name: Mike Resseler

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Fri Mar 24, 2017 6:19 am

Mike Resseler wrote:Can you try to removal all those lines that you added in the sudoers besides veeamuser ALL=(ALL) NOPASSWD: ALL as a test?

I already tried that. I tried adding those lines because it didn't work.
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Sun Mar 26, 2017 8:49 pm

Mike Resseler wrote:Can you try to removal all those lines that you added in the sudoers besides veeamuser ALL=(ALL) NOPASSWD: ALL as a test?

And I removed them anyway to double check, but it's still failing the credentials test.

Can anyone suggest some diagnostics I can run on the Linux box to confirm it's set up correctly?
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby nitramd » Mon Mar 27, 2017 3:35 pm

Can you confirm what group the identity "veeamuser" is in? Change to the /etc directory then type "groups veeamuser".

The syntax to add a user to a group is: sudo usermod -a -G groupName userName so in your case it would look something like this: sudo usermod -a -G root veeamuser ; then run the groups command to verify that veeamuser is in the group "root"

I don't have a Linux box handy to check so I'm flying a little blind here.

-md
nitramd
Enthusiast
 
Posts: 36
Liked: 7 times
Joined: Thu Feb 16, 2017 8:05 pm

Re: Warnings when backing up Linux VMs

Veeam Logoby sg_sc » Mon Mar 27, 2017 8:17 pm

You should not need to make the user member of the root group or give it userid 0 if you plan to use sudo.
sg_sc
Enthusiast
 
Posts: 42
Liked: 8 times
Joined: Tue Mar 29, 2016 4:22 pm
Full Name: sg_sc

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Mon Mar 27, 2017 11:20 pm

nitramd wrote:Can you confirm what group the identity "veeamuser" is in? Change to the /etc directory then type "groups veeamuser".


That command returns this:
veeamuser : veeamuser root sudo
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby pshute » Mon Mar 27, 2017 11:29 pm

sg_sc wrote:You should not need to make the user member of the root group or give it userid 0 if you plan to use sudo.

Do you mean by ticking the "Elevate specified account to root" tick box? I would still need to enter the credentials of a root user. I decided it might be best to avoid that, as other IT staff "own" that box, and are likely to change the password without warning.

I did try ticking the box, still got the warning about root privileges.
pshute
Expert
 
Posts: 118
Liked: 8 times
Joined: Mon Nov 23, 2015 10:56 pm
Full Name: Peter Shute

Re: Warnings when backing up Linux VMs

Veeam Logoby nd39475 » Tue Mar 28, 2017 1:41 pm

in short this worked for us: (note the !requiretty) (found solution in forum somewhere)

useradd veeamuser
passwd veeamuser

visudo (if you don't like vi, you can use "EDITOR=nano visudo" [assuming nano is installed, it's an easier text editor])
add
Code: Select all
Defaults:veeamuser !requiretty
below the existing "Defaults requiretty"

also add
Code: Select all
veeamuser   ALL = NOPASSWD: ALL
below the existing "root ALL=(ALL) ALL"

Your /etc/ssh/sshd_config probably isn't blocking users, but research to make sure (& restart sshd if modified).
Don't forget to install mlocate (specifically required for file indexing).

In Veeam, we do "Elevate specified account to root".
nd39475
Influencer
 
Posts: 19
Liked: 2 times
Joined: Thu May 05, 2016 6:28 pm
Full Name: n d

Next

Return to VMware vSphere



Who is online

Users browsing this forum: No registered users and 75 guests