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

learn more… | top users | synonyms

3
votes
1answer
12 views

Cannot launch lxc containers get 'error: a remote name must be provided'

I'm trying to start using lxd/lxc containers using the series of blog posts from Stephane Graber: https://www.stgraber.org/2016/03/19/lxd-2-0-your-first-lxd-container-312/ The problem is that no ...
0
votes
0answers
23 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
19 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 ...
1
vote
0answers
35 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 ...
2
votes
0answers
56 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
17 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 ...
0
votes
0answers
31 views

Start a Xenial lxc container on a Trusty machine

I'm having trouble starting a xenial lxc container on my trusty machine. I had no problems installing the container (by following this guide, which also allowed me to create and start some other ...
1
vote
0answers
45 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 ...
0
votes
0answers
15 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 ...
1
vote
0answers
45 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, ...
0
votes
0answers
27 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
102 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 ...
1
vote
2answers
126 views

LXD-managed containers (on ZFS) vanish after deleting a different one

I've set up a few containers on Xenial server, using a ZFS dataset for storage (I'm not sure if that's relevant; we'll get to that). They were all working fine. Trying to restart one of them, mail-...
1
vote
1answer
73 views

(LXD) LXC container not starting services automatically

Using: Ubuntu Server 14.04 x64 LXD 2.0.0 I have several containers (all of them running "alpine-edge") in which I'm running lighttpd + mysql. The problem is that each time I restart the ...
0
votes
0answers
29 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 ...
0
votes
1answer
88 views

Lxd zfs is not clear what to do

Unfortunately lxd has very short and uncomplete document site... I launched a container on my needs but after many successful and wasted tests ! Now i configured lxd and use zfs file system and ...
0
votes
0answers
16 views

How can i use lxc instead of vmware/virtualbox to virtualize an older version of ubuntu?

For compatibility reasons, i need to run an older version (14.04).Using vmware/and or virtualbox is both slow (gui part) and has a significant impact on my laptop battery life. Is there an easy way to ...
1
vote
1answer
67 views

Landscape Autopilot install stuck on “Add Juju machine in an LXC on 'the-to-be-networking-machine'” (90%)

My question appears to be very similar to the following mostly unanswered question. I have an Autopilot installation (I followed these instructions) with one MaaS master, one Landscape Autopilot ...
1
vote
1answer
112 views

Network Bridge inside VM for LXD

I use ubuntu 16.04 in a kvm virtual machine. For lxd containers I try to make a network bridge, so the containers are available in our local network. The interface file looks like this: auto eth0 ...
0
votes
0answers
17 views

Gcompris and Gbrainy are not working in LXC container

We have a server which runs 14.04.4 LTS. Inside of it we have an LXC container with 12.04 Precise in it. We are running edubuntu-desktop with all the packages. For some reason Gnome apps are failing. ...
0
votes
0answers
62 views

Running keepalived with vrrp in unprivileged lxc container

I am trying to get a keepalived running in an unprivileged lxc container, but I get the following error in the syslog. May 8 10:56:01 dnsmasq Keepalived_vrrp[11025]: Initializing ipvs 2.6 May 8 10:...
0
votes
1answer
152 views

Configure the LXC/LXD network bridge after uppgrading from 15.10 to 16.04

The upgrade to 16.04 breaks the LXC/LXD network bridge configuration used in 15.10. What changes do I need to make to get the new setup working? I want the guest to be on the same network as the ...
1
vote
0answers
33 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 ...
0
votes
0answers
11 views

lxc - p2p1 does not come back after lxc-stop

I can start the container, connect to it, networking works, etc. Everything looks ok. But when I stop the container and try to restart it, p2p1 is no more available and restarting fails. When I ...
1
vote
1answer
80 views

Openstack LXC containers missing DNS

In my newly deployed openstack environment, I noticed that CEPH was failing within the 3 LXC containers. 016-05-03 02:18:38 INFO juju-log Unknown hook update-status - skipping. Reading package lists.....
2
votes
0answers
249 views

Running Ubuntu Desktop in LXC/LXD on top of Ubuntu Server

Is it possible to have Ubuntu Desktop running in an LXC/LXD container on top of Ubuntu Server, displaying Ubuntu Desktop's graphical X session on the physical screen that Ubuntu Server outputs to? ...
0
votes
0answers
293 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: ...
0
votes
1answer
254 views

How to use lxc profile set?

I would like to edit LXD profiles from the command line. This is done by lxc profile set: lxc profile get <profile> <key> Get profile configuration. lxc profile ...
2
votes
0answers
285 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 ...
0
votes
1answer
92 views

unable to use nvidia graphics in lxc container after upgrade to ubuntu 16.04

I have upgraded my system from 15.10 to 16.04 and the container from 14.04 to 16.04. I have used the default cuda/nvidia driver in both. cuda 7.5 and nvidia 361.42 When I start the container I get ...
0
votes
0answers
23 views

How to use a video device in a lxd container?

I would like to use the host video device (/dev/video0 for instance) in a lxd container. There is information about how to configure devices in lxd but it only mentions char and block devices (which ...
1
vote
0answers
100 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?...
0
votes
1answer
82 views

Why using (or not) dedicated bridges with LXD?

Question: Are there specific drawbacks of using a single bridge, as opposed to a dedicated one per container? Details: I have a host which runs a few LXD containers. I initially decided to have one ...
0
votes
0answers
45 views

LXD duplicates root subuid and subgid entries

I have had LXC installed and have a number of unprivileged containers running as root. To achieve this, I created entries in /etc/subuid and /etc/subgid for root, as follows: root:200000:65536 ...
1
vote
0answers
178 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 ...
4
votes
0answers
361 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 ...
0
votes
0answers
18 views

lxcbr0 stop container communication

I'm creating LXC containers to be used by different users but required each container to connect to lxcbr0 to provide remote access. How can I restrict with LXC that containers on a default bridge ...
0
votes
1answer
81 views

LXC unprivileged container: apt-get fails to download anything inside

I'm running Ubuntu Xenial and set up simple unprivileged user container from template (also Xenial). When I attach inside and try to just do upgrade or install anything 'apt-get' fails with following ...
1
vote
1answer
295 views

LXD 2.0 Local Networking

Today I apt-get upgraded my machine (14.04) and now I can no longer access any of my local LXD containers. There was a message warning that I needed to reconfigure the container networking but now I ...
0
votes
2answers
93 views

How to import LXC containers from a previously used ZFS lxc zpool?

I'm using all default lxc settings with ZFS as the backstore. Which means, I have an lxc zpool and created containers with lxc-create -B zfs -n ubuntu-base -t ubuntu Now, the root fs ran out of ...
0
votes
0answers
38 views

how to save lxc.conf after editing?

Trying to get safe browsing with lxc by guide from here https://www.stgraber.org/2014/02/09/lxc-1-0-gui-in-containers/ and stucked. I type in terminal sudo gedit /var/log/lxd/u1/lxc.conf editing, ...
0
votes
0answers
28 views

TCP session establish problem

I have multiple quagga instance running in lxc doing some kind of network simulation. BGP-protocol run fine between quagga containers. But when connecting quagga to Cisco ios, TCP-session which is ...
3
votes
1answer
47 views

Disk usage for the same drive shows 20K in the host and 16G in the container

When comparing the disk usage for a mounted harddrive the usage is completely different when compared between the host and the container. I am running Ubuntu 14.04 on the host and in the lxc container....
0
votes
1answer
114 views

Building LXC, LXD Image

Is it possible when using LXC,LXD images and containers that I can build my OWN image for a specific Ubuntu distro? then I use it as a container. thanks
0
votes
0answers
24 views

LXD LXC containers Ubuntu 10.04

Regarding the use of the LXC and LXD is their an Ubuntu 10.04 container that is possible to use ? if not is their a method to build Ubuntu 10.04 container ? Thanks
0
votes
2answers
149 views

How to check is an LXD container runs unprivileged?

I am configuring my LXD containers to run unpriviledged as root. How can I check that they indeed run as such? Is it enough that ps -ef on the host shows that all processes running in containers ...
1
vote
0answers
90 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 ...
0
votes
1answer
62 views

Juju on Maas, Lxc container not deploying

I have the latest juju deployed on maas. I also deployed the gui with: juju deploy juju-gui --to 0 This seem to work fine. But when I deploy an lxc container on that machine the conatiner stays in ...
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 ...
0
votes
0answers
151 views

Where is the configuration file of a lxc container?

I installed lxd to use linux containers. For some reason I keep using lxc commands to install and start my containers. Since lxd seems to be close to lxc maybe there is a reason for that (but it is ...