Questions tagged [lxc]
The LXC tag is for questions relating to LinuX Containers and lightweight virtualization capabiliaties, issues, and troubleshooting.
440
questions
0
votes
3
answers
10k
views
how do I change default MTU from 1500 to 9000 for lxdbr0 for containers created using LXD?
I'm running linux containers created by LXD on ubuntu 14.04.05 . I have a lxdbr0 interface setup , but its default MTU is 1500 , how do I update it ? I tried the following command, but it doesnt work. ...
3
votes
1
answer
3k
views
How to set a static IPv6 address for an LXD container
On a Ubuntu Xenial host I'm running LXD 2.12 from the xenial-backports. While it's easy to change a containers ipv4 address to a static address from outside the container I cannot change its ipv6 ...
4
votes
0
answers
2k
views
LXD: getting /proc/sys/net/bridge/bridge-nf-call-iptables
I've enabled br_netfilter in the config of the LXD container, but the path /proc/sys/net/bridge/bridge-nf-call-iptables still doesn't appear inside the container.
Similar question:
How to add ...
0
votes
1
answer
501
views
How to make dnsmasq's DHCP server give out arbitrary resolvers?
I'm using lxc on Ubuntu 16.04. Lxc seems to use dnsmasq as the DHCP and DNS servers for the containers - have I understood correctly?
How can I make dnsmasq's DHCP server give out 8.8.8.8 and 8.8.4....
2
votes
2
answers
7k
views
USB passthrough for LXD container on Ubuntu 16.04
I need to expose my USB interface to my LXD container and I'm using a Ubuntu 16.04 machine. Running "lsusb", I can see same the interfaces both on my host and container.
Inside my container I'm using ...
3
votes
1
answer
8k
views
Add block device to LXD containder
I want to use fake block device inside my container. I made loop devices and added disk to a container, but I do not see it /dev/ directory listing.
# truncate -s 10G xfs.img
# mkfs.xfs xfs.img
# ...
1
vote
0
answers
215
views
Conjure-up kubernetes removes zfs definition
Installing the Canonical distribution of Kubernetes removes the LXC zfs definition forcing writes to dir
Before conjure-up the "lxc info" command says:
...snip...
config:
storage.zfs_pool_name: ...
2
votes
0
answers
553
views
Can't reproduce the default lxc uid/gid mapping on ubuntu 16.04?
I am trying to understand how lxc.id_map works, but my problem is I cannot even reproduce the default settings UID mappings. It seems like whatever lxc.id_map I set, it will always return an error "...
1
vote
1
answer
919
views
LXD containers isolation problem?
I am playing with LXD containers, and fail to completely understand what is happening with isolation. Here is my scenario:
create a 16.04 container launch ubuntu:16.04 mycontainer
install firefox ...
1
vote
1
answer
918
views
cgroups not working properly with multi-core DPDK application
I want to restrict the CPU usage of a DPDK application for testing. After some quick search I found that Control Groups (cgroups) might suit my needs. So first I installed cgroup-bin.
sudo apt-get ...
2
votes
1
answer
2k
views
GUI inside LXC 2.0/LXD containers
The aim is to containerize a few GUI apps (Kodi and Retroplayer being the main ones) and launch them from the host. Due to the nature of the apps, I'd need audio support and gpu acceleration, with no ...
1
vote
1
answer
473
views
lxc-create runs without errors, the zfs filesystem is created, but the container is not created
I'm trying lxc for the first time, by following https://help.ubuntu.com/lts/serverguide/lxc.html and the man pages.
The lxc-create command runs without errors, and creates the zfs /lxc/u1 filesystem, ...
0
votes
1
answer
1k
views
Using sudo in LXC containers for accounts without valid shell
For accounts, in containers, that have no shell (e.g. user www-data) I'd like to use sudo, without ending up in /root/ folder.
Why does this only work after using it for the second time ?
How can I ...
2
votes
1
answer
4k
views
Run docker inside LXC(LXD)
I'm trying to install and run docker inside a LXC container (through LXD).
The container is created using lxc launch ubuntu:16.04 democontainer, and after I login and install docker (v1.12.3) it ...
0
votes
2
answers
930
views
JuJu Machines and Units
I want o ask about the main differences between juju machines and juju units.
Moreover the relation between a charm and a machine (LXD or an entire VM) is one to one, rigth ?
There isn't a ...
1
vote
0
answers
1k
views
VLAN + bridge is not working
I'm trying to create a bridge (br0.5) that is linked to a VLAN (ID 5), for LXC (our containers needs a real IP address). The box won't connect to the default VLAN, and the port on the switch is ...
0
votes
1
answer
2k
views
Ubuntu does not update date and time
I click on the clock in the upper bar and I choose the Time and Date Settings, manually do not let me put another time different from the one that is configured in the BIOS, if I select the automatic ...
0
votes
1
answer
425
views
Juju Controller and charms connection
just a few questions as USER.
If I want to depoly an application with 2 different JuJu charms (let say DB + Mediawiki), on 2 different machines (or LXD), do I need 2 controllers ? If so, who manages ...
3
votes
2
answers
7k
views
LXD container set static ip
There've been a lot of questions and threads about this but none of them solves my problem.
I want to assign a specific ip to a specific container WITHOUT configuring it inside the container. The ...
0
votes
1
answer
10k
views
LXC/LXD and AppArmor: Permission denied; attempted to load a profile while confined?
I am trying to run firewall (Zentyal) on Ubuntu 16.04 inside an LXD container on top of host Arch linux. It requires some AppArmor functionality to do its thing (mainly, DHCP), so I installed AppArmor-...
0
votes
1
answer
542
views
How can I create an lxc guest that communicates with the host?
I'm trying to set up a guest lxc with communication between it and the host system but I have had no success as yet.
How can I set it up?
0
votes
1
answer
2k
views
guestmount inside a lxd container gives an "Operation not permitted" error
I've created a qcow2 disk (using qemu-img) inside an ubuntu 16.04 lxd container (created via this command: lxc launch images:ubuntu/xenial/amd64 mycont). I've partitioned it and formated it with ...
0
votes
1
answer
1k
views
Changing sysctl values in LXC container
Following on from this question:
Modifying sysctl values inside lxc container
I am hitting a different issue trying to change a sysctl setting within a Linux Container.
With /proc mounted, I get a ...
1
vote
1
answer
464
views
Trying to use Adapt based on LXC/LXD: couldn't find requested image
I am trying to use Pitivi, latest version 0.97, on Ubuntu 16.04. It is available as flatpak, but I also found out about Adapt, by Dustin Kirkland, which sounds awesome and much more useful for me in ...
2
votes
0
answers
2k
views
How to change mac address template for new LXC containers
I'm running ubuntu 16.10.
I'd like to change the MAC address template used to allocate hw address to LXC containers.
I've modified /etc/lxc/default.conf, but I always get the default 00:16:3e:xx:xx:...
6
votes
1
answer
408
views
Libertine container sound does not work on one machine, works on another
I have two machines under my purview, A and B. B is a very old machine, I've installed apps in Libertine on it, and sounds work perfectly well. On the other hand, on machine A, sound does not work for ...
4
votes
1
answer
5k
views
lxc Container does not start
I am trying to run an lxc container on Ubuntu 16.10 with the following configurations:
lxc.utsname = cont
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = bridge
lxc.network.ipv4 = ...
10
votes
1
answer
8k
views
DNS works with host, but not with wget
TL;DR
I've got a strange situation where I can do DNS lookups on some hosts but not others. This seems to be related to resolv.conf having one nameserver entry pointing to my nameserver and another ...
1
vote
1
answer
448
views
error on LXD container while we install JUJU gui ver. 2.0
lab:
nr. 1 Host with Ubuntu 16.04LTS - LXD & ZFS
nr. 2 - LXC Container (MAAS & JUJU)
I've already create a container for MAAS, and it's in running state
$: lxc list
+-------------+---------+--...
1
vote
1
answer
932
views
lxd availability on CentOS [closed]
I want to implement lxd and juju on CentOS (or Redhat). I have found the matrix https://www.flockport.com/lxc-and-lxd-support-across-distributions/, in which it is clearly stated, that LXD is not ...
6
votes
3
answers
34k
views
Where are the LXC container configuration files located?
I am working with LXC containers and I am attempting to setup a network configuration but I cannot locate the configuration file. Every piece of documentation or answered question has been for older ...
2
votes
1
answer
4k
views
Error in playing a sound using ALSA inside LXC container
I am using host Ubuntu 16.0.4 system to run my lxc container.
I uninstalled pulseaudio as I wanted to use ALSA directly.
After uninstalling pulseaudio from the host machine, I was able to play sounds ...
2
votes
1
answer
800
views
not able to run glxdemo from inside lxc container using nvidia
I have created lxc container of our custom toolchain that has many packages.
Related to graphics, I have installed nvidia 367.27 driver using the nvidia installer inside this container(called ...
1
vote
1
answer
846
views
Openstack 14.04 JUJU services mostly failing after upgrade
It had been a few months since I inititially built my openstack cloud and against my better judgement, I ran sudo apt-get update ; sudo apt-get upgrade on my nodes. Bad idea.
Everything seemed ...
4
votes
2
answers
11k
views
LXD moving containers/snapshots to another drive
The default path for LXD is /var/lib/lxd, so containers are in
/var/lib/lxd/containers and snapshots are placed in /var/lib/lxd/snapshots.
The /var/ partition is getting full, so I'm planning to use ...
3
votes
0
answers
3k
views
How to set "lxc.mount.auto" in LXD
I came with a strange problem with LXD, and I partially solved it.
However, I need to know how to set "lxc.mount.auto" in LXD. In other words, where does the lxc.mount.auto value in /var/log/lxd/...
1
vote
0
answers
876
views
LXD/LXC containers on NAS via iSCSI. Possible?
Given:
Several hosts with Ubuntu 16.04 LTS,
NAS with FreeNAS onboard,
They're connected by LAN.
Is it possible to use NAS for storing containers with their filesystem so any host will be able to run ...
1
vote
1
answer
45
views
How to figure out the "install" step in a debian package?
I am running privileged lxc container on Ubuntu 16.0.4 LTS host.
I have a nvidia graphics card on my hardware and therefore I installed nvidia 367.44 graphics driver on host machine.
Now, inside the ...
0
votes
1
answer
100
views
Containerising a TV Server
I have a server with a DVB-S2 card. For a number of reasons, I'd like to containerise/virtualise (though I'd prefer an LXD solution as I already use this) this service used to provide TV streams to my ...
1
vote
1
answer
1k
views
Installing and using nvidia drivers inside lxc container
I am not sure if this is possible or not but thought to ask the experts here.
So assuming that I am running lxc privileged container on Ubuntu 16.0.4 LTS.
I have nvidia graphics card on my hardware. ...
2
votes
1
answer
288
views
slow game graphics in lxc container
I have a privileged lxc container running on Ubuntu 16.0.4 LTS.
I have noticed that the graphics of our game are very sluggish in container compared to when running on host directly.
Could anyone ...
1
vote
0
answers
188
views
multiple cgroups within "blkio" susbsytem for lxc container
I created a privileged lxc container on ubuntu 16.0.4LTS with name mk7i_container.
When I looked at the blkio cgroup of lxc, I found the following entries:
manik@manik:/sys/fs/cgroup/blkio/lxc$ ls -...
0
votes
1
answer
147
views
can't unbind device in privileged lxc container
I am running privileged lxc 2.0 container on Ubuntu 16.0.4 LTS.
I changed the common.config file to mount sys as read-writable:
I changed original mount entry lxc.mount.auto = cgroup:mixed proc:mixed ...
0
votes
1
answer
1k
views
can't run "glxgears" in root on lxc 2.0 container
I am running lxc2.0 container(privileged) on Ubuntu 16.0.4LTS 32-bit.
Inside the container I installed mesa-utils that has the glxgears app.
my container config file /var/lib/lxc/mk7i_container/...
0
votes
1
answer
474
views
Steam unable to load driver in LXC container
I've been trying to run Steam within a container, but after the initial dependency install, it won't run at all. Trying to run it on terminal gives the following error:
$ lxc-attach --clear-env -n ...
4
votes
1
answer
3k
views
lxc-ls doesn't list all containers
I am running a simple application container using the following command:
lxc-execute -n container_name -- sleep 100
For listing all containers we have lxc-ls command and for seeing active containers ...
1
vote
1
answer
714
views
How to access "/dev/mem" from unprivileged lxc container?
I know it sounds silly but I want to access '/dev/mem" from inside the unprivileged lxc container.
We have this gaming application that accesses "/dev/mem" and other hardware from similar device nodes ...
2
votes
1
answer
4k
views
Error in creating lxc container on Ubuntu 16.0.4LTS 32bit
I am running Ubuntu 32-bit 16.0.4.
> cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="...
2
votes
0
answers
411
views
lxc-execute gives error
I have been stuck on trying to resolve the errors which I get when I run a command "sleep 100" on a lxc container.
I created a simple container using
~$:lxc-create -t download -n guest -- -d ...
0
votes
2
answers
2k
views
How do I get ipv4/inet working in a arm lxc container running on intel host?
If tried creating both a armhf and a arm64/aarch64 lxc containers on my intel 64bit system.
I copied the relevant qemu file before starting the container.
/usr/bin/qemu-arm-static for arm and /usr/...