LXC short for (Linux Containers) LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. LXC is the userspace control package for Linux Containers, a lightweight virtual system mechanism sometimes described as “chroot ...

learn more… | top users | synonyms

0
votes
1answer
28 views

Intermitent connection issues inside LXC

I am experiencing connection issues inside a LXC that are driving me mad. They are intermitent. They appear during some time, and they suddenly disapear. Scenario A lxc inside a host. Both are ...
1
vote
0answers
57 views

yum halts after installing 7 packages on centos container

I was curious about containers, so decided to give it a try. Prepared a server as host with a fresh install of CentOS 7, installed lxc and lxc-templates and configured a bridge interface. I've ...
0
votes
1answer
29 views

How do I provision a new LXC container using saltstack?

I've got a host server which runs Jenkins. I'd like Jenkins to automatically create new containers and prepare those containers with SALT. The ultimate purpose is to use these containers to test code. ...
1
vote
1answer
21 views

Proxmox: recreate CT from “.raw” disk image

I crashed a Proxmox 4 server beyond repair and some some of my CTs I don't have a dump file, all I have left is .raw disk image. So my questions are: where is the CT's ".conf" file once /etc/pve ...
1
vote
1answer
81 views

How to use Ansible to manage remote lxc containers?

How can I use Ansible to execute tasks on lxc containers on a remote server? We use Ansible to deploy our code on several servers (physical and virtual machines). Until now, every instance had a ...
0
votes
0answers
11 views

Executing Cuda script in LXC container results in “cuda error: no CUDA-capable device is detected”

I followed the following instructions in order to set up Cuda inside an LXC container. When I try to execute the sample ./deviceQuery script inside the container following error is returned: $ ...
1
vote
0answers
100 views

Add a second disk image to a LXC container in Proxmox 4

My LXC containers in Proxmox 4 have a root filesystem stored on the host as a RAW disk image stored in : /var/lib/vz/images/<ct_id>/vm-<ct-id>-disk-1.raw This folder on the host ...
0
votes
0answers
71 views

Proxmox LXC-guest: Cannot open /proc/stat: Transport endpoint is not connected

since a few seconds I can not use htop or top in my LXC-containers: Cannot open /proc/stat: Transport endpoint is not connected Same problem on reloading php5-fpm Dez 18 13:40:31 systemd[1]: ...
0
votes
0answers
69 views

LXC Error -> Failed to reset devices.list on /lxc/103/system.slice/proc-diskstats.mount: Permission denied

unfortunately I'm getting a lot of errors like these ones in my debian 8 LXC-container: Failed to reset devices.list on /lxc/103/system.slice: Permission denied Dec 17 16:34:37 systemd[1]: Failed to ...
0
votes
0answers
45 views

IOTOP on LXC -> Netlink error

unfortunately I can not use iotop on proxmox-lxc-container and debian 8 template. This is the output: Traceback (most recent call last): File "/usr/sbin/iotop", line 17, in <module> main() ...
0
votes
1answer
6 views

Does LXC support IPSET6+?

I would like to use a new firewall-extension for PLESK on a Proxmox-LXC. Now the support of the firewall-extension wrote me this message: Does LXC support ipset 6+? If not then I wouldn't ...
0
votes
1answer
17 views

How to make a drive mount avaialble inside a container?

I intend to use the mount inside the container for a postgres database. I have been unable to make the drive available inside the container. So far I have: mounted /dev/sdb to /mnt/psql on the host ...
1
vote
0answers
30 views

Strange messages in my syslog on Debian

I am getting strange messages on my /var/log/syslog that aren't usual. I am running a Debian Jessie LXC Container inside of a Debian Wheezy machine. But I believe this is not the problem. An example ...
0
votes
1answer
41 views

sshd doesnt work (but started) in lxc (ubuntu)

When I'm trying to connect with ssh ubuntu@10.0.0.* it fails with Read from socket failed: Connection reset by peer, and I can connect to containers only with lxc-attach -n (name). How can I fix ...
0
votes
0answers
24 views

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs? Do they support exclusive usage by using PCI passthrough like in a KVM?
0
votes
0answers
16 views

Controlling Remote Processes from Linux Access Server

I have constructed a HA web cluster in LXD with each major service run within its own container. I.e, 2 x Nginx servers in a container each, 2 x MySQL etc. I would like to add a management container ...
3
votes
1answer
53 views

Bash shell script executing out of order when passed over stdin to LXC container

