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

learn more… | top users | synonyms

4
votes
0answers
387 views

Unity 8 - Stuck at login screen

i recently installed Ubuntu Xenial in order to install Unity 8 and test how it work with my graphic card (Intel HD 3000). First I updated the system and then installed U8: sudo apt install unity8-lxc ...
4
votes
0answers
274 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 ...
4
votes
0answers
580 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 ...
4
votes
0answers
156 views

How I can run Android 4.0.4 in chroot on Ubuntu 12.04 on the Pandaboard ES?

I want to run fully functional Android 4.0.4 on my Ubuntu 12.04 installation on the Pandaboard ES with the LXC containers.
3
votes
0answers
224 views

Automouting NFS share inside NAT'd LXC container fails

I have 2x Ubuntu 14.04 LXC setups One is on bare metal hardware and containers are assigned IP adresses directly from the network The other one is on an ESXi virtual machine and using NAT via the ...
3
votes
0answers
116 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. ...
3
votes
0answers
276 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 /lxc/...
3
votes
0answers
194 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 ...
3
votes
0answers
708 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 ...
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 ...
3
votes
0answers
345 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 ...
3
votes
0answers
701 views

How to create dm-crypt device in LXC?

On one LXC container I need to put sensitive data, preferrably stored in dm-crypt encrypted filesystem. When I write sudo cryptsetup luksFormat --cipher aes-xts-plain --size 512 $MyDocsCryptDir/$...
2
votes
0answers
67 views

Autopilot Landscape fails to install

i am hoping someone can answer this, my autopilot keeps failing. After inspecting a log i noticed that LXC containers cannot communicate with external/public network. To make this clearer i can ping ...
2
votes
0answers
20 views

lxc change default user

I'm working on LXC containers, I want to change the default user while creating the container, I was trying lxc-create -t ubuntu -n ct1 -- -u user -p password But this only works with "Ubuntu", if ...
2
votes
0answers
320 views

Unity 8 lxc stucks after login. Unity 8 mir black screen without sursor

I installed Unity 8 mir and unity 8 lxc on Ubuntu 16.04, When log to unity 8 mir, a black screen displayed (without cursor). When log to Unity 8 lxc, It stucks at the loin screen (LightDM). Then I ...
2
votes
0answers
128 views

Where to configure lxd containers?

I installed LXD and created a few containers and while reading about various configurations (specifically about how to run unprivileged containers as root), I saw that the configuration files ...
2
votes
0answers
83 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 ...
2
votes
0answers
160 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 - ...
2
votes
0answers
958 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 ...
1
vote
0answers
52 views

LXD profile. How could it be defined? [SOLVED]

I am not a sysadmin, so I am almost ignorant on this. I have a laptop connected via wlan interface and I want to use lxd containers and the network inside the containers. here https://insights.ubuntu....
1
vote
0answers
41 views

Is the default hypervisor is LXC and how do I change it to KVM?

Is the default hypervisor is LXC, when i install my openstack with juju (sudo openstack-install)? How to change it to KVM? Except the array of EMC, how to use the third array through cinder? Or ...
1
vote
0answers
73 views

lxc and google chrome cannot open display

I'm trying to run google chrome from an lxc container, but it fails despite my repeated attempts and various tweaks. ERROR:browser_main_loop.cc(271)] Gtk: cannot open display: :0.0 Here is my ...
1
vote
0answers
58 views

Can someone with root access enter in a LXD container and see its contents?

If I have a running LXD container, can someone enter into the mount point and see/access contents of it? I'm seeking for a method for virtualization that prevents this, KVM could be a good choice, ...
1
vote
0answers
37 views

How to set up X11 forwarding in byobu inside a LXC container

I currently SSH into a LXC container running in a Ubuntu host machine. I have managed to set up X11 forwarding from the container to my local machine but when I start byobu (inside the container) the ...
1
vote
0answers
378 views

lxc nvidia error: xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

In the process of trying to have lxc container (host 16.04, lxc 14.04) share nvidia I run into this error when starting X in the container: startx -- vt8 I get the following error: ...
1
vote
0answers
113 views

Moving LXD containers to clean install of 16.04

I have a load (~14) of LXD containers running on my 14.04 development machine. I would like to do a clean install of 16.04 but I need to keep my containers. What is the best approach to achieve this?...
1
vote
0answers
217 views

Issue starting LXD containers

I am running Ubuntu 15.10 and kernel Linux odroid 3.10.96-82. My hardware is an ODROID-XU4 ARM based SBC with the Exynos5244 CPU. I am having an issue getting LXD containers to start on this system ...
1
vote
0answers
18 views

