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

Returning to host machine from linux container

I have installed lxc on my server, then created an lxc container (ubuntu template and name is master). Next I started my container master, then logged in by command lxc-console, then I logout from ...
0
votes
0answers
14 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 ...
0
votes
0answers
7 views

Prerouting SSH to lxc container?

I'm trying to ssh on my container but i'm getting these errors OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying ...
1
vote
1answer
29 views

juju error executing lxc-clone local-provider

I'm trying to use juju with local-provider to setup juju-gui (and owncloud eventually). After "juju deploy juju-gui", juju status shows the error: agent-state-info: '(error: error executing ...
0
votes
0answers
26 views

lxc container creation fails with `call to cgmanager_move_pid_abs_sync(blkio) failed: invalid request` (…)

I cannot create the lxc container. It used to work a few days later on this system, though. When I do sudo lxc-create -n abc -t ubuntu, the container's creation process seems to finish successfully ...
0
votes
0answers
14 views

Lxc with ovs and of-controller

For one of my project I have a setup as below on ubuntu 13.04 openflow controller(floodlight controller) | openflow switch | ____ |_________ | | ...
0
votes
0answers
17 views

Modifying sysctl values inside lxc container

I have made several linux containers using the normal userspace tools (not docker), and I have been setting up a test environment. I want to set up two containers to try out heartbeat, which requires ...
0
votes
1answer
19 views

How to bootstrap puppetmaster on lxc on Ubuntu?

Installation of puppet master on Ubuntu has always been a matter of luck and a lot of patience to me - there are many seemingly unrelated things to do which has to be done in the precise order, many ...
1
vote
0answers
20 views

Error Installing lxc 1.0.0

I am trying to install lxc 1.0.0 but I get this error when I run this command I have added the following repos to my sources.lst file deb http://ppa.launchpad.net/ubuntu-lxc/daily/ubuntu saucy main ...
0
votes
1answer
30 views

Snapshot of a LXC container

Please, is it possible to migrate a container to a new node and restart it there ? And How? should i take a snapshot of the container or i transfer the repository to the new node ? (Beginner with ...
0
votes
0answers
23 views

unable to create more than one device with dmsetup inside lxc

I am using lxc for running encryption app.  The app run "dmsetup" on devices added in the container/VM. On running the "dmsetup create clear_sdb1" the device gets created as /dev/mapper/clear_sdb1  ...
0
votes
0answers
23 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 ...
0
votes
0answers
37 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
0answers
39 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
1answer
178 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
69 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
112 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
145 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 ...
0
votes
0answers
124 views

Ubunu 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
169 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
18 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
82 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
76 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
33 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
251 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
90 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
71 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
201 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
90 views

juju fails to spawn local LXC containers

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
22 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
746 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
25 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
184 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 ...
0
votes
0answers
331 views

How to assign an address to an LXC container which is in the same subnet as host?

My host has address 192.168.1.222 and I want my LXC container to have address 192.168.1.88. With the veth interface I could only assign an address that's in different subnet, e.g. 192.168.2.88. But ...
1
vote
1answer
275 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
746 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
708 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?
1
vote
0answers
48 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
0answers
125 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
447 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 ...
1
vote
1answer
878 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 ...
2
votes
1answer
578 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
117 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
92 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
97 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
131 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
645 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
964 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 ...