I am passing the following simple shell script to bash on an LXC container: apt-get update apt-get install postgresql -y sudo -u postgres psql -c 'create database dvdrental;' The actual command ...
1
vote
2answers
133 views

lxd container: port forwarding like docker

Is there a way to do port-forwarding in lxd-containers like docker does? I heard some rumours that there is no easy way. According to the homepage of lxd this is their goal: Intuitive (simple, ...
0
votes
3answers
81 views

service apache2 restart leads to “Error: No space left on device”

If I do me@server:/home/me# service apache2 restart on my LXC-VPS (node-server is not under heavy load) I'm getting Error: No space left on device df -h tells me that there is plenty enough ...
0
votes
0answers
20 views

CPU, RAM, DISK quota for LXC on Ubuntu 14.04

I read the LXC official website articles and googled quite a bit, but still haven't figured out how to setup resource quota for LXC on Ubuntu 14.04. It seems LXC has changed a lot since Ubuntu 14.04. ...
1
vote
1answer
89 views

Libcontainer VS. LXC driver

What are main differences between these Docker drivers? Why is libcontainer better than LXC driver? Why should we use libcontainer, which are its benefits on practical way?
1
vote
0answers
101 views

LXC Snapshotting on Ubuntu 15 and BTRFS file backend

i have a dedicated server with Ubuntu 15 Wily and i want to play/study with LXC. My main goal is to snapshot and clone containers without stopping them, and for so i have formatted a partition with ...
2
votes
2answers
105 views

Debian Linux routing additional IP to LXC

I'm trying to route an additional IP of my server from Hetzner to a LXC instance (on Debian Jessie). I've found this guide ...
0
votes
1answer
124 views

IPv6 Neighbor Discovery/Routing Failing for Kernel 3.10

Stupid mistakes led to all of this, read Update 5 I'm trying to setup a Linux Router (LXC, 3.10.0-123.el7.x86_64) with IPv6. The provider is Hetzner and I got 2 subnets, one /56 and a /64. They ...
1
vote
1answer
525 views

How to migrate a regular LXC container to a Proxmox LXC container?

How do you migrate a regular LXC container (from another or the same server) to a Proxmox LXC container, which can be accessed via the Proxmox web GUI? For example, I have a container created by ...
1
vote
0answers
89 views

How do I edit LXC/LXD's raw.lxc config key?

I corrupted my raw.lxc key trying to setup lcd/lxc on ubuntu server(15.10 Wiley) by writing some junk to it. Image related lxc commands now return: 'error: problem applying raw.lxc, perhaps there is ...
1
vote
0answers
379 views

Debian container unable to start after migration from OpenVZ to LXC on Proxmox 4

After migrating a Debian 7 OpenVZ CT from Proxmox 3 to a LXC on Proxmox 4 it does not appear to start correctly. Fristly, migration was done by stopping the container on Proxmox 3, backing up to ...
0
votes
0answers
49 views

lxc-* commands do not work

I have a problem where I can issue: $ sudo lxc list +---------+---------+------------+------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | EPHEMERAL | SNAPSHOTS | ...
2
votes
1answer
21 views

libvirt lxc container won't use statically assigned address at startup

I have an LXC OS container (CentOS 7) configured via libvirt (CentOS 7): <domain type='lxc'> <name>lxc-test1.example.com</name> ...
0
votes
0answers
19 views

Is an unprivileged LXC where the host user itself is mapped to 0 less secure of one where one of its subids is mapped to 0, and why?

Instead of creating "common" LXC unprivileged containers where all the users are mapped to (unprivileged) subuid/gid of my host user, I'm considering a mapping where my host user itself will be mapped ...
1
vote
0answers
57 views

Centos lxc container won't start on Ubuntu 14.10

I am trying to run Centos containers in Ubuntu 14.10 Utopic and also Ubuntu 14.04 trusty. I created the container in several different ways and no matter what it won't start and spits those lines: # ...
0
votes
2answers
102 views

Deny usage of host consoles/ tty to lxc container

I'm running Ubuntu 12.04.5 LTS (lxc package 0.7.5-3ubuntu69) with a single lxc guest. Everything works fine, except the lxc container seems to use/ mess with the hosts tty devices. As soon as the ...
0
votes
0answers
87 views

Restarting network on Ubuntu 14.04 host running lxc

I know /etc/init.d/networking restart isn't supposed to work on Ubuntu 14.04 but I altered the script that it works. It always worked on all the Debian distributions I have used before and I do not ...
0
votes
0answers
51 views

How to monitor keystrokes of an lxc guest that is connected via ssh?

I have an unprivileged LXC container which runs an SSH server (both LXC guest and LXC host are Ubuntu 14 servers) . The ports to connect to the container are forwarded, so one can connect from outside ...
0
votes
0answers
128 views

iptables open port to an LXC container with public IP

I've encountered a strange problem I have no idea how to fix. I'm trying to close all ports on my server, and open only the ports I need in the directions I need. Thus, I ended up with: IF=eth0 ...
2
votes
2answers
525 views

Enable SELinux on Centos7 LXC container with Ubuntu 14.04 host

I'm trying to setup an LXC container for testing which is running CentOS 7 with SELinux enabled to meet the requirements for a test I'm trying to run. Despite all my efforts, I'm still unable to get ...
1
vote
1answer
213 views

Ipv6 over bridged network stops working after some time (Ubuntu LXC)

i hope you can help me. I am running several Linux Containers on a bare metal server which is provided with an Global Ipv6 address as well as an 64-bit network by my provider. I have configured IPv6 ...
0
votes
1answer
64 views

Change shell prompt based on container name?

I have been doing a lot of work using Linux containers, and I keep forgetting which of the terminals on my screen is running inside which container, particularly when I leave them open overnight. How ...
0
votes
1answer
75 views

Forwarding all traffic coming into eth0 on host to eth1 on LXC container

I'm trying to monitor all the traffic coming into my computer using software running in an LXC container. The software on the LXC expects to be monitoring eth1. Thus, I would like to Create an ...
3
votes
0answers
71 views

/dev/ttyS0 in lxc container

How to set up lxc to get /dev/ttyS0 in lxc container. I add # /dev/ttyS0 lxc.cgroup.devices.allow = c 4:64 rwm into config but nothing works - If I add manually mknod in running container ...
0
votes
2answers
171 views

LXC containers on a OpenVZ VPS

I am trying to run LXC on a VPN that is hosted in OpenVZ, I have tried doing this with multiple image flavours, ubuntu. centos, debian... with no luck. LXC installs correctly but containers fail to ...
0
votes
0answers
160 views

Make LXC containers directly accessable with ipv6

First off I have a special IPv6 address allocated to my dedicated server, just 1. A ::1/128 one. But I can assign addresses to eth0 (eg ::2/128, ::3/128, etc). Now I would like to run LXC containers ...
5
votes
1answer
424 views

Do I need a CPU that supports Virtuallization to do Containerization?

I've read that Containerization is cheaper than virtualization; I know that containerization uses less resources than virtualization since there's only one OS involved and no virtualized hardware. ...
0
votes
0answers
137 views

Can not connect to OpenVPN server from LXC container

I can't seem to connect to an OpenVPN server from an LXC container. I have spent some time searching around and tried the suggestions many have posted but I still can't seem to get this working. I was ...
2
votes
1answer
334 views

How to set DHCP IPs of stanard lxc containers?

When you create some containers on a host, e.g: sudo xlc-create -n container1 -t ubuntu sudo xlc-create -n container1 -t ubuntu the lxs system creates IP address for the hosts on a new subnet, e.g. ...
0
votes
1answer
114 views

lxc - how to make a mount survive an external unmount / mount (eg. sharing folders on a USB key)

I have an LXC container, where I setup the fstab to use a directory situated on an external usb disk. I need this because I use this container for disk intensive computations on my laptop, and I need ...
1
vote
1answer
101 views

Running LXC and Docker on the same host

I'm running a private server for a some time now and back when I set it up, I used LXC to separate the different services from each other. About a month ago I've started to use docker (for work as ...
-2
votes
1answer
77 views

Link containers on cockpit

I think this is a pretty common scenario, but I don't seem to find a solution. Given: 1. A container with an application that requires a database, 2. A database container; I need to link those ...
1
vote
1answer
400 views

linux container bridge port forwarding?

How to setup linux container bridge port forwarding? I start using LXD, and looks like their policy is to setup port-forwarding with OS base unlike docker. I want to build a web server, so 80 port ...
0
votes
1answer
129 views

Nginx forward ssl to ISPConfig lxc container

I am having issues with https connexions to the ISPConfig admin panel (port 8080). My setup is relatively standard. I own a physical host, which routes all traffic on common ports to an LXC container ...