problems on ubuntu 16.04 LTS (linode.com VPS)

Backup agent for Linux servers and workstations on-premises or in the public cloud

problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Sun Nov 27, 2016 9:05 pm

When installing Veeamsnap .deb package (x64) on an ubuntu 16.04 LTS virtual machine hosted on the linode.com service I get the following warnings.
If I'm not mistaken the VMs at linode.com run on KVM virtualization.

Code: Select all
root@ubuntu:/tmp# dpkg -i veeamsnap*
(Reading database ... 32281 files and directories currently installed.)
Preparing to unpack veeamsnap_1.0.0.678_all.deb ...

------------------------------
Deleting module version: 1.0.0.678
completely from the DKMS tree.
------------------------------
Done.
Unpacking veeamsnap (1.0.0.678) over (1.0.0.678) ...
Setting up veeamsnap (1.0.0.678) ...
Loading new veeamsnap-1.0.0.678 DKMS files...
dpkg: warning: version '4.8.6-x86_64' has bad syntax: invalid character in revision number
It is likely that 4.8.6-x86_64-linode78 belongs to a chroot's host
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.


Also had dependency errors but the suggested "apt-get install -f" resolved it.

The packages still seem to get installed:
Code: Select all
root@ubuntu:/tmp# dpkg -l | grep veeam
ii  veeam                          1.0.0.678                       amd64        Veeam Agent for Linux
ii  veeamsnap                      1.0.0.678                       all          Veeam Agent for Linux kernel module


However the backup job then immediately fails at creating snapshot as I can see in my veeam B&R console:
Image

Everything else seems to function as I was able to create to job and point it to my lab install of veeam B&R on the other side of the planet with no issues (ubuntu is in tokyo, veeam B&R in montreal). I'm assuming because of the veeamsnap install warnings, it's not properly installed/configured so can't do any snapshots.

If you need logs or other system info please provide a forum username or email I can send to, do not feel like putting that info in public.
Thanks,
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby vmniels » Mon Nov 28, 2016 7:28 am

We'll need the logs from /var/log/veeam to see why the loading of the module failed.
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1440
Liked: 318 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby PTide » Mon Nov 28, 2016 10:53 am

Also please provide dmesg -T output as kernel logs are also needed.

Thanks
PTide
Veeam Software
 
Posts: 2884
Liked: 236 times
Joined: Tue May 19, 2015 1:46 pm

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Mon Nov 28, 2016 2:29 pm

I've sent the log folder and a text file with the output of dmesg -T to both of you.
Thanks,
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby tsightler » Mon Nov 28, 2016 9:55 pm

I believe this error message is as simple as the fact that the kernel source package is not installed so the module could not be compiled:
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.


I'd try running the following to install the proper headers:

Code: Select all
sudo apt-get install linux-headers-`uname -r`


Then running the following to attempt to rebuild the module:

Code: Select all
sudo dpkg-reconfigure veeamsnap
tsightler
Veeam Software
 
Posts: 4712
Liked: 1716 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby vmniels » Tue Nov 29, 2016 8:29 am

Please try what Tom stated, could you also try the following afterwards:
lsmod | grep veeam
modprobe veeamsnap

And post the output from that? Did you by any chance reboot the server after the install?
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1440
Liked: 318 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby PTide » Tue Nov 29, 2016 11:29 am

I believe this error message is as simple as the fact that the kernel source package is not installed so the module could not be compiled
Oh, I must have overlooked that in the error message...

However, even if you manage to install the module it won't work because BETA2 does not support kernel 4.8, which, I believe, is exactly the one that DKMS thinks you are using ATM:

It is likely that 4.8.6-x86_64-linode78 belongs to a chroot's host

Are you trying to install it in a chrooted environment?

If you'd like to test out the version that supports kernel 4.8 I could PM share a link with you, just let me know.

Thanks
PTide
Veeam Software
 
Posts: 2884
Liked: 236 times
Joined: Tue May 19, 2015 1:46 pm

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Tue Nov 29, 2016 2:31 pm

I would be interested in testing the one compatible 4.8, but not sure I will be able to test immediately. On linode.com it is not too fun to get the kernel source package installed, a lot of steps to go through and they suggest doing a backup first... which is what I want Veeam for. Catch 22 here :roll:
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby PTide » Tue Nov 29, 2016 4:40 pm

Then let's try to install the BETA2 module manually and see if it will work:

- extract all source files from the veeamsnap package and place them into a directory on the VM
- cd into the directory and enter the following:
Code: Select all
make all
make load

- after that try to install 'veeam' package manually and check what dependencies are not met, install all of them manually (except 'veeamsnap')
- install 'veeam' package manually (make dpkg to ignore 'veeamsnap' dependency):

