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

learn more… | top users | synonyms

4
votes
1answer
374 views

Start a screen session inside LXD-managed container

I'd like to start a screen session inside an LXD-managed container so that I could detach running processes and maybe re-attach in the future when I want to check on their status. I tried to attach ...
0
votes
0answers
54 views

LXC Ubuntu container. Hash Sum mismatch

I am installed Ubuntu container (wily) onto Ubuntu host(with wily too) with such command: # lxc-create -t download -n es1 -- --dist ubuntu --release wily --arch amd64 Everything fine, I can ping ...
0
votes
1answer
131 views

Error as a result of purging unity8-lxc

user@user-K53SD:~$ sudo apt-get purge unity8-lxc Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: unity8-lxc* 0 ...
0
votes
0answers
56 views

How to make a mounted harddrive available inside an LXC container?

I want to make a mounted hard drive available inside an LXC container for a postgres database. when I run sudo lsblk on the host I can see the hard drive in the following way: NAME ...
3
votes
0answers
75 views

How can I kill a stuck LXC container?

I have a new unprivileged LXC container that I just cannot seem to stop. lxc-stop -n dl hangs. lxc-stop -k --nolock -n dl hangs. lxc-ls hangs. lxc-attach -n dl hangs. Nothing works on this container. ...
0
votes
1answer
144 views

debootstrap nested in the LXC container fails to mount proc because of apparmor

The command that is run inside an amd64 LXC container: debootstrap --arch armhf --foreign --variant=buildd --components=main,restricted,universe,multiverse vivid /var/lib/schroot/chroots/vivid-armhf ...
0
votes
1answer
104 views

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs?

Do LXC containers have access to PCI components such as PCIe SSDs and GPUs? Would the drivers need to be installed on the host, guest or both? Do they support exclusive usage by using PCI ...
0
votes
2answers
175 views

apache2 not responding to requests from outside the local network

My apache2 install on 15.10 is responding fine when called from the local network segment. http works externally, https times out. I spent a couple days checking everything the docs suggest. Apache ...
3
votes
0answers
227 views

Failed to reset devices.list on /lxc/mailserver/system.slice/dovecot.service:

I am running dovecot in an 15.10 lxc container. When I restart the service I get the following error in the syslog. Dec 4 03:02:04 mailserver systemd[1]: Failed to reset devices.list on ...
6
votes
1answer
290 views

Allow a LXC container user to write as an external user to a mounted directory

Apologies for the title, the setup is actually quite simple. I have a host with a user called oli and a directory called /media/steve/incoming that oli can read-write-execute in. Within that I have a ...
0
votes
0answers
46 views

LXC without NAT

I have an LXC Container that I want to be "directly" connected to the Internet, not as a NAT. I have an IPv6 RA agent that would assign it an IPv6 address and/or DHCPv4 for a regular 192.168.1.0/24 ...
0
votes
0answers
136 views

Can't create LXC containers due to “E: Couldn't download packages”

I want to install LXC on my Ubuntu 14.04 LTS so can further have a virtual Ubuntu. And I've inputted apt-get update, upgrade, install lxc. Everything seems fine. But when I try to create a virtual OS, ...
0
votes
0answers
16 views

LXC strorage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in /etc/lxc/lxc.conf ...
0
votes
0answers
39 views

change lxc storage directory

I am trying to change my lxc storage directory from /var/lib/lxc to something else like /var/directory1 I added the line lxc.lxcpath=/var/directory1 in the lxc configuration file in ...
0
votes
0answers
40 views

LXC to use IPv6 from HE tunnelbroker

I installed lxc on Ubuntu 14.04 64 bit. All work well. The containers can access internet via the default lxcbr0. Now I get a /64 and a /48 from Hurricane Electric Tunnel Broker ...
0
votes
1answer
122 views

lxd forkstart: the famous error

I just started diving into the cloud computing, trying to hypervisor my ubuntu server. I started with LXD but it raises few issues at early stage. Whenever I want to create a container lxd send this ...
0
votes
0answers
41 views

How can I use LXC to create a working copy of the Ubuntu Development Branch on my system?

What I mean is that the unity8-lxc package allows one to log into a working Unity Next distribution (rather than the unity8 package from Trusty) from LightDM. Is there a way of using LXC to do this ...
0
votes
0answers
14 views

lxc-container with 15.04 under 14 LTS

Does anyone have experience with running the 15.04 release under an LXC-container in a setting where the host OS is 14 LTS server? I was running matching Ubuntu version in the container before (that ...
1
vote
1answer
285 views

LXD container refusing connections from the host

I'm pretty new to LXD having recently discovered it. I'm making progress with the basic interactions with images and containers - it looks promising. Currently I am stuck on a problem connecting ...
1
vote
1answer
1k views

Ubuntu openstack single installer on ubuntu 15.10 Wily

The only release I can successfully run the entire single-installer on is 14.04. Since then on 15.04 and now on 15.10 I cannot get the single-installer to succeed. on 15.10 I have tried each of ...
0
votes
0answers
19 views

seccomp inside lxc container seems not working

I am trying to apply seccomp security policy inside lxc container. I wish to restrict the application running inside container from using system calls like fork, fwrite. I explored a given seccomp.c ...
1
vote
0answers
210 views

How-to upgrade LXC container after `do-release-upgrade` to Wily?

I have just done a do-release-upgrade -m server from Linux boson 3.19.0-31-generic #36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015 x86_64 Linux-3.19.0-31-generic-x86_64-with-Ubuntu-15.04-vivid to ...
1
vote
0answers
34 views

User login directly into LXC container

Is it possible to setup host system so that some users will be immediately in corresponding LXC container after logging in?
2
votes
2answers
860 views

Adding a shared host directory to an LXC/LXD Container

I have been experimenting with LXC/LXD on Ubuntu 14.04 and it's all working great. I just need to figure out how to get shared directories working between my host machine and a container so I can ...
1
vote
1answer
548 views

unity8 with ubuntu 15.10

I want to use unity8 preview with ubuntu 15.10. But i am unable to log in as administrator. Only guest session is accessible. When i try to login with admin password the screen just hangs and become ...
0
votes
0answers
79 views

Upgrading kernel from 3.2 to 3.13 on Ubuntu 12.04 with preexisting LXC containers

I'm running several LXC containers on Ubuntu 12.04.5 LTS (Precise Pangolin). The current kernel is 3.2; I would like to upgrade the kernel to version 3.13 (or later) so that I can use Docker. Will ...
0
votes
1answer
324 views

Unprivileged LXC Container fails to boot on startup with 'call to cgmanager_create_sync failed'

I have some issues trying to start an unprivileged LXC container in my machine. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: ...
0
votes
1answer
389 views

How to Migrate Physical 12.04 Machine into LXC

Is there a standard way (or standard tools) to migrate physical machines into LXC containers for Ubuntu? I'm working with 12.04.5 machines. I have come across https://github.com/deimosfr/lxc-convert ...
0
votes
0answers
88 views

14.04 no internet connection when I up the bridge interface (for LXC container)

I have VM Ubuntu 14.04 32bit running in VMware Workstation on Win 10. I'm trying to set up the LXC container having its own IP address so I set the bridge interface in /etc/network/interfaces (tried ...
0
votes
0answers
64 views

How to forward network traffic for a lxc-container, bridged to a LAN?

I have following setup: Router [192.168.4.1, 192.168.5.1] Client01 [192.168.5.2] ---------------------------------+ Router LXC-Host01 [192.168.4.2 (bridge), 192.168.5.3] -----------+ Router ...
0
votes
1answer
34 views

Change the DHCP range for LXC without changing physical interfaces

I am trying to change the DHCP range of my LXC containers. By default , ow addresses given by the dhcp are 10.0.3.X. how can I change this range so my containers can have IP in the range 10.0.2.X. PS: ...
2
votes
1answer
295 views

Manually provision an existing LXC container in Juju-local

Is it possible to manually provision an existing LXC controller in juju (1.24)? I have tried following (ubuntu-trusty): Setup juju local Create an lxc container, install systemd-services and ...
2
votes
0answers
70 views

Juju local / add-machine / lxc: How to specify hostname of new lxc-machine

Is it possible to specify hostname (and machine-name) when creating a new lxc machine in juju-local? For excample, after a fresh juju local bootstrap, execute: juju add-machine This will create a ...
0
votes
0answers
49 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. ...
1
vote
1answer
335 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
710 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 ...
4
votes
1answer
1k 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 ...
2
votes
2answers
779 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
84 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 ...
3
votes
0answers
160 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
205 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
142 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
171 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 ...
3
votes
1answer
311 views

LXD and Juju management

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
1answer
84 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
39 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
221 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
46 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 ...
1
vote
2answers
570 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 ...
4
votes
1answer
275 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: ...