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

learn more… | top users | synonyms

0
votes
2answers
41 views
+50

Problem setting up a user-space LXC container

Several evenings, I already try to get an LXC installation working with user-space containers. Since it's going to be a new server, I don't care (yet) too much about distribution and release, so I ...
0
votes
1answer
45 views
1
vote
2answers
116 views

Cannot auto-start LXC containers created with LXD

I have created a lxc container easily with LXD tools however I couldn't find a way to auto-start it on reboot. (Ubuntu 15.04) For LXC it's said that adding lxc.start.auto = 1 to the container config ...
1
vote
2answers
242 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
0answers
26 views

How can I restrict an LXD guest to using a single public IP address?

I have an Ubuntu 14.04 LXD container on an Ubuntu 14.04 Server host (using lxd-git-master PPA). I want to prevent it from reaching any other containers or from communicating with the public Internet ...
0
votes
0answers
12 views

How can I make one legacy sysvinit script (xen) start before an upstart job (lxc)?

I am running Xen with an Ubuntu trusty Dom0 in the following configuration: FreeBSD DomU vault exports ZFS filesystem /storage/backuppc via NFS. Ubuntu Dom0 keep mounts vault:/storage/backuppc at ...
13
votes
8answers
7k views

How do I get the IP address of an LXC container?

I've written a few scripts to manage LXC containers, and I can get their IP addresses via ifconfig, assuming I'm connected to the console. I now want to connect to these containers via ssh. How do I ...
3
votes
3answers
1k views

Video driver under lxc container?

Since LXC (Linux Containers) is a kernel level super-chroot, I've been wondering what sort of video driver the containers have: My host is Ubuntu 12.04 64-bit machine with ATI gpu. Will the LXC ...
0
votes
1answer
76 views

Is it possible to install LXD directly on a Ubuntu Snappy Core?

I'm running a Ubuntu Snappy Core (2015-04-28, version 45). I want to install LXD directly on the snappy host. Is this possible? Thx! --todd
1
vote
0answers
23 views

Is there a way to configure lxd containers with cloud config at provision time?

Specifically, with the CLI tools- not openstack. I'm looking at what a local dev setup with lxd might look like but am coming up empty handed when it comes to configuring new containers. Are there ...
0
votes
0answers
74 views

How can I run a Snappy / ubuntu-core image with LXD

I would like to run Ubuntu Snappy in an LXC container. There isn't an existing snappy image at the default https://images.linuxcontainers.org repo, but I was wondering if this is something others ...
1
vote
1answer
186 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 ...
0
votes
0answers
16 views

Up to date LXC template for Ubuntu

Currently we are using LXC to deploy a web application, each time we deploy a new and separate container is freshly built. The container is based on Ubuntu 14.04, but the problem is that the template ...
1
vote
2answers
113 views

Share a folder between host and ubuntu lxc container

How can I share a folder between the host system (ubuntu 14.04) and an ubuntu lxc container? I tried mounting the folder on the host: sudo mount --bind /media/data/share ...
0
votes
0answers
41 views

How to connect to a LXC container from the LAN?

I have a server with the latest Ubuntu server 64-bit install in my home wlan. I use ssh to connect to it from my laptop. The server /etc/network/interfaces file: # The loopback network interface ...
2
votes
0answers
134 views

How to create archlinux lxc [closed]

I'm trying to create arch linux lxc on Ubuntu 15.04 server. First: lxc-create -t archlinux -n test fails with errors that pacman and pacstrap could not be found. I solved this by installing pacman ...
0
votes
0answers
18 views

Installing Web server on linux containers?

Is it possible to create a container and install a web server into it ? i.e. apache web server and run it ? Im doing a project on ns-3 using tapbridge and I need one of the nodes to act as a ...
1
vote
1answer
248 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 ...
0
votes
1answer
100 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
votes
1answer
41 views

IP Address Linux Containers

Please, i have a problem i try to find a solution since days i'm a beginner with linux (networking) In our cluster (10 nodes), we deploy the same image file on each node. So each node has a different ...
1
vote
2answers
60 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 ...
3
votes
3answers
916 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 ...
1
vote
0answers
20 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
9 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
50 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 ...
1
vote
1answer
81 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
0answers
54 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 ...
4
votes
4answers
4k views

How to let built-in DHCP assign a static IP to LXC container based on name, not MAC address

I know, that I can assign static IP manually, using /etc/network/interfaces. I also know, that I can read the MAC address of the LXC container (e.g. by looking for lxc.network.hwaddr entry in ...
1
vote
1answer
120 views

Link aggregation on a LXC bridge

I'm working on a server with a number of various interfaces (eth0-3) and I currently just use one for both host traffic and another for my LXC bridges traffic. Since I have a few spare ports just ...
1
vote
0answers
125 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
23 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 ...
0
votes
1answer
39 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 ...
1
vote
1answer
169 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 : $ ...
0
votes
0answers
46 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 ...
1
vote
1answer
103 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 ...
4
votes
1answer
368 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 ...
0
votes
0answers
33 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
87 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
142 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 ...
4
votes
1answer
160 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
42 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
1k 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
2answers
1k views

Forward port to LXC guest using UFW

I am trying to forward port 2222 on my host 192.168.2.252 to a LXC guest on 10.0.3.11. How do I do it using the UFW-framework? In other words I want to do this but with the ufw-framework. iptables ...
0
votes
1answer
107 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 ...
0
votes
1answer
575 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
192 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, ...
6
votes
2answers
13k views

How do I setup an LXC guest so that it gets a dhcp address so I can access it on my network?

I setup LXC using: lxc-create -t ubuntu -n lxcguest1 But I can't access any services running on it from my LAN, it appears to be NATed. How do I set it up so that I can access it (it probably ...
3
votes
2answers
683 views

lxc-create with non default user

When using "lxc-create -t ubuntu" how does one specify the user of the new container? I don't want the default ubuntu:ubuntu but to specify my own unique username and password. I'm using lxc ...
1
vote
1answer
143 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 ...
3
votes
3answers
1k views

Switching Juju lxc bridge

I've set up Juju running in LXC, and I'm attempting to expose it to the internal network. I'm generally following this question to point lxc to my existing bridge (eth-br0). I've edited ...