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

learn more… | top users | synonyms

0
votes
0answers
316 views

Trying to install vnc4server inside a docker (LXC) container

I'm trying to install vnc4server inside a docker (http://www.docker.io) container. Its a LXC container. The config file to setup this container reads: from ubuntu maintainer deb@sinhalabs.com run ...
0
votes
0answers
22 views

problems with lxc while chrooting a live 13.10 distro

Since 10.04 I'm used to customize a live, edubuntu-based distro we give to our students and all went in the best way until 13.10 came out; while with other releases I went at the end of customization ...
0
votes
0answers
146 views

LXC with Openstack

I have successfully deployed OpenStack Havana using Juju and MAAS. Virt type is LXC. What kind of images should I use to be able to launch LXC containers from Openstack and how to overcome the lack of ...
0
votes
0answers
113 views

unable to login into lxc-container

I have installed lxc in ubuntu server and created two lxc container. Every thing working fine untill I update lxc to latest version. After lxc update, I am able to create new containers, start and ...
0
votes
0answers
36 views

Run an application from a separate installation of Ubuntu

Is it possible to run using lxc application from already installed distribution on another partition? Specifically it would be steam on wine.
0
votes
0answers
331 views

102.04 LXC unable to create macvlan

I'm having problems creating a macvlan for a container on 12.04. In a terminal it works fine: $> ip li add link eth0 mac0 type macvlan But when in a container config it give the error: ...
1
vote
1answer
151 views

lxc-create says container already exists

I'm trying to create a container on a non-standard location, but lxc-create complains the roots already exists, when, in fact, it seems it doesn't. What am I doing wrong? ...
1
vote
0answers
133 views

How to log into lxc container?

I recently installed the 32 bit lxc container on a 64 bit Ubuntu 12.04 system. When I run the command sudo lxc-start -n my32bitbox I am greeted with a login prompt. I enter the default login and ...
0
votes
1answer
348 views

unable to start lxc container

I have installed lxc in ubuntu server, every thing was working fine. Today I have updated lxc from version 0.7.5 to version 1.0.0.alpha2. After I update lxc, I am unable to start lxc containers. ...
1
vote
0answers
134 views

juju fails to spawn local LXC containers [closed]

The setup is ubuntu 12.04 updated to the 3.8 kernel to be able to use juju locally, container created using bootstrap, but it does not start: jmerelo@amy:~$ sudo lxc-start -n jmerelo-local-machine-1 ...
0
votes
0answers
31 views

python3-lxc and lxc parallel installation not possible!

every time i try to install one of the package lxc and python3-lxc the other one is removed from my system. How i can fix this problem? I need both for a project. Thank You!
3
votes
1answer
2k views

Allow loop mounting files inside LXC containers?

I'm trying to set up a MaaS server inside an LXC container. When I import the PXE files, it needs to be able to mount loop devices. I have set the following options in the container config file to ...
1
vote
0answers
30 views

update lxc in ubuntu server

I have installed lxc-version 0.7.5 by apt-get update apt-get install lxc Now I want to update to either lxc-0.8.0 or lxc-0.9.0. How can I do this?
0
votes
0answers
385 views

Network configuration in LXC- unable to ping IPs except LXC container IP

I have installed ubuntu server 12.04. I have installed LXC container. I started LXC container using lxc-start -n conrainername logged in using lxc-console -n contaniername -t 1. I prompted to ...
1
vote
1answer
387 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 ...
4
votes
1answer
1k views

lxc containers hangs after upgrade to 13.10

I have 3 lxc containers. They were all working fine on 12.10 and I upgraded the containers with do-release-upgrade on the containers to 13.04 and 13.10 and that worked great. Then I upgraded the ...
0
votes
1answer
770 views

How do I install lxc 0.9.0 on ubuntu Saucy

Ubuntu Saucy is shipping with lxc 1.0.0 alpha, it appears to be broken with Docker. How do I install 0.9.0 on it?
2
votes
0answers
66 views

net_cls and ns subsystems not available in 12.04?

I'm playing around with cgroups and I noticed when I try to list all available subsystems that the network ones are not available ? Running the following command should list ALL available subsystems - ...
1
vote
1answer
169 views

LXC PID namespace

I've been playing around a tad with LXC recently and one of the things I couldn't figure out is how are LXCs in Ubuntu implementing namespacing - in particular PID namespacing. I can't seem to find ...
0
votes
1answer
621 views

Ubuntu 12.04 LXC nat prerouting not working

I have a running Debian Wheezy setup I copied exactly to an Ubuntu 12.04 ( elementary OS, used as desktop as well ) While the Debian setup runs flawlessly, the Ubuntu version dies on the prerouting ...
2
votes
1answer
1k views

lxc-start: failed to spawn

I tried following the steps to create and start an lxc container from here: https://help.ubuntu.com/lts/serverguide/lxc.html My host is running an up to date 64-bit Precise (12.04), and I'm trying to ...
3
votes
2answers
814 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 ...
3
votes
0answers
1k views

“Can not write log, openpty() failed (/dev/pts not mounted?)”

I used this post to install LXC. The installation is success and creating the container complain give this message: "Can not write log, openpty() failed (/dev/pts not mounted?)" but in the end ...
0
votes
0answers
132 views

Proper way to create a launcher for an LXC or ssh remote app?

I created a Unity launcher for an Eclipse-based IDE. This worked nicely; I could launch the IDE and/or switch to it with Meta-5 and all was good. Then I wanted to upgrade to 13.04, but the builds ...
1
vote
1answer
109 views

Configure a container for using it with juju

Is there a way to use juju o LXC containers that have not been created by juju bootstrap? The only configuration options for local containers are the root-dir and the admin-secret, which I understand ...
0
votes
0answers
17 views

Best way to expose your lxc's over internet [duplicate]

So you are running 10 lxc's on your server and you want to provide the world with a public ,dedicated ip to each of these lxc's over internet. What is the best way to go about doing so?
1
vote
1answer
119 views

Running a database in LXC

If you need to run your databases in lxc, what happen to your data files? Do you have access to the data file on the host os? I guess the processes show up in the gust os process but who about the the ...
1
vote
2answers
202 views

Practical number of concurrent LXC limit on one node

Is there any practical limit on the number of concurrent LXC containers to run on one box. Obviously, this depend on the node spec (cpu, ram,..) but really what I am wondering is the cost of running ...
1
vote
0answers
693 views

LXC on Precise with linux-image-generic-lts-raring … do I get the full namespace support?

Kernel 3.8 adds full namespace support, as far as I am aware. The package linux-image-generic-lts-raring ("Raring Ringtail kernel") offers this on Precise Pangolin installations (screenshot): Older ...
5
votes
1answer
1k views

Where are lxc containers security borderlines?

My question is around the security of an LXC container. If I am running multiple containers on my box, and give users a separate ssh access to their owned container, can any of those container hack ...
2
votes
1answer
120 views

bash doesn't think lxc is installed, apt thinks it is

This screenshot sums up my problem: I've run apt-get update, upgrade, purge, autoremove and then install again. No luck. Anyone know why this is happening?
2
votes
1answer
2k views

lxc container no outgoing traffic

I am trying to setup a lxc container on a ubuntu 13.04 on a linode VPS, but I can't ping anything outside my host. my container network config looks like this: lxc.network.type = veth ...
2
votes
1answer
183 views

How to change charm service IP from default 10.0.0.X if running juju on local?

I set up a private cloud on local following by https://juju.ubuntu.com/get-started/local/ and configured network followed by How do I run Juju on a local server? (The difference is the IP address in ...
0
votes
1answer
422 views

How do I install a kernel module in an LXC guest machine?

I am attempting to install OpenStack DevStack on an LXC guest machine. One of DevStack's packages requires a new kernel module, but when I try to run modprobe on the LXC guest I get an error: ...
1
vote
2answers
506 views

juju wordpress deploy using lxc

Since I use LXC alot, I've been waiting for the new go version of juju to support LXC again for sometime now! I just reinstalled juju .7 I am running Ubuntu 13.04 my environment.yaml has - type: ...
2
votes
0answers
550 views

Another LXC Puzzle

So my server is running... Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring I stumbled onto lxc when I trying to find something to replace vmware on a small ...
10
votes
2answers
8k views

What should i choose? LXC vs OpenVZ

As an alternative to Virtualizing several Ubuntu Servers im looking into the possibility of using containers. But I am not sure if I should go for OpenVZ or LXC. Can anyone recommend one of them, or ...
2
votes
1answer
746 views

removing old lxc directory “operation not permitted”

I setup some lxc containers (raring) under a /data path to get them off my SSD and I thought they were corrupt so tried to just rm -rf /data/lxc/$name and it clears out all except the rootfs ...
20
votes
3answers
18k views

What is LXC and how to get started?

I will appreciate if someone could introduce me to LXC and tell me how to get started with this technology? In which cases does it make sense to use, and in which should i stay away from it?
2
votes
0answers
48 views

How do I assign an IP address to an LXC container? [duplicate]

I'm trying to start lxc containers with their own public ip address on the network. This is what I've tried so far: On the host The host machine has an IP address of 192.168.255.254. I added a ...
2
votes
0answers
270 views

A Linux container can use an authorized_keys file outside my home directory, but ephemeral containers based on it can't. Why?

In Ubuntu 12.10, I've created an LXC of type 'ubuntu' using the lxc-create utility. I then create ephemeral containers based on this container using the lxc-start-ephemeral utility, and I need to ...
2
votes
2answers
5k views

After starting a particular LXC container with a static IP, no default gateway route is configured

I've got one LXC container that works just fine, but a 2nd one now is mis-behaving. I've configured a static route for it, but it just won't define a gateway after sudo services networking restart or ...
1
vote
1answer
77 views

What format is used in the LXC config file to specify control group settings?

I want to limit the CPU shares of available to two LXC containers running. It appears that this is done by adding the control group definitions into the LXC config file. But what's the format? The ...
0
votes
1answer
341 views

What's the best way to configure the containers to have an IP directly on the LAN

I see that there are a lot of new ease-of-use improvements to LXC in 12.04 & 12.10, and although I see some description to setting up bridged networking such that my containers have their own LAN ...
1
vote
1answer
115 views

LXC: Can I guarantee a certain level of CPU resources to a given container

We're going to use LXC to multi-purpose our hardware while keeping the various applications easy to manage, develop, upgrade, and logically segregated. What I want to know is if I can guarantee ...
10
votes
6answers
5k 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 ...
2
votes
1answer
159 views

per user lxc containers

I am sure I saw how to do this on a webpage around the intergoogle somewhere. But Is it possible to have your system setup so when you create a user on your machine they log into their own LXC ...
0
votes
1answer
271 views

block outgoing internet calls from inside a container

This question is not similar to my earlier post. This is pretty simple I think, I just don't know enough about networking and the ubuntu firewall. I followed this article and setup a linux container ...
19
votes
1answer
4k views

Public IP Address for LXC container

Ok, so I want to know how to do networking on LXC containers. Not just the sort of vague information you get from the other websites, but a true beginner's guide to making them work.. Since most ...
2
votes
1answer
664 views

What is the difference between Ubuntu Server and Ubuntu Cloud under LXC?

I want to set up Ubuntu LXC containers. Is there a practical difference between the /usr/share/lxc/templates/lxc-ubuntu and /usr/share/lxc/templates/lxc-ubuntu-cloud? I only have a single physical ...