opennebula / addon-lxcone Goto Github PK
View Code? Open in Web Editor NEWThis addon gives Opennebula the posibility to manage LXC containers. It includes virtualization and monitoring drivers.
This addon gives Opennebula the posibility to manage LXC containers. It includes virtualization and monitoring drivers.
so far, a raw lxc converted to qcow2 can't be deployed using opennebula or at least the template/config is missing.
this guide https://www.howtoforge.com/tutorial/how-to-setup-virtual-containers-with-lxc-and-quota/ seems to suggest that this should be possible using nbd?
as I understand, having the lxc in a qcow would enable snapshotting and disk size elasticity.
can the guide be adapted for lxcone? might it be a change from mounting on loop to mounting on nbd?
Hi,
I'm trying to make this work and found a monitor issue that seems to be why I can't get the host to "ON" state.
First, I'm on Debian8 on ARM64.
This is from my oned.log
Thu Oct 27 01:25:04 2016 [Z0][InM][D]: Monitoring host 127.0.0.1 (0)
Thu Oct 27 01:25:04 2016 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 13 -
Thu Oct 27 01:25:04 2016 [Z0][ReM][D]: Req:3280 UID:0 HostPoolInfo invoked
Thu Oct 27 01:25:04 2016 [Z0][ReM][D]: Req:3280 UID:0 HostPoolInfo result SUCCESS, "<HOST_POOL><HOST><ID..."
Thu Oct 27 01:25:06 2016 [Z0][ONE][E]: Error parsing host information: syntax error, unexpected VARIABLE, expecting EQUAL or EQUAL_EMPTY at lin
e 35, columns 512:513. Monitoring information:
ARCH=aarch64
MODELNAME="HYPERVISOR=lxc
TOTALCPU=400
CPUSPEED=0
TOTALMEMORY=1760508
USEDMEMORY=368840
FREEMEMORY=1391668
FREECPU=400
USEDCPU=0
NETRX=58324808
NETTX=2156662
DS_LOCATION_USED_MB=6423
DS_LOCATION_TOTAL_MB=14784
DS_LOCATION_FREE_MB=8182
DS = [
ID = 0,
USED_MB = 6423,
TOTAL_MB = 14784,
FREE_MB = 8182
]
DS = [
ID = 1,
USED_MB = 6423,
TOTAL_MB = 14784,
FREE_MB = 8182
]
DS = [
ID = 2,
USED_MB = 6423,
TOTAL_MB = 14784,
FREE_MB = 8182
]
HOSTNAME=odroidc2
VM_POLL=YES
VERSION="5.2.0"
Thu Oct 27 01:25
Do you see why it has an issue?
At the moment I don't see the problem :(
Please convert PDF guide to plain text. It will be ideal to use markdown format and include instructions to README.md
.
It is also important to remove LXC+OpenNebula_Guide.pdf
because it is a generated file without source(s) which makes it "non-free" (i.e. non-distributable) from Debian prospective.
PDF guide is hard to use because of code formatting and copy/paste issues...
Please add copyright statement to README.md
to document copyright attribution for all files, including those without copyright/license information in headers.
Probably it would be something like:
2013-2015 OpenNebula Project (OpenNebula.org), C12G Labs
If some parts of your work derived from addon-lxc project (I've noticed that at least lxcrc
file is borrowed from addon-lxc) then please include Copyright 2013 databus.pro
as well.
If only lxcrc
file originates from addon-lxc then I believe its copyright attribution can be overridden (or dropped) because file lxcrc
contains exactly one line of trivial code and therefore most likely not copyright-able.
Also it would be nice to correct copyright years in headers -- I see no evidence of work prior to 2013 so copyright years couldn't be from 2002 like it is stated in most files.
Thanks.
I got this error during the startup of the container while security group is applied:
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: Successfully execute virtualization driver operation: deploy.
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: Command execution fail: /var/tmp/one/vnm/802.1Q/post PFZNPjxJRD4xNTk8L0lEPjxERVBMT1lfSUQvPjxURU1QTEFURT48TklDPjxBUl9JRD48IVtDREFUQVswXV0+PC9BUl9JRD48QlJJREdFPjwhW0NEQVRBW2JyMjAwMF1dPjwvQlJJREdFPjxJUD48IVtDREFUQVsxMC4xLjQuNF1dPjwvSVA+PE1BQz48IVtDREFUQVswMjowMDowYTowMTowNDowNF1dPjwvTUFDPjxORVRXT1JLPjwhW0NEQVRBW3Rlc3QteF1dPjwvTkVUV09SSz48TkVUV09SS19JRD48IVtDREFUQVsyXV0+PC9ORVRXT1JLX0lEPjxORVRXT1JLX1VOQU1FPjwhW0NEQVRBW29uZWFkbWluXV0+PC9ORVRXT1JLX1VOQU1FPjxOSUNfSUQ+PCFbQ0RBVEFbMF1dPjwvTklDX0lEP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TT4= '/dev/loop0
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: 1
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: 14
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: one-159'
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: iptables v1.4.21: interface name `--physdev-is-bridged' must be shorter than IFNAMSIZ (15)
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: Try `iptables -h' or 'iptables --help' for more information.
Mon Jul 4 08:45:47 2016 [Z100][VMM][E]: post: Command Error: sudo iptables -I opennebula -m physdev --physdev-out --physdev-is-bridged -j one-159-0-i
Mon Jul 4 08:45:47 2016 [Z100][VMM][E]: post: ["/var/tmp/one/vnm/command.rb:76:in `block in run!'", "/var/tmp/one/vnm/command.rb:73:in `each'", "/var/tmp/one/vnm/command.rb:73:in `run!'", "/var/tmp/one/vnm/security_groups_iptables.rb:281:in `nic_pre'", "/var/tmp/one/vnm/sg_driver.rb:64:in `block in activate'", "/var/tmp/one/vnm/sg_driver.rb:61:in `each'", "/var/tmp/one/vnm/sg_driver.rb:61:in `activate'", "/var/tmp/one/vnm/802.1Q/post:29:in `<main>'"]
Mon Jul 4 08:45:47 2016 [Z100][VMM][I]: ExitCode: 1
without security group in the template container start fine.
Ideas?
it is not clear from the guide how to use sunstone to add entries to the config of an lxc. particularly, I'm struggling with a way of passing a directory mount into a container that should run a file server.
Additional clarification would be very helpful.
Beside you have the opportunity to use different hypervisor were is the
advantage from addon-lxcone over using LXD in OpenNebula?
Most would be much easier / faster to implement using the REST-API
of LXD. https://github.com/lxc/lxd/blob/master/doc/rest-api.md
LXD is backported to trusty and works already perfect on Xenial Xerus.
http://packages.ubuntu.com/de/trusty-backports/admin/lxd
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.