Build fail when compiling with lxc tag
Hello,
I am trying to build the docker container with the Dockerfile provided. It all works until I add the "lxc" flag.
When I do, I get:
director/lxc/lxc_linux.go:107:5: undefined: lxc.Container
This is similar to #461, with the difference that my error occurs independently from the Go version I use (tried with 1.11.1-6, 1.12.1, latest), and it only happens if I try compiling with the lxc flag. Everything works otherwise.
Any idea?
Hi, thanks for your comments. we are not supporting the lxc switch inside a docker container.
If you want to run Honeytrap with lxc in a container you can have a look at .travis file which builds a container with lxc support. Basically you need the lxc and lxc-dev` packages for the container OS.
I see. The build command, however, fails also if I run it outside the Docker container
You also need the lxc and lxc-dev packages for the OS running inside the container.
I'm not sure if they exist for Alpine Linux. We use Ubuntu with the lxc packages from ppa:ubuntu-lxc/stable for testing.
@giacomo270197 were you able to build Honeytrap with the lxc tag?
Hi,
unfortunately, I wasn't.
I did install lxc and lxc-dev on a Debian 9 OS.
I currently gave up on using it for the project I was working for. I'll try again and follow up in a few weeks.
Hi,
I'm also having trouble on compiling with lxc tag and I'm not using containers.
director/lxc/lxc_linux.go:107:5: undefined: lxc.Container
The strange thing is, lxc builds are being checked within Travis: https://travis-ci.org/honeytrap/honeytrap/jobs/538895770#L1473. Compile checks isn’t failing. Do you have more information about the environment you’re using? @lconceicao
Hey,
Seems the problem hasn't been fixed so far. I am using lxc to compile and getting the same error.
# github.com/honeytrap/honeytrap/director/lxc
director/lxc/lxc_linux.go:107:5: undefined: lxc.Container
PS: I have tried above-suggested solutions and with go version 11.x.x, 12.x.x, 13.x.x, 14.x.x Would be really helpful if it can be fixed @nl5887 Also, why there is no support/guide for lxc container-based honeytrap in the official docs?