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

LXC container support without LXD #552

Merged
merged 3 commits into from
Dec 18, 2017

Conversation

mai346
Copy link
Contributor

@mai346 mai346 commented Dec 4, 2017

What did you implement:

LXC container support without LXD

How did you implement it:

Container type "lxc" has been added.
We assume an environment where LXD is not installed, so use "lxc-ls" command and "lxc-attach" command.

If old style settings are left in the container, warnings are inherently output to STDERR.
STDERR is redirected to "/dev/null" because it mixes with STDOUT during parsing.

Just like any other container (Docker and LXD), you need to connect to the host as root or a user with the required privileges.

How can we verify it:

It is possible to test in environments where "lxc-ls" and "lxc-attach" can be used.

I tested on Proxmox VE 5.1 (Debian 9 based virtualization host).

Todos:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@mai346 mai346 mentioned this pull request Dec 4, 2017
@kotakanbe
Copy link
Member

@mai346
Thanks for sending P/R.

Can you fix the README too?

@mai346
Copy link
Contributor Author

mai346 commented Dec 12, 2017

tested on CentOS 6.9 + lxc-1.0.11-1 (Fedora EPEL)

@kotakanbe kotakanbe merged commit 0e87360 into future-architect:master Dec 18, 2017
@kotakanbe
Copy link
Member

Many Thanks!

kotakanbe added a commit that referenced this pull request Jan 10, 2018
* master:
  Fixed panic occurred when blank line continued in changelog (#569)
  Fixed Typo (#574)
  fix typo(BackSpace) in README.ja.md (#576)
  Fix a bug of sending to closed socket while oval access via HTTP #578 (#579)
  fix typo in reports/s3.go (#573)
  LXC container support without LXD (#552)
  Support Amazon Linux2 (#562)
  Fix #548 and #557 - RHEL's Fast Scan no longer required internet connection and root privilege (#559)
  Change error handling of "Reboot Required" detection (#556)
  Fix some RPM related commands failed in the container (#554)
  travis: update go version (#555)
  Add more kernel related packages (Fix #541) (#551)
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

Successfully merging this pull request may close these issues.

2 participants