Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-06-10 Thread coolnodje
Hi Nikola,

getting back to you about including lxc templates in the debian distrib:

It seems debian/control already contains your gist (exect maybe that the
"Replaces" and "Breaks" version are different: "lxc (<<
0.8.0~rc1-4ubuntu43)" but it'd probably not make any difference )

But still, it doesn't include the templates when building.

Everything seems ready to be compiled in lxc/templates but how do you
include it in the deb package creation?

configure.ac seems to include templates/Makefile so I guess it should be
built, i dont' get why not.

I could copy /usr/share/lxc/templates from an Ubuntu install, but I'd be
nice to know how to include it during build.

Sorry, I've never created a deb package and I'm not even too familiar
with builds under linux

Cheers

> Nikola Kotur 
> 22 May 2014 17:33
> On Wed, 21 May 2014 18:05:44 +0800
> coolnodje  wrote:
>
>> I realize there's no template coming with your Debian packaging
>> (/usr/share/lxc/templates is empty).
>> Was it intentional?
>
> Yes, I don't need templates, so I didn't add them to the package.
>
> In case you do want to build them, add this to debian/control:
>
> https://gist.github.com/kotnik/48ca8d5145854d096a83
>
>> I was also wondering why dpkg made me install dnsmasq-base (how does
>> it compare to dnsmasq?) but not dnsmasq, which is needed with for the
>> default /etc/default/lxc-net config.
>
> dnsmasq-base package contains the executable and documentation, dnsmasq
> is just the tooling needed to run it as a daemon.
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 16 May 2014 11:26
> apt-get remove lxc did the job before compiling 1.0.3.
>
> there's nothing left in /usr/bin and `which lxc-create` confirms it
> comes from /usr/local/bin
>
> So I understand, as expected, there shouldn't be any discrepancy
> between the Ubuntu 1.0.3 packaged version and the one I compiled on
> Debian, right?
>
> Something must have gone wrong then: could the option I used
> --with-distro=debian make a difference during ./configure?
>
> Also, I'd like to have everything in standard "packaged lxc" location
> except for the binaries. Would ./configure --prefix=/
> --bindir=/usr/local would do ?
> The INSTALL file in the distrib is really well done and useful but a
> confirmation would be helpful.
>
> Thanks
>
> coolnodje 
> 15 May 2014 18:34
> Hi,
>
> I've just compiled1.0.3 from source on Debian 7.5, without trouble.
>
> But I still get a behaviour that seem closer to v~0.8 that I got from
> apt-get beforehand, than to the version coming with Ubuntu 14.04.
>
> It's also not consistent with the https://linuxcontainers.org "How to
> use it?":
> no `lxc-ls --fancy` option, no --version available, no man page...
>
> Did I do something wrong when compiling ?
>
> ./configure --with-distro=debian
> make
> make install
> ldconfig
>
> cheers
> -nodje
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-22 Thread Nikola Kotur
On Wed, 21 May 2014 18:05:44 +0800
coolnodje  wrote:

> I realize there's no template coming with your Debian packaging
> (/usr/share/lxc/templates is empty).
> Was it intentional?

Yes, I don't need templates, so I didn't add them to the package.

In case you do want to build them, add this to debian/control:

https://gist.github.com/kotnik/48ca8d5145854d096a83

> I was also wondering why dpkg made me install dnsmasq-base (how does
> it compare to dnsmasq?) but not dnsmasq, which is needed with for the
> default /etc/default/lxc-net config.

dnsmasq-base package contains the executable and documentation, dnsmasq
is just the tooling needed to run it as a daemon.

-- 
Nikola Kotur

http://blog.kotur.org
https://onename.io/kotnik


signature.asc
Description: PGP signature
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-21 Thread coolnodje
Seems that lua support is also necessary to get some functionality like
lxc-top.

@kotnic, I realize there's no template coming with your Debian packaging
(/usr/share/lxc/templates is empty).
Was it intentional? It seems to be included in the configure file
though. On Ubuntu /usr/share/lxc/templates weight 332K only with all
major template included.

I was also wondering why dpkg made me install dnsmasq-base (how does it
compare to dnsmasq?) but not dnsmasq, which is needed with for the
default /etc/default/lxc-net config.

