Skip to content

Commit 25a225b

Browse files
authored
B #7028, #7044, #7041: Add note for LXC driver improvements (#3264)
1 parent f38f290 commit 25a225b

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

source/intro_release_notes/release_notes_enterprise/resolved_issues_6104.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ A complete list of solved issues for 6.10.4 can be found in the `project develop
88
The following new features have been backported to 6.10.4:
99

1010
- `Add support of using defined timezone by oneacct utility with flag -t/--timezone <https://github.com/OpenNebula/one/issues/821>`__.
11+
- Console logging for :ref:`LXC Driver <lxc_logs>`.
12+
- Add architecture and hypervisor scheduling requirements to public marketplaces :ref:`public marketplaces <public_marketplaces>`
1113

1214
The following issues has been solved in 6.10.4:
1315

@@ -20,6 +22,8 @@ The following issues has been solved in 6.10.4:
2022
- `Fix ability to add and remove existing users to existing groups and change main group from an user <https://github.com/OpenNebula/one/issues/6980/>`__. In order to add, remove or change main group from and user, please see **Changes in Configuration Files** section below.
2123
- `Fix vGPU profile monitoring for legacy mode <https://github.com/OpenNebula/one/issues/7012/>`__.
2224
- `Fix README.md links to old paths <https://github.com/OpenNebula/one/issues/7032>`__.
25+
- `Fix a silent LXC container start fail <https://github.com/OpenNebula/one/issues/7028>`__.
26+
- `Fix the use of hardcoded DNS for linuxcontainers marketplace <https://github.com/OpenNebula/one/issues/7041>`__.
2327
- `Fix Restic backup driver when the server is not deployed together with the frontend <https://github.com/OpenNebula/one/issues/7054>`__.
2428
- `Fix resource names to not allow special characters '\\t', '\\n', '\\v', '\\f', '\\r' <https://github.com/OpenNebula/one/issues/6950>`__.
2529
- `Fix HA in case of wrong SQL query <https://github.com/OpenNebula/one/issues/7025>`__.

source/open_cluster_deployment/lxc_node/lxc_driver.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Requirements
1414
Considerations & Limitations
1515
================================================================================
1616

17+
.. _lxc_security:
18+
1719
Privileged Containers and Security
1820
--------------------------------------------------------------------------------
1921

@@ -188,6 +190,8 @@ Containers supports remote access via VNC protocol which allows easy access to t
188190
LISTEN="0.0.0.0",
189191
TYPE="VNC" ]
190192
193+
.. _lxc_raw:
194+
191195
Additional Attributes
192196
-----------------------
193197

@@ -221,3 +225,27 @@ After defining the profiles they can be used by adding the ``PROFILES`` attribut
221225
PROFILES = "extra-performance, production"
222226
223227
Profiles, are implemented by using the LXC ``include`` configuration attribute, note that the profiles will be included in the provided order and this order might affect the final configuration of the container.
228+
229+
.. _lxc_logs:
230+
231+
Troubleshooting
232+
---------------
233+
234+
On top of the regular OpenNebula logs at ``/var/log/one``, the LXC driver generates additional logs for more specific LXC operations. Sometimes a container might fail to start or not behave as intended. You can find out more about what happened by inspecting the log files at ``/var/log/lxc/``:
235+
236+
- ``one-<vm_id>.console`` — Contains the console output seen when starting a container. This includes information regarding how the init process within the container starts and can help identify problems that occur after a successful start yet a failed initialization.
237+
- ``one-<vm_id>.log`` — Contains information about how LXC handles different container operations.
238+
239+
You can also verify the low-level configuration of the container generated by OpenNebula by inspecting the file ``/var/lib/lxc/one-<vm_id>/config``.
240+
241+
Common Issues
242+
-------------
243+
244+
- Sometimes the Guest OS may refuse to start completely or some systemd services might fail. In these cases, it might be worth using :ref:`Privileged Containers <lxc_security>`.
245+
- When running Linux distributions with `AppArmor <https://documentation.ubuntu.com/server/how-to/security/apparmor/index.html>`_, it might be necessary to relax this configuration. Otherwise, services like :ref:`one-context <kvm_contextualization>` have dependencies which do not start. For this, you can set the following :ref:`RAW <lxc_raw>` configuration:
246+
247+
.. code::
248+
249+
RAW = [
250+
TYPE = "lxc",
251+
DATA = "lxc.apparmor.profile=unconfined" ]

0 commit comments

Comments
 (0)