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

CentOS lxc on Ubuntu 12.04

I am trying to use CentOS 6.5 lxc on Ubuntu 12.04, but I have problems with installing rpm package on CentOS. Here's the error: [root@pgr ~]# rpm -ivh ...
1
vote
0answers
11 views

setting macvlan bridge for lxc containers

I am trying to create containers which can be accessed from outside. So i've chosen the macvlan mode of networking which can assign an IP to the containers in the same network as the host. I have ...
1
vote
1answer
17 views

juju-quickstart: error: bad API response: cannot upload charm to provider storage: 500 INKApi Error

I have been able to use Juju from my home machine, however, when I attempt to use it from my work machine (which sits behind a proxy) I get: (Output from juju quickstart --debug) retrieving the Juju ...
0
votes
0answers
33 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 ...
0
votes
1answer
49 views

how to add lxc containers to host's DNS so that getaddrinfo() can resolve them?

I'm running LXC containers on Ubuntu 12.04 with a 3.8 kernel. The containers are on a host-only network, so their addresses are managed by dnsmasq. Is there a way to configure the host so that ...
0
votes
0answers
59 views

Juju Icehouse-Openstack LXC

Trying to instantiate an LXC image on a compute node, by changing virt-type (string) field, under nova-compute charm to lxc. This, however, does not update the virt_type, in nova-compute.conf file. ...
0
votes
0answers
16 views

Can I share a host process with linux container?

On my Ubuntu 12.04 host, I have created a linux container p2. On the host I have nginx installed and running. My question - Can I share the running nginx on host with one or more linux container? By ...
0
votes
0answers
11 views

Guest session on server

I want to execute user supplied codes as guest session so it will not affect the opperationg system. When the server is running, is it possible to log create a guest session on server and execute user ...
2
votes
0answers
37 views

LXC bridging with two NICs

I am setting up a server to host a number of LXC containers, for now just isolating web and db services. The server I am using has two NICs and I'd like to use one for host traffic and one for ...
1
vote
1answer
51 views

Deploying multiple services in LXC containers in a VM hangs

To get started with juju, I installed it on a local machine(actually a xUbuntu VM running on windows). juju-gui got deployed successfully. Then used the gui to deploy mysql. But it's been hours and ...
0
votes
0answers
20 views

logging into a LXC container

Trying to create LXC container to run 32bit Wine on my 64bit machine. I have done all as instructed. Then coming to the part, where to start the container: sudo lxc-start -n my32bitbox After a ...
0
votes
1answer
62 views

Communication between Linux Containers (lxc)

I have a container for my Apache webserver, and another one for my Mysql server. I have given them 2 static IPs NAME STATE IPV4 IPV6 AUTOSTART ...
2
votes
2answers
48 views

It is possible to hibernate an LXC container?

I know about lxc-freeze and lxc-unfreeze, but as I understand it, these simply pauses the container, similar to sending SIGSTOP and SIGCONT to a process. If I reboot the host, then the containers will ...
0
votes
0answers
25 views

Linux Container Creation

I am new to linux containers and when I create a linux container with the help of the command lxc-create, it comes up with the following error : configuration path /var/lib/lxc not found The command ...
1
vote
2answers
102 views

Can I set up MAAS and Juju on one machine?

Here is what I want to setup: MaaS on a single PC MaaS providing the host OS for 4 VMs (3 LXC + 1 KVM) Using Juju to deploy services on the 4 VMs (nodes on MaaS) How can I accomplish this?
0
votes
0answers
21 views

cloning lxc container using python3-lxc

I am experimenting with lxc on ubuntu 14.04. In order to manage a couple of lxc instances I am using python3-lxc. Using pyhthon3-lxc, I do fail to clone an existing container: >>> import lxc ...
1
vote
0answers
129 views

Boot problems. How do I fix it?

I was thinking to play with my android phone through usb, so I did an apt-get install android* on my laptop. This this broke my boot. I can not boot it normally, but if I go into recovery and then ...
3
votes
0answers
102 views

apt-get in LXC container is very slow on Ubuntu Server 12.04

I haven't had much luck in finding out the source of the issue, whether this "issue" is simply a limitation of LXC or zfs, or whether this issue is specific to Ubuntu. The issue is quite simply that ...
2
votes
2answers
57 views

what is a configuration to allow access to juju-gui in local provider

I want to install juju-gui using local provider (re lxc) on a cloud instance. However, the problem I have is that juju-gui will be installed into an lxc container itself and that container will be a ...
1
vote
2answers
50 views

Reflink cloning of LXC container on btrfs?

I use btrfs on my system and have created an LXC container with Xubuntu on it. Now I'd like to use that as a base for other containers. Since it's a btrfs, I can use cp --reflink to create a ...
0
votes
1answer
548 views

lxc containers fail to autoboot in 14.04 trusty using 'lxc.start.auto = 1'

In trusty 14.04 containers fail to autoboot despite all settings being set as 14.04 requires. They show all as STOPPED I have correctly configured 2 LXC containers: calypso encelado They run ...
1
vote
1answer
36 views

Juju local shared folder

I'm using juju local and I want to create a shared folder between the host and one of the juju machines. How can I accomplish this? I attempted these instructions with no success : ...
0
votes
1answer
466 views

lxc trusty (ubuntu 14.04) network interface is not starting

My host environment is Ubuntu 12.04 LTS. I have created (as root) a container as follows: lxc-create -n bitshares2 -t ubuntu -- --release trusty I first start as a daemon lxc-start -n ...
0
votes
0answers
14 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
203 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
77 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
108 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
198 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
25 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 | ____ |_________ | | ...
1
vote
0answers
168 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
89 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 ...
0
votes
1answer
167 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
30 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
53 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
50 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
74 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
292 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
94 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
234 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
225 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
1answer
220 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
284 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
135 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
104 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
311 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
134 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
118 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
307 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. ...