> Wojciech Arabczyk 
> 20 May 2014 20:43
> As far as i remember, my hand compilation experience shows, that it is
> really necessary
> to build against python3 - otherwise all those "--fancy" options don't
> work.
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 20 May 2014 18:31
> done, this is great and seems to be working fine, at least it's as
> expected.
> I'll copy in some container now and check that everything is all right.
>
> I understand now I wasn't probably enabling enough option during
> ./configure, but it seemed odd that even the very basic options like
> --version would not be enabled.
>
> Thanks a lot
>
> Nikola Kotur 
> 20 May 2014 17:41
> On Tue, 20 May 2014 17:36:39 +0800
>
> Yes I do:
>
> (platform)root@lab:~# lxc-attach --version
> 1.0.3
>
> (platform)root@lab:~# lxc-ls --fancy
> NAME STATE IPV4 IPV6 AUTOSTART
> --
> ...
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 20 May 2014 17:36
> Hi,
>
> you're right on time, I was just beginning to compile lxc from the
> master branch and looking at options.
> Thanks for the package, it sounds great.
>
> Just to make sure, since I've already tried to install 1.0.3 from
> source and didn't get something consistent with the doc: do you get
> commands that actually behave like described in linuxcontainers.org?
> I mean `lxc-ls --fancy`, `--version` option available, etc... working
> like under Ubuntu 1.0.3 package?
>
> cheers
>
> Nikola Kotur 
> 20 May 2014 17:02
> On Fri, 16 May 2014 10:43:11 +0200
>
> If needed, one can use my Debian packaging config here:
>
> https://github.com/kotnik/lxc/tree/debian-1.0.3
>
> That is a clean 1.0.3 version with functioning debian/ package
> directory and it builds with python3 but without lua (since I don't
> need it). To quickly build and test under wheezy:
>
> dpkg-buildpackage -b -uc -us
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-20 Thread Wojciech Arabczyk
As far as i remember, my hand compilation experience shows, that it is
really necessary
to build against python3 - otherwise all those "--fancy" options don't work.
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-20 Thread coolnodje
done, this is great and seems to be working fine, at least it's as expected.
I'll copy in some container now and check that everything is all right.

I understand now I wasn't probably enabling enough option during
./configure, but it seemed odd that even the very basic options like
--version would not be enabled.

Thanks a lot

> Nikola Kotur 
> 20 May 2014 17:41
> On Tue, 20 May 2014 17:36:39 +0800
>
> Yes I do:
>
> (platform)root@lab:~# lxc-attach --version
> 1.0.3
>
> (platform)root@lab:~# lxc-ls --fancy
> NAME STATE IPV4 IPV6 AUTOSTART
> --
> ...
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> Nikola Kotur 
> 20 May 2014 17:02
> On Fri, 16 May 2014 10:43:11 +0200
>
> If needed, one can use my Debian packaging config here:
>
> https://github.com/kotnik/lxc/tree/debian-1.0.3
>
> That is a clean 1.0.3 version with functioning debian/ package
> directory and it builds with python3 but without lua (since I don't
> need it). To quickly build and test under wheezy:
>
> dpkg-buildpackage -b -uc -us
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> Wojciech Arabczyk 
> 16 May 2014 16:43
> It would be best, if you'd try to create a deb package from the source
> package in sid,
> and then install via dpkg. Sorry, but i don't have time to provide
> specific instructions.
> You'll have to dig it out yourself.
>
> With kind regards,
>
>
>
>
>
> -- 
> pozdrawiam
> Wojciech Arabczyk
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 16 May 2014 11:26
> apt-get remove lxc did the job before compiling 1.0.3.
>
> there's nothing left in /usr/bin and `which lxc-create` confirms it
> comes from /usr/local/bin
>
> So I understand, as expected, there shouldn't be any discrepancy
> between the Ubuntu 1.0.3 packaged version and the one I compiled on
> Debian, right?
>
> Something must have gone wrong then: could the option I used
> --with-distro=debian make a difference during ./configure?
>
> Also, I'd like to have everything in standard "packaged lxc" location
> except for the binaries. Would ./configure --prefix=/
> --bindir=/usr/local would do ?
> The INSTALL file in the distrib is really well done and useful but a
> confirmation would be helpful.
>
> Thanks
>
> Wojciech Arabczyk 
> 15 May 2014 20:06
> Hi,
>
> have you uninstalled the packaged version of lxc prior to installing
> the version from sources?
>
> Most probably, the /usr/bin lxc takes precedence to the one you
> installed to /usr/local prefix from the sources,
>
> cheers,
>
>
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-20 Thread Nikola Kotur
On Tue, 20 May 2014 17:36:39 +0800
coolnodje  wrote:

> Just to make sure, since I've already tried to install 1.0.3 from
> source and didn't get something consistent with the doc: do you get
> commands that actually behave like described in linuxcontainers.org?
> I mean `lxc-ls --fancy`, `--version` option available, etc... working
> like under Ubuntu 1.0.3 package?

Yes I do:

(platform)root@lab:~# lxc-attach --version
1.0.3

(platform)root@lab:~# lxc-ls --fancy
NAME  STATE  IPV4  IPV6  AUTOSTART  
--
...


-- 
Nikola Kotur