Code: Select all
dpkg --install --ignore-depends=veeamsnap veeam_1.0.0.678_amd64.deb
(synthax from the top of my head, you'll need to check the man page for dpkg)

Please let me know how it goes.

Thanks
PTide
Veeam Software
 
Posts: 2884
Liked: 236 times
Joined: Tue May 19, 2015 1:46 pm

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Tue Nov 29, 2016 9:01 pm

Before seeing your message I did the linode.com procedure for changing the kernel version
Code: Select all
root@ubuntu:/var/log/veeam# uname -a
Linux ubuntu 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

And install was a success without errors.

Only issue I have now is for some reason the linux agent is trying to connect to the LAN IP of my test VBR server (port 2500) instead of public, but only after the backup starts. During the configuration, connection is successful and allows me to select the repo.
Code: Select all
     2016-11-29 20:58:26 Creating volume snapshot                                                                                                                  00:00:00
     2016-11-29 20:58:32 [error] Failed to connect to the port [192.168.5.33:2500].
     2016-11-29 20:58:32 [error] Failed to perform backup


192.168.5.33 is the LAN IP of our lab's VBR server.
I will look at logs on both ends to try and see what is going on.
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby tsightler » Tue Nov 29, 2016 9:11 pm

Yeah, I just fired up a Linode so that I could poke at this and I came to the conclusion that switching to the distro provided kernel is definitely the easiest way. It's nice that Linode provides a simple way to use newer mainline kernels, but the way they do it makes it really difficult to use 3rd party modules. The procedure to switch to the distro kernel is quite straightforward.

Regarding your other issue, that's somewhat expected if you've either a) added the repository/gateway by the IP address, or b) the VBR server itself resolves it's name to the LAN address. The problem is that the VBR server resolves the IP of the repository and passes that to VAL. You can make this work, but you have to trick the local VBR server into thinking it lives at the public IP address so that it sends that address to VAL when it tells it to connect back.
tsightler
Veeam Software
 
Posts: 4712
Liked: 1716 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Wed Nov 30, 2016 2:10 pm

tsightler wrote:Regarding your other issue, that's somewhat expected if you've either a) added the repository/gateway by the IP address, or b) the VBR server itself resolves it's name to the LAN address. The problem is that the VBR server resolves the IP of the repository and passes that to VAL. You can make this work, but you have to trick the local VBR server into thinking it lives at the public IP address so that it sends that address to VAL when it tells it to connect back.


In our test scenario the VBR is itself the backup repo with local storage, and all is done by DNS names rather than IP. Is the linux agent not intended to use traditional backup repos on the VBR server and instead only use the VBR as a bridge to cloud connect repos? The only way I can see it working like you said is to trick it to resolve the public IP, which would be either playing with local DNS zones or the VBR's hosts file, both of which don't seem like something anyone would ever want to do in a production environment, especially if the VBR is managing local backups as well.

Added note: only documentation we've been able to find for setup is this: https://www.veeam.com/blog/how-to-backup-linux.html which sadly doesn't cover the option of pointing to a VBR server.

Thanks,
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby vmniels » Wed Nov 30, 2016 2:13 pm

You can configure the agent to send backup to a Veeam repository and then configure a backup copy job to your cloud connect service provider. All you need to configure on the repository is agent settings and make sure you are running VBR 9.5
VCP-DCV
Veeam Certified Engineer
http://foonet.be
vmniels
Veeam Software
 
Posts: 1440
Liked: 318 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby tsightler » Thu Dec 01, 2016 2:20 am 1 person likes this post

I might be mistaken, but I was under the impression that he was just trying to get his cloud based Linode server backed up to his local VBR server, not to a service provider.

VBR is really designed to work on a LAN, it doesn't really deal well with NAT or dual-homed public/private setups. That's part of what Cloud Connect is designed to address, however, I don't believe that v1 of the Linux agent will have direct support for Cloud Connect repo's, although my understanding is that it is planned.

However, you can get creative and make it work, but you have to do something so that the VBR server sends the public IP address to the VAL client to tell it to connect. Here's a document I put together that describes a way to do direct backup from Endpoint/VAL to a VBR repo behind NAT:

https://drive.google.com/open?id=0B8s_E ... 0FNUHhKNVk

I put this together to allow my laptop to backup while I roam around without me having to bring up my VPN connection to my home network, but I've had a couple of other clients set this up for cases where they have NAT between endpoints and the VBR server, which sometimes happens even internally.

The same technique can be used for public/private IP, but it's a little more difficult when the VBR server is the repo. You can probably still be creative and do something like manually add a secondary repo to the VBR server itself using it's own public IP, but I haven't tried this.
tsightler
Veeam Software
 
Posts: 4712
Liked: 1716 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: problems on ubuntu 16.04 LTS (linode.com VPS)

Veeam Logoby dgomes » Thu Dec 01, 2016 3:07 am

This seems to do exactly what I was trying to test. Although I don't think it's something I will be able to sell to our customers having to mess around so much with public IP and such. They currently back up through SSH their files / configs from cloud servers -> local using scripts. It's fun to play around with for a person like me in the lab, but I will likely not get this to pass in majority of production environment that I can think of.

Is there any plans to make VBR understand that the agent is not local and to pass the correct info? I guess the best way to describe it would be a reverse of a cloud connect for agents.
dgomes
Influencer
 
Posts: 20
Liked: 7 times
Joined: Sat Jan 17, 2015 7:16 pm
Full Name: David

Next

Return to Veeam Agent for Linux



Who is online

Users browsing this forum: Google [Bot] and 2 guests