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

lxcstart hangs on the container if it is already created

I am exploring containers with the lxc command and I noticed this: root@itaswi01:~# lxc-start -n cn-01 -l trace -o debug.out If I try to start a container that's already started, the command hangs. ...
0
votes
1answer
16 views

ufw not working in an lxc container

I've created an LXC container on Ubuntu Server 14.04.1 using the default template. I log into it, and run the following: sudo apt-get update sudo apt-get install ufw sudo ufw allow 22 At this ...
1
vote
1answer
44 views

LXC is returning an error when creating new unprivileged containers

I recently migrated to a new server (Ubuntu 14.04, dedicated, not virtual) and installed LXC 1.1.2. I had LXC set up on my previous server without any trouble but on the new server I'm consistently ...
0
votes
1answer
79 views

How to persist configuration changes accross restart with LXD containers?

I am experimenting with LXD, but I'm stuck with a seamingly simple problem: I can't make my bridge config persistent. The host server has a birdge br0. By default, lxd managed containers will use ...
0
votes
1answer
85 views

How do I allow /dev/net/Tun in a LXD managed LXC container?

I am trying to get Openvpn run inside a LXD/LXC container, and redirect traffic coming to the container to the VPN. The purpose is to replace a fully fledged VM that does exactly that (and toy with ...
0
votes
0answers
26 views

Why arn't LXC instances registered in MAAS DNS?

Using the machine tab of the juju-gui charm, I can add LXC instances without deployed charms on them. I'm not confident enough with the idea, that on a high abstract level of a machine, there is any ...
2
votes
0answers
41 views

Wordpress deployed with JUJU using LXC fail

When I deploy the wordpress and mysql charms with juju on my maas controller like so: juju deploy --to lxc:0 wordpress juju deploy --to lxc:0 mysql juju add-relation wordpress:db mysql:db --debug ...
1
vote
1answer
54 views

Adding bridge for LXC breaks NAT/DNS

I am having a issue with a small home server. This server operates as a DNS/DHCP/NAT. I am also trying to add a few LXC instances with JUJU however I am running into a issue with the bridge. When I ...
0
votes
1answer
34 views

lxc launch hangs for lxd

New to lxd, and follow the article https://insights.ubuntu.com/2015/04/28/getting-started-with-lxd-the-container-lightervisor/ , also refer the https://github.com/lxc/lxd for upgrading to latest lxd ...
0
votes
1answer
35 views

LXC starts up, but the networking is not set up - what is preventing this?

On Ubuntu 14.04 Trusty, I had LXC running, but recently I upgraded from 1.0.7 to 1.1.2 (as per the instructions here: https://launchpad.net/~ubuntu-lxc/+archive/ubuntu/stable). However, I found that I ...
1
vote
0answers
55 views

LXD and Juju management

Afternoon! Would it be practical to create LXD containers on different servers and in the container use Ubuntu and juju? If it is, could juju see LXD containers as different machines?
2
votes
0answers
40 views

Juju lxc deploy not working!

I have a problem deploying services on lxc containers.I have set up maas and juju and have 4 servers deployed. Here is a juju status: environment: maas machines: "0": agent-state: started ...
0
votes
0answers
21 views

Standard LXC Container configs for shell scripting in Ubuntu?

I would like to do computation in neutral environment. I got a tip about Linux containers here. I am not sure how this project about Linux containers is managed, like who is the central board. ...
0
votes
0answers
69 views

Can I create a kvm inside an lxc?

I want to create a kvm inside an lxc container, but when I try it I get "Permission denied": $ qemu-system-x86_64 -enable-kvm -m 768 -localtime -nographic -net user -net nic,model=virtio -drive ...
0
votes
0answers
22 views

lxc-ls option flag error - lxc_container: command get_init_pid failed to receive response

I'm trying to use the lxc-ls command to list LXC containers on Ubuntu 12.04, but I'm getting a get_init_pid error whenever I invoke the command with an option flag. Here is an example session: $ sudo ...
0
votes
1answer
90 views

lxc-create: bad template: download

I'm running Ubuntu 12.04. According to the Ubuntu Server Guide, there should be a -t download template option for the lxc-create command. However I get the following output: sudo lxc-create -t ...
0
votes
0answers
57 views

AppArmor Error: “invalid VM definition” after starting lxc on updated version of libvirt (1.2.12)

I am trying to start an LXC on a newer version of libvirtd but it fails to start with the following error: $ virsh -c lxc: start textlxc error: Failed to start domain testlxc error: internal error: ...
0
votes
0answers
15 views

Save lxc container on another partition

I'm running out of space on my / partition. Can I install/use /home partition with lxc containers? (how to allocate different hdd for use of containers?)
0
votes
0answers
26 views

No network on LXC container running vivid on precise host

I already run trusty containers on my precise host. I have no issues. I'm trying to run a vivid container on the same host. The container work, but there is no network. The container doesn't get ...
0
votes
0answers
172 views

Installing a GUI application in LXD/Docker with a GUI installer

I have an old proprietary software which I need to run on newer distro. I hope containers are the solution. The problem is that the old software installs itself from a GUI application which require ...
1
vote
0answers
51 views

Container namespace isn't visible in ip netns list

I wonder why we can't see the namespaces created by lxc-create on the output of "ip netns list" For example I create a namespace like below lxc-create -t download -n cont1 -- -d ubuntu -r trusty -a ...
0
votes
2answers
75 views

Change data directory of Docker

How can I change the data directory of Docker where docker save the container (or where lxc save the container)? I have in my server a ssd and a hard drive ant I want that the container will be save ...
0
votes
1answer
46 views

systemd in LXC endlessly trying to umount pam_mount home

I use the following $HOME/.pam_mount.conf.xml to mount an LXC container filesystem when I log in via SSH: <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE pam_mount SYSTEM ...
0
votes
0answers
147 views

Connecting to lxc container via SSH using lxc user

I noticed that the username/password I use to connect to a newly created LXC container via lxc-console doesn't work with ssh (with sshd running in the container). When I try, I get Permission denied ...
0
votes
0answers
190 views

Route all LXC container traffic through host VPN connection

I have a host with an OpenVPN connection working on tun0 but not routing traffic through it. How would I configure an LXC container to route all it's traffic through the OpenVPN connection on tun0 ...
1
vote
0answers
140 views

How can I restrict an LXD guest to using a single public IP address?

I have an Ubuntu 14.04 LXD container on an Ubuntu 14.04 Server host (using lxd-git-master PPA). I want to prevent it from reaching any other containers or from communicating with the public Internet ...
4
votes
1answer
384 views

Problem setting up a user-space LXC container

Several evenings, I already try to get an LXC installation working with user-space containers. Since it's going to be a new server, I don't care (yet) too much about distribution and release, so I ...
0
votes
0answers
37 views

How can I make one legacy sysvinit script (xen) start before an upstart job (lxc)?

I am running Xen with an Ubuntu trusty Dom0 in the following configuration: FreeBSD DomU vault exports ZFS filesystem /storage/backuppc via NFS. Ubuntu Dom0 keep mounts vault:/storage/backuppc at ...
1
vote
2answers
537 views

Cannot auto-start LXC containers created with LXD

I have created a lxc container easily with LXD tools however I couldn't find a way to auto-start it on reboot. (Ubuntu 15.04) For LXC it's said that adding lxc.start.auto = 1 to the container config ...
1
vote
0answers
46 views

Is there a way to configure lxd containers with cloud config at provision time?

Specifically, with the CLI tools- not openstack. I'm looking at what a local dev setup with lxd might look like but am coming up empty handed when it comes to configuring new containers. Are there ...
4
votes
1answer
220 views

How can I run a Snappy / ubuntu-core image with LXD

I would like to run Ubuntu Snappy in an LXC container. There isn't an existing snappy image at the default https://images.linuxcontainers.org repo, but I was wondering if this is something others ...
1
vote
2answers
189 views

Is it possible to install LXD directly on a Ubuntu Snappy Core?

I'm running a Ubuntu Snappy Core (2015-04-28, version 45). I want to install LXD directly on the snappy host. Is this possible? Thx! --todd
0
votes
0answers
48 views

Up to date LXC template for Ubuntu

Currently we are using LXC to deploy a web application, each time we deploy a new and separate container is freshly built. The container is based on Ubuntu 14.04, but the problem is that the template ...
1
vote
2answers
1k views

Share a folder between host and ubuntu lxc container

How can I share a folder between the host system (ubuntu 14.04) and an ubuntu lxc container? I tried mounting the folder on the host: sudo mount --bind /media/data/share ...
0
votes
0answers
80 views

How to connect to a LXC container from the LAN?

I have a server with the latest Ubuntu server 64-bit install in my home wlan. I use ssh to connect to it from my laptop. The server /etc/network/interfaces file: # The loopback network interface ...
2
votes
0answers
512 views

How to create archlinux lxc [closed]

I'm trying to create arch linux lxc on Ubuntu 15.04 server. First: lxc-create -t archlinux -n test fails with errors that pacman and pacstrap could not be found. I solved this by installing pacman ...
0
votes
0answers
70 views

Installing Web server on linux containers?

Is it possible to create a container and install a web server into it ? i.e. apache web server and run it ? Im doing a project on ns-3 using tapbridge and I need one of the nodes to act as a ...
-1
votes
1answer
90 views

IP Address Linux Containers

Please, i have a problem i try to find a solution since days i'm a beginner with linux (networking) In our cluster (10 nodes), we deploy the same image file on each node. So each node has a different ...
1
vote
2answers
75 views

New Openstack Autopilot stuck at: In progress - Configure availability zones - 98%

I see in landscape0:job-handler-1.log: 2015-03-18 14:00:13 INFO root RetryingCall for '_create_networks_and_router' failed, trying 119 more time(s): 2015-03-18 14:00:13 INFO root Traceback (failure ...
1
vote
0answers
22 views

Ping to LXC container

Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn’t work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) The blue arrows means that the ...
0
votes
0answers
19 views

Possible to access lxc guest containers via DNS?

Assume I have a VPS server available at dev.myserver.com- I would like to be able to run 1 or 2 services from this one server, for example a saltstack service and a Jenkins instance. Now to keep the ...
0
votes
0answers
108 views

Ubuntu LXC container: “unable to set ”nproc“ resource limit: Operation not permitted”

I'm trying to install mongodb in a Ubuntu container, I followed these instructions to set up the Ubuntu 14.10 host: https://linuxcontainers.org/lxc/getting-started/ Running apt-get install mongodb ...
0
votes
0answers
204 views

no login prompt for lxc

I installed and setup an LXC according to these instructions... https://www.digitalocean.com/community/tutorials/getting-started-with-lxc-on-an-ubuntu-13-04-vps Everything was working fine until I ...
0
votes
0answers
27 views

How could I set a file overlay on my whole system?

I need to build and test system components on my Ubuntu laptop and I want to be sure that it won't damage (or replace any my current components) (I plan to build and test gtk, gstreamer and ...
1
vote
1answer
134 views

Container lxc has two IP: One of them is bridge's. When connect with juju, connects to bridge's

If I install OpenStack with openstack-installer (autopilot) and the bootstrap for the first environment is launched over the VM that comes with openstack-installer pachage ...
0
votes
1answer
65 views

arkose alternative for trusty lts

arkose got dropped from the repos as it was no longer compatible with newer kernels: https://bugs.launchpad.net/ubuntu/+source/arkose/+bug/1299904 Bare LXC is a poor substitute, as it only offers a ...
0
votes
0answers
67 views

Can't bootstrap juju in lxc environment

I am using LXC to make JUJU. But when I bootstrap : Bootstrapping environment "local" Starting new instance for initial state server Building tools to upload (1.21.1.1-trusty-amd64) Installing Juju ...
0
votes
0answers
45 views

Is it possible to use both libvirt and lxc userspace tools?

Libvirt is pretty easy to use and has the bonus of having cross compatibility with other hypervisors. I was curious, is it possible to create a container and manage it with both virsh and lxc-* ...
4
votes
1answer
173 views

Juju and problem with subcontainers deployment on LXC

I am trying to deploy OpenStack with Juju and Autopilot but I have a big problem and I cannot figure out what to do. Basically, I have a Juju local environment with LXC and it seems to work well if I ...
1
vote
1answer
386 views

Apt-get fails to fetch inside an LXC container

I have an Ubuntu 14.04.1 LTS server that's running LXC containers. The containers run Ubuntu 14.04.1 too. Network config of host is pretty standard, static IP, ISP's DNSes (IP1/IP2) plus google's : $ ...