Backup agent for Linux servers and workstations on-premises or in the public cloud
ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Can VAL run inside an LXC?

Post by ovidiu » Jul 08, 2016 7:17 am

I was giving it a try and when installing saw this:

Code: Select all

root@bailey:/tmp/x64/deb# apt-get install dkms -u
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
  menu sudo linux-headers-686-pae linux-headers-amd64 linux-headers-generic linux-headers
  linux-image
The following NEW packages will be installed:
  dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 70.9 kB of archives.
After this operation, 347 kB of additional disk space will be used.
Get:1 http://debian.mirrors.ovh.net/debian/ jessie/main dkms all 2.2.0.3-2 [70.9 kB]
Fetched 70.9 kB in 0s (1,666 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 28643 files and directories currently installed.)
Preparing to unpack .../dkms_2.2.0.3-2_all.deb ...
Unpacking dkms (2.2.0.3-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up dkms (2.2.0.3-2) ...
Setting up veeamsnap (1.0.0.499) ...
Loading new veeamsnap-1.0.0.499 DKMS files...
First Installation: checking all kernels...
dpkg: warning: version '*-*' has bad syntax: version number does not start with digit
It is likely that 4.4.10-1-pve belongs to a chroot's host

PTide
Veeam Software
Posts: 4417
Liked: 361 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Can VAL run inside an LXC?

Post by PTide » Jul 08, 2016 11:37 am

Hi,

LXC container shares the kernel with the host and is not allowed to load kernel modules. Please install all required packages on the host's OS and try installing VAL inside the container again. Also please note that the product has not been fully tested for containers thus no guarantee it will work stable.

Thanks

ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Re: Can VAL run inside an LXC?

Post by ovidiu » Jul 08, 2016 12:08 pm

I certainly can give it a try so I would install dkms on the host first followed by veam or veamsnap? Which one of those 2 goes into the host and which into the guest?

dellock6
Veeam Software
Posts: 5505
Liked: 1522 times
Joined: Jul 26, 2009 3:39 pm
Full Name: Luca Dell'Oca
Location: Varese, Italy
Contact:

Re: Can VAL run inside an LXC?

Post by dellock6 » Jul 08, 2016 12:11 pm 1 person likes this post

veeamsnap is the component that compiles and loads the kernel module, so this one has to go for sure in the host. You can then try to run veeam in the guest.
Luca Dell'Oca
EMEA Cloud Architect @ Veeam Software

@dellock6
http://www.virtualtothecore.com/en/
vExpert 2011-2012-2013-2014-2015-2016-2017-2018
Veeam VMCE #1

PTide
Veeam Software
Posts: 4417
Liked: 361 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Can VAL run inside an LXC?

Post by PTide » Jul 08, 2016 12:15 pm

Luca is right - first install veeamsnap on the host, it should pull all packages it depends on automatically, including dkms. Afterwards you should be able to install veeam-1.0.0.499 package inside a container. Make sure that the kernel-headers and kernel versions match each other.

Thanks

ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Re: Can VAL run inside an LXC?

Post by ovidiu » Jul 10, 2016 4:43 pm

installed veamsnap in the host and veeam in the guest.
tried backing up:

Code: Select all

Backup session on bailey [0] %                                 Status: Failed




     Summary                                Data

     Duration:           00:00:00           Processed:          ---
     Processing rate:    ---                Read:               ---
     Bottleneck:         ---                Transferred:        ---


     Time                Action                                        Duration

     2016-07-10 18:41:40 Job started at 2016-07-10 18:41:40
     2016-07-10 18:41:40 Starting backup
     2016-07-10 18:41:40 [error] No objects to backup.
     2016-07-10 18:41:40 [error] Failed to perform backup
I can supply all the logs if anyone is keen to look into this?
veeam backup runs fine on the host as I just ran a test backup.

vmniels
Veeam Software
Posts: 2023
Liked: 447 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Can VAL run inside an LXC?

Post by vmniels » Jul 10, 2016 7:38 pm

Which type of backup did u configure ? Entire computer, volume or file?
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be

ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Re: Can VAL run inside an LXC?

Post by ovidiu » Jul 10, 2016 7:46 pm

entire server

PTide
Veeam Software
Posts: 4417
Liked: 361 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Can VAL run inside an LXC?

Post by PTide » Jul 11, 2016 12:13 pm

I suspect that veeam found no block devices inside the guest thus backup session has failed. Could you please post an output of lsblk -af. Have you tried running a file level backup inside the guest?

Thanks

ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Re: Can VAL run inside an LXC?

Post by ovidiu » Jul 11, 2016 12:30 pm

This is from the guest as requested:

Code: Select all

root@bailey:~#  lsblk -af
lsblk: dm-0: failed to get device path
lsblk: dm-0: failed to get device path
NAME   FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1
├─sda2
├─sda3
└─sda4
loop0
loop1                    /
loop2
loop3
loop4
loop5
loop6
loop7
root@bailey:~#
A file level backup also failed:

Code: Select all

Backup session on bailey [0] %                                    Status: Failed


                                                                                               
       Summary                                  Data

       Duration:           00:00:03             Processed:          ---
       Processing rate:    ---                  Read:               ---                               Bottleneck:         ---                  Transferred:        ---                        

       Time                Action                                           Duration

       2016-07-11 14:28:57 Job started at 2016-07-11 14:28:57
       2016-07-11 14:28:57 Starting backup
       2016-07-11 14:28:57 [error] Failed to create volume snapshot         00:00:02
       2016-07-11 14:28:59 [error] Bad file descriptor
       2016-07-11 14:28:59 [error] Failed to perform backup
Let me know if you would like to see logs.

PTide
Veeam Software
Posts: 4417
Liked: 361 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Can VAL run inside an LXC?

Post by PTide » Jul 11, 2016 4:59 pm

I have to conclude that the current version of VAL cannot backup containers, indeed. It was developed not for container-based virtualization but rather for a fully-virtualized and physical hosts. Thank you for raising the topic, it will be interesting to see how many people are going to request a support for conatiners. If many are interested then we certainly will find the way to fulfill the request.

Thank you for your time and interest!

ovidiu
Influencer
Posts: 19
Liked: 1 time
Joined: Jul 07, 2016 3:07 pm
Contact:

Re: Can VAL run inside an LXC?

Post by ovidiu » Jul 11, 2016 5:02 pm 1 person likes this post

Thanks for the feedback. (I got your PM about logs but haven't gotten around to send you a link yet).
I'm very interested in LXC as I switched from openvz. I only have very few (fully-virtualized) KVMs left running.

futureweb
Enthusiast
Posts: 67
Liked: 6 times
Joined: Sep 03, 2015 12:15 am
Full Name: Patrick
Contact:

[MERGED] Virtuozzo compatibility?

Post by futureweb » Jul 25, 2016 8:16 am

Hello,

will Veeam Linux Agent be compatible with Virtuozzo Container Virtualization? (https://virtuozzo.com/)
Containers reside on EXT4 formatted ploop device which is presented to Containers. Snapshot functionality is already given at ploop Level.

Hope on some insight into this.

thx
Andreas Schnederle-Wagner

vmniels
Veeam Software
Posts: 2023
Liked: 447 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Can VAL run inside an LXC?

Post by vmniels » Jul 25, 2016 8:48 am

Currently you can backup the host without any problems however the containers can't be backed up. This is due the fact that they share devices with their host and we can't access these inside the containers. Also have a look at this thread.
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be

futureweb
Enthusiast
Posts: 67
Liked: 6 times
Joined: Sep 03, 2015 12:15 am
Full Name: Patrick
Contact:

Re: Can VAL run inside an LXC?

Post by futureweb » Jul 25, 2016 8:57 am

Hello vmniels,
thank you for your fast reply!
As far as I know - with Virtuozzo 6+ there are no more hard-links/links to templates outside of the Container (this was the "old" behaviour before Virtuozzo 6 with VZFS - also openVZ still does is that way if I remember correctly)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests