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

learn more… | top users | synonyms

1
vote
0answers
124 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!
2
votes
1answer
1k 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
29 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
337 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
346 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
754 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
63 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
160 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
576 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
755 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
126 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
108 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
113 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
184 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
683 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
113 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
174 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 ...
-1
votes
0answers
136 views

LXC: running Virtualbox inside a container

I've installed virtualbox inside a lxc container. However, when I try to start a VM I get the error message: kernel driver not accessible (rc=1909) ....permission problem with /dev/vboxdrv. This ...
0
votes
1answer
354 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
489 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
526 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
7k 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
705 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
16k 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
258 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
4k 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
75 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
320 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
111 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
4k 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
155 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
237 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
637 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 ...
1
vote
0answers
109 views

How to grant access to raw partition for lxc container

I'm using the Linux Containers as set by default in the package lxc. I'd like to give one of the container an exclusive access to one partition. Does anybody know, how to configure it? I'd like to ...
4
votes
1answer
3k views

Why does upstart fail to start my juju service with Unknown job: juju-ubuntu-0?

I'm having issues launching juju on an lxc container through regular juju deploy commands: juju bootstrap juju deploy ubuntu The ubuntu juju status continually says pending. The LXC starts, and I ...
1
vote
1answer
294 views

Dual-use guest for LXC and KVM?

Would it be possible to install (and maintain by simple means, such as apt-get dist-upgrade) a "dual-use" setup? I.e. install an guest instance in a way which allows me to run it either as LXC or as ...
1
vote
0answers
74 views

What facets should I consider when deciding which guest to jail in (“full”) KVM and which in LXC?

Currently I am migrating to a new server. The old one ran 10.04 as host system and a few more 10.04 and Debian 6 as KVM guests. This was alright, because the processor had support for virtualization. ...
3
votes
0answers
179 views

How do I get the VT running X in my LXC container to my host?

I'm trying to run Lubuntu within an LXC container on my host already using a GUI. Is it possible to redirect the X output from the container to say; VT9 rather than VT7? If so where is the VT7 ...
2
votes
1answer
2k views

How do I migrate a Virtualbox image to an LXC container?

Is there a way to migrate a Virtualbox image to a LXC containter environment? I can easly extract a tar of the Virtualbox VM's file system. I'm kind of hoping there's a way to create an 'empty' ...
4
votes
1answer
6k 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
976 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 ...