Vagrant not shutting down gracefully when shutting down computer

I am working with vagrant 1.7.4, which i use together with lxc 1.1.5 on ubuntu 15.10. I was working with it the last few weeks and never did vagrant halt before shutting down my computer. Now it ...
1
vote
0answers
93 views

LXC multiple unprivileged containers UID & GID questions

I created multiple unprivileged LXC containers successfully. However they all have the same UID and GID as follow: ls -l /.local/share/lxc total 12 drwxrwx--- 3 100000 js 4096 Jan 21 20:20 js-hp-lxc-...
1
vote
0answers
35 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?
1
vote
0answers
91 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
0answers
34 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 ...
1
vote
0answers
196 views

Can I deploy to LXC in a Juno/trusty environment?

This is a follow up on Juju Icehouse-Openstack LXC. It seems that Trusty and Juno combo also do not allow LXC instantiation, i.e., Changing "virt-type" in nova-compute charm does not change ...
1
vote
0answers
717 views

Creating LXC container using iso file

Is it possible to create an LXC container from iso file? Following points might give you better context about what I want I have created my own distro by following "How to create customized ubuntu ...
1
vote
0answers
3k views

LXC container no outgoing traffic with bridged network and public IP address

I try to setup a LXC container with bridged network on ubuntu 14.04.1, but the outgoing traffic seems to be blocked. Ping another IP than the container's one is not working. Actually I tried this with ...
1
vote
0answers
123 views

How to enable loop dev access from LXC?

I added the following line to the LXC container's config file in order to enable access to loop dev. The LXC is running Ubuntu 12.04: … lxc.cgroup.devices.allow = b 7:* rwm … However, the container ...
1
vote
0answers
791 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
0answers
221 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 ...
1
vote
0answers
1k 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
0answers
112 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. ...
0
votes
0answers
23 views

Why is the Xenial lxd image twice the size of Wily and its predecessors?

$ lxc image list ubuntu: +--------------------+--------------+--------+-------------------------------------------------+---------+----------+-------------------------------+ | ALIAS | ...
0
votes
0answers
11 views

Running an LXC in parallel to an LXD

I'm a newbie to LXDs. I have an LXC which should start a few services upon its creation. Its works as expected on a machine having no LXDs but if an LXD is running on the same box, services within the ...
0
votes
0answers
19 views

Ulimit for user asterisk inside an LXD container

I have a bare metal ubuntu 16.04 server with a centos 6 LXD container within which I wish to install FreePBX/asterisk which I'm building from source. The building and install process was going very ...
0
votes
0answers
23 views

VLAN trunk to LXD containers

I'm playing around w/ LXD containers on Xenial. What I'd like to do is to have an 802.1q trunk coming into my physical host, and have the tagged traffic reach the containers, where I can choose which ...
0
votes
0answers
35 views

Move phys interface to lxc container

I’m trying to move wlan0 to my LXC(Ubuntu 14.04) container "cn1" In config file I have : lxc.network.type = phys lxc.network.link = wlan2 lxc.network.flags = up lxc.network.name = wifi2 I ...
0
votes
0answers
24 views

Network manager shows LXC network as Ethernet

Since I installed LXC, the network manager icon in the top right corner always shows me as being "online" ie the double arrow symbol that appears when you have an Ethernet connection. Since the LXC ...
0
votes
0answers
20 views

if i install my ubuntu openstack on LXC, can i use cinder with shared storage(DAS/SAN)?

I installed my Ubuntu Openstack on LXC with Juju, and I want to know if I can use Cinder with shared storage (DAS/SAN)? When I want to use the Huawei SAN, I edit the file "cinder.conf" and restart ...
0
votes
0answers
34 views

Starting a LXC container hangs

I just installed lxc 1.0.8 on an Ubuntu 14.04 system, created a container [2031] sudo lxc-create -t ubuntu -n lucid -- -d ubuntu -r lucid -a amd64 and started it [2032] sudo lxc-start -n lucid -F ...
0
votes
0answers
135 views

Bridge/networking/LXD/emby server configuration trouble

It is not exactly clear to me how to google this question, so please forgive me if this is answered before or related to something else answered before. The symptoms: On boot there is no Internet ...
0
votes
0answers
33 views

Access to host X11 from multiple containers (lxc) sharing the same GPU is limited to the last activated container

I have a server and 2 lxc containers sharing the GPU (nvidia gtx980 364.19) Vt7, Vt8 and Vt9 When trying to access the host X11 from any of the containers. It only works from the container that was ...