http://blog.kotur.org
https://onename.io/kotnik


signature.asc
Description: PGP signature
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-20 Thread coolnodje
Hi,

you're right on time, I was just beginning to compile lxc from the
master branch and looking at options.
Thanks for the package, it sounds great.

Just to make sure, since I've already tried to install 1.0.3 from source
and didn't get something consistent with the doc: do you get commands
that actually behave like described in linuxcontainers.org?
I mean `lxc-ls --fancy`, `--version` option available, etc... working
like under Ubuntu 1.0.3 package?

cheers

> Nikola Kotur 
> 20 May 2014 17:02
> On Fri, 16 May 2014 10:43:11 +0200
>
> If needed, one can use my Debian packaging config here:
>
> https://github.com/kotnik/lxc/tree/debian-1.0.3
>
> That is a clean 1.0.3 version with functioning debian/ package
> directory and it builds with python3 but without lua (since I don't
> need it). To quickly build and test under wheezy:
>
> dpkg-buildpackage -b -uc -us
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> Wojciech Arabczyk 
> 16 May 2014 16:43
> It would be best, if you'd try to create a deb package from the source
> package in sid,
> and then install via dpkg. Sorry, but i don't have time to provide
> specific instructions.
> You'll have to dig it out yourself.
>
> With kind regards,
>
>
>
>
>
> -- 
> pozdrawiam
> Wojciech Arabczyk
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 16 May 2014 11:26
> apt-get remove lxc did the job before compiling 1.0.3.
>
> there's nothing left in /usr/bin and `which lxc-create` confirms it
> comes from /usr/local/bin
>
> So I understand, as expected, there shouldn't be any discrepancy
> between the Ubuntu 1.0.3 packaged version and the one I compiled on
> Debian, right?
>
> Something must have gone wrong then: could the option I used
> --with-distro=debian make a difference during ./configure?
>
> Also, I'd like to have everything in standard "packaged lxc" location
> except for the binaries. Would ./configure --prefix=/
> --bindir=/usr/local would do ?
> The INSTALL file in the distrib is really well done and useful but a
> confirmation would be helpful.
>
> Thanks
>
> Wojciech Arabczyk 
> 15 May 2014 20:06
> Hi,
>
> have you uninstalled the packaged version of lxc prior to installing
> the version from sources?
>
> Most probably, the /usr/bin lxc takes precedence to the one you
> installed to /usr/local prefix from the sources,
>
> cheers,
>
>
>
> coolnodje 
> 15 May 2014 18:34
> Hi,
>
> I've just compiled1.0.3 from source on Debian 7.5, without trouble.
>
> But I still get a behaviour that seem closer to v~0.8 that I got from
> apt-get beforehand, than to the version coming with Ubuntu 14.04.
>
> It's also not consistent with the https://linuxcontainers.org "How to
> use it?":
> no `lxc-ls --fancy` option, no --version available, no man page...
>
> Did I do something wrong when compiling ?
>
> ./configure --with-distro=debian
> make
> make install
> ldconfig
>
> cheers
> -nodje
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-20 Thread Nikola Kotur
On Fri, 16 May 2014 10:43:11 +0200
Wojciech Arabczyk  wrote:

> It would be best, if you'd try to create a deb package from the source
> package in sid, and then install via dpkg. Sorry, but i don't have
> time to provide specific instructions. You'll have to dig it out
> yourself.

If needed, one can use my Debian packaging config here:

https://github.com/kotnik/lxc/tree/debian-1.0.3

That is a clean 1.0.3 version with functioning debian/ package
directory and it builds with python3 but without lua (since I don't
need it). To quickly build and test under wheezy:

dpkg-buildpackage -b -uc -us

-- 
Nikola Kotur

http://blog.kotur.org
https://onename.io/kotnik


signature.asc
Description: PGP signature
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-16 Thread coolnodje
I'm willing to try but I don't see how a deb package would be different
from the latest source install. What's the idea?
1.0.3-1 seems to be more recent but I doubt it'd be much different from
1.0.3.
How about compiling from git repo HEAD?

