Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail when compiling with lxc tag #474

Open
giacomo270197 opened this issue Apr 25, 2019 · 8 comments
Open

Build fail when compiling with lxc tag #474

giacomo270197 opened this issue Apr 25, 2019 · 8 comments

Comments

@giacomo270197
Copy link

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?

@sammynx
Copy link
Collaborator

sammynx commented Apr 25, 2019

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.

@giacomo270197
Copy link
Author

I see. The build command, however, fails also if I run it outside the Docker container

@sammynx
Copy link
Collaborator

sammynx commented Apr 25, 2019

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.

@nl5887
Copy link
Contributor

nl5887 commented May 27, 2019

@giacomo270197 were you able to build Honeytrap with the lxc tag?

@giacomo270197
Copy link
Author

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.

@lconceicao
Copy link

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

@nl5887
Copy link
Contributor

nl5887 commented Jul 6, 2019

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

@0xdeviner
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants