The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.

learn more… | top users | synonyms

1
vote
2answers
31 views

New Openstack Autopilot stuck at: In progress - Configure availability zones - 98%

I see in landscape0:job-handler-1.log: 2015-03-18 14:00:13 INFO root RetryingCall for '_create_networks_and_router' failed, trying 119 more time(s): 2015-03-18 14:00:13 INFO root Traceback (failure ...
1
vote
0answers
12 views

Ping to LXC container

Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn’t work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) The blue arrows means that the ...
0
votes
0answers
5 views

Possible to access lxc guest containers via DNS?

Assume I have a VPS server available at dev.myserver.com- I would like to be able to run 1 or 2 services from this one server, for example a saltstack service and a Jenkins instance. Now to keep the ...
0
votes
0answers
21 views

Ubuntu LXC container: “unable to set ”nproc“ resource limit: Operation not permitted”

I'm trying to install mongodb in a Ubuntu container, I followed these instructions to set up the Ubuntu 14.10 host: https://linuxcontainers.org/lxc/getting-started/ Running apt-get install mongodb ...
0
votes
0answers
12 views

no login prompt for lxc

I installed and setup an LXC according to these instructions... https://www.digitalocean.com/community/tutorials/getting-started-with-lxc-on-an-ubuntu-13-04-vps Everything was working fine until I ...
0
votes
0answers
19 views

How could I set a file overlay on my whole system?

I need to build and test system components on my Ubuntu laptop and I want to be sure that it won't damage (or replace any my current components) (I plan to build and test gtk, gstreamer and ...
1
vote
1answer
52 views

Container lxc has two IP: One of them is bridge's. When connect with juju, connects to bridge's

If I install OpenStack with openstack-installer (autopilot) and the bootstrap for the first environment is launched over the VM that comes with openstack-installer pachage ...
0
votes
1answer
26 views

arkose alternative for trusty lts

arkose got dropped from the repos as it was no longer compatible with newer kernels: https://bugs.launchpad.net/ubuntu/+source/arkose/+bug/1299904 Bare LXC is a poor substitute, as it only offers a ...
0
votes
0answers
36 views

Can't bootstrap juju in lxc environment

I am using LXC to make JUJU. But when I bootstrap : Bootstrapping environment "local" Starting new instance for initial state server Building tools to upload (1.21.1.1-trusty-amd64) Installing Juju ...
0
votes
0answers
18 views

Is it possible to use both libvirt and lxc userspace tools?

Libvirt is pretty easy to use and has the bonus of having cross compatibility with other hypervisors. I was curious, is it possible to create a container and manage it with both virsh and lxc-* ...
3
votes
1answer
53 views

Juju and problem with subcontainers deployment on LXC

I am trying to deploy OpenStack with Juju and Autopilot but I have a big problem and I cannot figure out what to do. Basically, I have a Juju local environment with LXC and it seems to work well if I ...
1
vote
1answer
95 views

Apt-get fails to fetch inside an LXC container

I have an Ubuntu 14.04.1 LTS server that's running LXC containers. The containers run Ubuntu 14.04.1 too. Network config of host is pretty standard, static IP, ISP's DNSes (IP1/IP2) plus google's : $ ...
1
vote
1answer
33 views

my lxc machines will not start

I am trying to set up a local Juju environment, so I followed the official instructions on https://juju.ubuntu.com/docs/config-LXC.html, on a machine running trusty that was installed via MAAS. the ...
1
vote
1answer
101 views

Can not clone lxc container with lvm backingstore after ubuntu update

Command lxc-clone -s -K -M -H -o debian7 -n debian7-bak Result lxc_container: bdev.c: mount_unknown_fs: 209 failed to determine fs type for '/dev/vg/debian7' lxc_container: bdev.c: detect_fs: 320 ...
0
votes
1answer
71 views

cgroups disk IO throttling with zfs

I'd like to use cgroups with my linux containers to throttle disk IO on them. Containers placed on ZFS volume /tank/lxc. I have three containers each in their own /tank/lxc/nodeXX directory. How can ...
4
votes
1answer
108 views

juju bundle deploy in one machine in LXC?

Hi So far i have developed juju charm bundle which contains three charms.I have Two Questions (Q1) And i need to deploy juju charm bundle in one machine in LXC. i have three charms and normally when i ...
1
vote
1answer
113 views

LXC start error : setup_caps: 2337 unknown capability mac_admin

When i try to start the lxc container created it fails with below error, I have used the Ubuntu template for this template. It seems lxc is unable to drop the kernel privileges it is trying to drop, ...
1
vote
0answers
155 views

Mount qcow2 image using qemu-nbd within a container

I'm trying to get an OpenStack Nova compute node running within a container to boot a server in a nested container. Everything works fine until I ask Nova in the controller to boot the server. During ...
1
vote
1answer
89 views

juju can not start lxc machine

I am trying juj on an openvz VPS. when I try juju bootstrap it says: uploading tools for series [precise trusty] Logging to /home/danialbehzadi/.juju/local/cloud-init-output.log on remote host ...
0
votes
1answer
62 views

How to change the mirror of lxc-create?

I have an Ubuntu repository server in my network. I want to create a lxc container using lxc-create. How can i change the default repository of lxc-create to my repository? There isn't any option ...
1
vote
1answer
90 views

How to get access from nginx on host OS to files inside lxc-container?

I have Ubuntu 14.04 and lxc-container inside it. Both of host OS and container have nginx 1.4.6 installed. Container has ip-address 10.0.3.100 and located in ...
0
votes
0answers
49 views

Why is my cgroup size so small, how to fix?

I'm trying to build some Docker images, and I get an 'out of disk space' error. 2014/12/04 14:42:48 write /sys/fs/cgroup/devices/docker/10860.../devices.deny: no space left on device Looking at ...
1
vote
0answers
103 views

Can I deploy to LXC in a Juno/trusty environment?

This is a follow up on Juju Icehouse-Openstack LXC. It seems that Trusty and Juno combo also do not allow LXC instantiation, i.e., Changing "virt-type" in nova-compute charm does not change ...
0
votes
0answers
305 views

Systemd, cgroup, and LXC

After much trial and error, I was finally able to get Spice working in a Fedora LXC container under Ubuntu 14.04. However, the same can't be said of an Ubuntu 14.04 container. It appears that the ...
3
votes
1answer
111 views

How to modify rootfs of an unprivileged LXC container?

I have configured for namespaces for unprivileged LXC containers using this docuement https://help.ubuntu.com/lts/serverguide/lxc.html#lxc-unpriv I can create and start containers using lxc-create ...
0
votes
0answers
58 views

WINE programs/processes isolation

I would like to completely isolate from each other two Windows programs running in WINE. I intend to block them from sharing memory, interprocess communication, files and using any possible ...
0
votes
0answers
93 views

Enabling systemd in Ubuntu 12.04 lxc container

Following is my setup I am running Ubuntu 12.04.1 Precise. I have and lxc container on it running upstart. I want to replace upstart with systemd. I modified the container's lxc with "virsh -c ...
0
votes
1answer
33 views

Is it possible to use services that provide their own pid, like dnsmasq, to use with upstart?

I need badly a better way to refresh dnsmasq configuration than in How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address . I cannot afford restarting all ...
0
votes
1answer
448 views

lxc/kvm containers fail to start

I have MAAS+Juju setup ready and was successfully able to deploy some openstack charms on specific machines. Then, I read that its safe and good practice to place these openstack charms in their own ...
1
vote
1answer
752 views

LXC USB Device Passthrough

I am trying to create an LXC container running mythtv (server) .. .which needs access to USB tuners There seems to be a dearth of information on how to pass USB devices through to an LXC container ...
1
vote
0answers
147 views

Creating LXC container using iso file

Is it possible to create an LXC container from iso file? Following points might give you better context about what I want I have created my own distro by following "How to create customized ubuntu ...
3
votes
3answers
629 views

lxc-create hangs and finally fails

I was trying to place some juju charms on linux containers and the containers failed to start. To debug the issue I sshed into the node where this happened and tried creating an LXC container manually ...
0
votes
0answers
144 views

MAC address NAT with ebtables for IPv4 and IPv6?

I have a virtual machine running in VMware. It has Ubuntu 14.04 on it. I want to install LXC containers on it, and have them use the same address space as the virtual machine. So, I created a bridge ...
0
votes
0answers
152 views

Problem with NAT port forwading to LXC container

I have been trying to implement an instance of nginx in a LXC container on Ubuntu 14.04 as per https://www.digitalocean.com/community/tutorials/getting-started-with-lxc-on-an-ubuntu-13-04-vps Can ...
1
vote
0answers
152 views

Autostart Unpriviledged LXC Containers

I'm using Ubuntu 14.04 and have installed LXC normally. I've followed the official LXC documentation to set up unprivileged containers under a non-root user. These don't seem to support LXC's ...
1
vote
1answer
238 views

Fedora as LXC container [closed]

I have LXC running with several Ubuntu containers and I am happy with it. The problem is, when I try to setup Fedora using: lxc-create -t fedora -n fedora I get: warning: ...
1
vote
1answer
146 views

How to make a HDD device file /dev/sdxY available in lxc container?

I created a lxc container with sudo lxc-create -n ubuntu-trusty-amd64 -t ubuntu -- --arch amd64 --release trusty on Ubuntu 14.04 with lxc 1.0.5-0ubuntu0.1 and realized that there're no device files in ...
0
votes
1answer
63 views

LXC utsname does not work

I have created a LXC by cloning it from already existing LXC by using command lxc-clone -o u1 -n u2. When I start the u2 it comes with a prompt u2 login. Till this point it is fine. However, when I ...
1
vote
0answers
940 views

LXC container no outgoing traffic with bridged network and public IP address

I try to setup a LXC container with bridged network on ubuntu 14.04.1, but the outgoing traffic seems to be blocked. Ping another IP than the container's one is not working. Actually I tried this with ...
1
vote
0answers
64 views

How to enable loop dev access from LXC?

I added the following line to the LXC container's config file in order to enable access to loop dev. The LXC is running Ubuntu 12.04: … lxc.cgroup.devices.allow = b 7:* rwm … However, the container ...
0
votes
2answers
394 views

Configure LXC with additional IP ubuntu 14.04

I'm still looking for answer on my question. I have a dedicated server with ubuntu server 14.04, and 2 public ip. I want to add 1 public ip per 1 lxc. I think i've tried everything and nothing helped ...
0
votes
1answer
35 views

I'm trying to get started with LXC containers, and I'm getting a permissions problem on starting an unpriviledged container. How can I fix it?

I'm getting a permissions problem on starting an unpriviledged container. How can I fix it?
0
votes
1answer
168 views

network bridge not forwarding traffic from span port on router

I want to run several security network tools in LXC containers like ntopng, suricata, snort, etc. I hooked one of my server's NIC's up to a port that is spanned to my firewall... so basically this ...
0
votes
0answers
48 views

How to get HDMI sound devices inside LXC?

I created LXC container in 12.04.3 Server and installed Gnome Display Manager to it. Now GDM works well, but I don't have HDMI sound. ubuntu@quintilis:~$ aplay -l aplay: device_list:252: no ...
4
votes
1answer
325 views

Juju deployment fails due to “container failed to start” error

I had tried to deploy mysql and i had this error: agent-state-info: container failed to start Outputs from log as following: Line 47: machine-0: 2014-08-14 02:02:30 INFO juju.state.api ...
1
vote
1answer
149 views

How to give a Juju charm a static ip address - wordpress

I have a wordpress charm installed via juju. In order for me to access this charm through public ip, I port forwarded the ip into my server's public ip address. Recently, the ip address of the ...
1
vote
1answer
348 views

LXC Is it possible to run a 12.04 container on 14.04

Other than the kernel only, is it possible to emulate an older install of Ubuntu? I looked in /usr/share/lxc/templates and it only has "lxc-ubuntu".
4
votes
1answer
195 views

Juju and Openstack provisioning

I'm new to Juju and Openstack and currently deploying two- and three-node openstack test environment using Juju manual provider. At my first attempt I tried to deploy services to my hosts using --to ...
0
votes
1answer
59 views

juju charm failed in local lxc

So I want to run my web application in the local lxc provider using juju.my web application is maven build application. So I create my charm and try to run it locally. In hooks I have installed java ...
0
votes
0answers
76 views

CentOS lxc on Ubuntu 12.04

I am trying to use CentOS 6.5 lxc on Ubuntu 12.04, but I have problems with installing rpm package on CentOS. Here's the error: [root@pgr ~]# rpm -ivh ...