Tagged Questions

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
60 views

How to bind LXC instance to a virtual interface in Ubuntu 12.04?

I would like to bind my LXC instance to a virtual interface, eth0:1. All the other tutorials/guides I've seen involve setting the main interface to br0, and restarting the networking service, which is ...
0
votes
1answer
113 views

LXC 0.9.0 error

I am using lxc 0.9.0 and which we compiled and then created busybox container named 'yashu' but started it ,it gives following error yashu@yashu-pc:~$ sudo lxc-start -n yashu lxc-start: failed (98) ...
8
votes
2answers
456 views

How do I “clean up” a machine after using the local provider?

I'm doing some testing and sometimes I have issues with containers and juju. How do I clean up a machine so that I can start using the local provider "from scratch" without reinstalling?
2
votes
1answer
121 views

Getting data from the outside into my linux container?

I'm trying to seperate my database and my PHP application by using LXC. I'm currently having some issues getting my code deployed to one of the containers - I don't understand how this should work. ...
1
vote
0answers
313 views

How to store LXC container's files in another folder

Well the answer seems to be given on https://help.ubuntu.com/13.04/serverguide/lxc.html#lxc-hostsetup page under Using a separate filesystem for the container store title but it doesn't work for me. ...
1
vote
1answer
297 views

Upgrading lxc version

Trying to upgrade the lxc version from 0.7.5 to 0.8.0. Executed following command : apt-get install lxc But it didnt work the package is still 0.7.5. apt-get install lxc=0.8.0 Gives error saying ...
1
vote
1answer
319 views

Ubuntu cgroup architecture: cgroup-lite vs cgroup-bin and default config for lxc, libvirt-bin?

It seems that (at least in Ubuntu 12.04 Precise), the cgroup-lite package is used to provide some cgroup capabilities for packages like libvirt-bin and lxc. It sets up a number of cgroups in ...
0
votes
0answers
379 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
27 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
153 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
128 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
38 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
374 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
180 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
144 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
416 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
160 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
32 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
476 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
477 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
795 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
79 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
198 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
671 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
911 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 ...
1
vote
1answer
111 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 ...
1
vote
1answer
133 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
237 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
708 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
131 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
204 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
634 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
529 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
606 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 ...
12
votes
2answers
9k 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
841 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 ...
21
votes
3answers
19k 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
50 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
290 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
80 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
366 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
127 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 ...