python3-lxc
python3-lxc copied to clipboard
Python 3.x binding for liblxc
Some helpful code to help integrators.
I'm having trouble finding a tutorial that I can follow without failing at the create container stage. ``` Python 3.6.8 (default, Aug 24 2020, 17:57:11) [GCC 8.3.1 20191121 (Red Hat...
Unless I'm missing something, I don't see any documentation on how to use this other than a few examples. Is there a link that I'm not seeing?
Hi, After hundreds of container startups using the python3 bindings sometimes I get a sporadic error like: ``` c = lxc.Container(container_id) File "/usr/lib64/python3.9/site-packages/lxc/__init__.py", line 157, in __init__ _lxc.Container.__init__(self, name) RuntimeError:...
Option "container_command" does not always work: container_command: | echo "{{ ssh_pubkey_lxc }}" > /etc/openssh/authorized_keys/root Debug: (0, b'Exception ignored in: \r\nTraceback (most recent call last):\r\n File "/usr/lib64/python3.7/logging/__init__.py", line 258, in _after_at_fork_child_reinit_locks\r\n...
Hi, Running this minimal script ```python import lxc c = lxc.Container("taskc") if not c.defined: # Create the container rootfs if not c.create("download", lxc.LXC_CREATE_QUIET, {"dist": "fedora", "release": "32", "arch": "i386"}): print("Could...
Are you planning to support bdev_specs in python and go bindings? Because I think it stops many people from using official bindings.
I think something is odd, perhaps is because this library tarjets lxc 2.1/3 and I am using lxc 2.0.x (Debian 9) but: clear_config_item(whatever) doesn't work, sometimes fails that may be...
With Python bindings: ``` container.set_config_item('lxc.cgroup.memory.limit_in_bytes', mem_limit) container.set_config_item('lxc.cgroup.memory.memsw.limit_in_bytes', memsw_limit) ``` generates following lines in container config: ``` lxc.cgroup.memory.limit_in_bytes = 3G lxc.cgroup.memory.memsw.limit_in_bytes = lxc.cgroup.memory.memsw.limit_in_bytes = 4G ``` And if there are other...