К основному контенту

Сообщения

Сообщения за март, 2018

LXD Adjusting size of root device

lxc config show openvpn   architecture: x86_64  config:   image.architecture: amd64   image.description: ubuntu 16.04 LTS amd64 (release) (20180306)   image.label: release   image.os: ubuntu   image.release: xenial   image.serial: "20180306"   image.version: "16.04"   raw.lxc: lxc.cgroup.devices.allow = c 10:200 rwm   volatile.base_image: c5bbef7f4e1c19f0104fd49b862b2e549095d894765c75c6d72775f1d98185ec   volatile.eth0.hwaddr: 00:16:3e:88:32:82   volatile.eth0.name: eth0   volatile.idmap.base: "0"   volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":165536," Nsid":0,"Maprange":65536}]'   volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":165536,"Nsid":0,"Maprange":65536},{"Isuid...

OpenVPN in LXD Container

https://github.com/Angristan/OpenVPN-install https://github.com/Nyr/openvpn-install wget https://raw.githubusercontent.com/Angristan/OpenVPN-install/master/openvpn-install.sh chmod +x openvpn-install.sh # On the host ============= lxc config set openvpn raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm' lxc config device add openvpn tun unix-char path=/dev/net/tun # In the container ================== 1. mknod /dev/net/tun c 10 200 2. install OpenVPN (https://github.com/Nyr/openvpn-install or manual) 3. edit /lib/systemd/system/openvpn@.service -- comment out/remove `LimitNPROC=10` 4. systemctl daemon-reload or reboot container

Installing LXC with a web interface on Ubuntu 16.04

Linux Containers are insanely useful. Whether it be for stopping an application from cluttering your filesystem with it's configuration, or packaging an application for deployment anywhere, they are truly one of the most useful technologies in linux to date, and are only just coming into the limelight. This tutorial will show you how to install LXC with a web interface for VM-like management. A quick google search told me that LXC Web Panel looked to be the best solution for this. The only problem was that their project hadn't been updated in quite a while, and was lacking many features. I was lucky to find a fork of LWP on github which had been updated much more recently, available at  https://github.com/claudyus/LXC-Web-Panel . Step 1 - Installing LXC sudo apt-get install lxc Step 2 - Installing from the claudyus ppa As per the instructions accessible from the github page, install the author's package repository to your system. Personally I don't l...

All-In-One Single LXC Container

This guide walks you through the process of deploying OpenStack using devstack in an LXC container instead of a VM. The primary benefits to running devstack inside a container instead of a VM is faster performance and lower memory overhead while still providing a suitable level of isolation. This can be particularly useful when you want to simulate running OpenStack on multiple nodes. Warning Containers do not provide the same level of isolation as a virtual machine. Note Not all OpenStack features support running inside of a container. See   Limitations   section below for details.   OpenStack in a VM   is recommended for beginners. Prerequisites ¶ This guide is written for Ubuntu 14.04 but should be adaptable for any modern Linux distribution. Install the LXC package: sudo apt - get install lxc You can verify support for containerization features in your currently running kernel using the   lxc-checkconfig   com...