thanks
> Wojciech Arabczyk 
> 16 May 2014 16:43
> It would be best, if you'd try to create a deb package from the source
> package in sid,
> and then install via dpkg. Sorry, but i don't have time to provide
> specific instructions.
> You'll have to dig it out yourself.
>
> With kind regards,
>
>
>
>
>
> -- 
> pozdrawiam
> Wojciech Arabczyk
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> coolnodje 
> 16 May 2014 11:26
> apt-get remove lxc did the job before compiling 1.0.3.
>
> there's nothing left in /usr/bin and `which lxc-create` confirms it
> comes from /usr/local/bin
>
> So I understand, as expected, there shouldn't be any discrepancy
> between the Ubuntu 1.0.3 packaged version and the one I compiled on
> Debian, right?
>
> Something must have gone wrong then: could the option I used
> --with-distro=debian make a difference during ./configure?
>
> Also, I'd like to have everything in standard "packaged lxc" location
> except for the binaries. Would ./configure --prefix=/
> --bindir=/usr/local would do ?
> The INSTALL file in the distrib is really well done and useful but a
> confirmation would be helpful.
>
> Thanks
>
> Wojciech Arabczyk 
> 15 May 2014 20:06
> Hi,
>
> have you uninstalled the packaged version of lxc prior to installing
> the version from sources?
>
> Most probably, the /usr/bin lxc takes precedence to the one you
> installed to /usr/local prefix from the sources,
>
> cheers,
>
>
>
> coolnodje 
> 15 May 2014 18:34
> Hi,
>
> I've just compiled1.0.3 from source on Debian 7.5, without trouble.
>
> But I still get a behaviour that seem closer to v~0.8 that I got from
> apt-get beforehand, than to the version coming with Ubuntu 14.04.
>
> It's also not consistent with the https://linuxcontainers.org "How to
> use it?":
> no `lxc-ls --fancy` option, no --version available, no man page...
>
> Did I do something wrong when compiling ?
>
> ./configure --with-distro=debian
> make
> make install
> ldconfig
>
> cheers
> -nodje
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-16 Thread Wojciech Arabczyk
It would be best, if you'd try to create a deb package from the source
package in sid,
and then install via dpkg. Sorry, but i don't have time to provide specific
instructions.
You'll have to dig it out yourself.

With kind regards,


On 16 May 2014 05:26, coolnodje  wrote:

> apt-get remove lxc did the job before compiling 1.0.3.
>
> there's nothing left in /usr/bin and `which lxc-create` confirms it comes
> from /usr/local/bin
>
> So I understand, as expected, there shouldn't be any discrepancy between
> the Ubuntu 1.0.3 packaged version and the one I compiled on Debian, right?
>
> Something must have gone wrong then: could the option I used
> --with-distro=debian make a difference during ./configure?
>
> Also, I'd like to have everything in standard "packaged lxc" location
> except for the binaries. Would ./configure --prefix=/ --bindir=/usr/local
> would do ?
> The INSTALL file in the distrib is really well done and useful but a
> confirmation would be helpful.
>
> Thanks
>
>   Wojciech Arabczyk 
>  15 May 2014 20:06
> Hi,
>
> have you uninstalled the packaged version of lxc prior to installing
> the version from sources?
>
> Most probably, the /usr/bin lxc takes precedence to the one you
> installed to /usr/local prefix from the sources,
>
> cheers,
>
>
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>



-- 
pozdrawiam
Wojciech Arabczyk
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-15 Thread coolnodje
apt-get remove lxc did the job before compiling 1.0.3.

there's nothing left in /usr/bin and `which lxc-create` confirms it
comes from /usr/local/bin

So I understand, as expected, there shouldn't be any discrepancy between
the Ubuntu 1.0.3 packaged version and the one I compiled on Debian, right?

Something must have gone wrong then: could the option I used
--with-distro=debian make a difference during ./configure?

Also, I'd like to have everything in standard "packaged lxc" location
except for the binaries. Would ./configure --prefix=/
--bindir=/usr/local would do ?
The INSTALL file in the distrib is really well done and useful but a
confirmation would be helpful.

Thanks

> Wojciech Arabczyk 
> 15 May 2014 20:06
> Hi,
>
> have you uninstalled the packaged version of lxc prior to installing
> the version from sources?
>
> Most probably, the /usr/bin lxc takes precedence to the one you
> installed to /usr/local prefix from the sources,
>
> cheers,
>
>
>
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] 1.0.3 on Debian 7.5 not consistent with documentation

2014-05-15 Thread Wojciech Arabczyk
Hi,

have you uninstalled the packaged version of lxc prior to installing
the version from sources?

Most probably, the /usr/bin lxc takes precedence to the one you
installed to /usr/local prefix from the sources,

cheers,

On 15 May 2014 12:34, coolnodje  wrote:
> Hi,
>
> I've just compiled1.0.3 from source on Debian 7.5, without trouble.
>
> But I still get a behaviour that seem closer to v~0.8 that I got from
> apt-get beforehand, than to the version coming with Ubuntu 14.04.
>
> It's also not consistent with the https://linuxcontainers.org "How to
> use it?":
> no `lxc-ls --fancy` option, no --version available, no man page...
>
> Did I do something wrong when compiling ?
>
> ./configure --with-distro=debian
> make
> make install
> ldconfig
>
> cheers
> -nodje
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



-- 
pozdrawiam
Wojciech Arabczyk
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users