Questions tagged [lxc]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
43 views

system does not fully support snapd: cannot mount squashfs image using "squashfs - mount failed

I'm attempting to install PowerShell on my Ubuntu instance using snap, but it generates an error: # sudo snap install powershell --classic error: system does not fully support snapd: cannot mount ...
0
votes
0answers
25 views

Trying to extract files from ZFS image created by LXC

Alright, so on the beginning I’ll say that I’m not a master at Linux and that it is my first post here. If you’ll need me to do anything, I’ll do my best, but I can’t promise I’ll be successful. Also ...
0
votes
1answer
26 views

Getting Proxmox Virtual Machines with Networking working on So you Start (OVH) Dedicated Server

I just recently got a So you Start.com dedicated server. I want to set up some virtual machines in it and some LXC containers. I have created a Ubuntu 20.04 virtual machine and have been trying to ...
0
votes
0answers
20 views

How to troubleshoot cgroups device access control in Ubuntu 18.04?

In short: I would like to figure out what prevents me to access /dev/dri/card0 from GUI session. The long story: I would like to pass GPU to lxd container, but it fails with error Error: Common ...
1
vote
1answer
74 views

Ubuntu server: Cannot setup dummy driver alsa (LXC container) // modprobe issue [duplicate]

I'm trying to setup alsa on my ubuntu server, but it seems that the drivers are not installed & I don't know how to solve this problem. I just wanna setup a dummy soundcard. But I really don't ...
0
votes
1answer
51 views

iptables rules for lxd container via ssh

Good day. I use ubuntu 18 and want connect to my container via ssh. This is my container cont | RUNNING | 10.78.195.190 (eth0) | fd42:4be2:f986:212a:216:3eff:fee4:582 (eth0) | PERSISTENT | 0 ...
0
votes
1answer
115 views

LXD proxy for DNS

I set up a bind server in a LXD instance and I try to forward all DNS queries from host to this instance. I tried this: sudo lxc config device add bind dnsdevicetcp proxy listen=tcp:0.0.0.0:53 ...
0
votes
0answers
57 views

Fail2ban & NAT PREROUTING not blocking requests

I am using a iptables rule to alter the destination of incoming packets on port 80 like: iptables -t nat -I PREROUTING -i eth0 -p TCP -d M.Y.I.P/32 --dport 80 -j DNAT --to-destination IN.TER.NAL.IP:...
0
votes
0answers
25 views

IPTABLES problem in LXC container

I have set of iptables rules running on Raspian RPI (Ubuntu 14.4). For example entry like this: /sbin/iptables -A INPUT -p tcp --dport 8080 -i eth0 -m mac --mac-source 84:f3:eb:b7:45:42 -j ACCEPT It ...
1
vote
2answers
245 views

error on install Community Server/ Document server onlyoffice

when try to install only office server based on there Installing Community Server for Debian, Ubuntu and derivatives so step by step until the latest command sudo apt-get install onlyoffice-...
0
votes
0answers
31 views

How to share one Network Interface's Traffic between several containers(LXC/LXD)

We want to share one Interface's traffic between several containers(LXC/LXD). The interface is Gigabit with no IP. It works for one LXC. I was thinking about making several sub_interface and ...
0
votes
2answers
68 views

Delete a directory inside a container

# lxc exec mycontainer rm -r /home/myuser/mydir gives me Error: unknown shorthand flag: 'r' in -r # lxc exec mycontainer "bash -c 'rm /home/myuser/mydir -r'" just silently exits without removing ...
0
votes
0answers
172 views

Steam via wine through an lxc container

I hope this is a good forum for this, dont know where else it would be any better in. My host os is: Kubuntu 19.10 eoan fully updated, no beta or extra system repos enabled or any software installed ...
0
votes
0answers
81 views

Application with GUI inside a container created with lxc-execute

I have to run an application with GUI (a browser) inside a LXC container. This container has been created with the command lxc-execute and so has already a running application inside. I know how to ...
0
votes
0answers
35 views

Neutron gateway

We have tried to launch an OpenStack with lxc based on a charm. We're having trouble finding the correct neutron-gateway option settings. In our first setup we use this: neutron-gateway: ...
0
votes
1answer
242 views

LXC change default non-root user

I am running an lxc container for an app, but need to change the default user to the same as my host system. I setup the container following these instructions: https://blog.simos.info/how-to-run-...
1
vote
1answer
257 views

Upgrade to 19.10, LXD will no longer run

I recently upgraded to 19.10. LXD will no longer run, I get this error: Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused I've checked ...
0
votes
0answers
143 views

Problems with lxc after reboot in Ubuntu 19.10

Installed lxd after a fresh Ubuntu 19.10 install. Created a container and everything worked! After a reboot lxd/lxc stop working ~$ lxc list sanity timeout expired: Interrupted system call cannot ...
1
vote
0answers
174 views

Where can I find config file for Ubuntu 18.04 LXC container?

I am trying to test LXC container and created Ubuntu 18.04 container. To access these container from Host Network machines I created new bridged interface in host /etc/network/interfaces and wanted to ...
1
vote
0answers
38 views

Network unreachable after adding new bridged interface

I am trying to add new bridged interface in /etc/network/interfaces with following settings on my Ubuntu 18.04 VM while testing LXC containers. auto br0 iface br0 inet dhcp bridge_ports eth0 ...
0
votes
0answers
67 views

DNS resolution on local network stopped working “;; connection timed out; no servers could be reached”

I have a DNS server (bind9) on my local network (IP address 192.168.1.11). It is running in a LXD container. For some reason, the resolution is not working anymore when DNS server is queried by a ...
0
votes
2answers
109 views

LXC Container not pining from host or network

I recently started looking at LXC container for hosting tunnel service (IPv6 over IPv4 and IPv6 over IPv6). On my Window 10 machine I have Ubuntu 18.04 VM and I set up a Ubuntu 18.04 LXC Container ...
2
votes
0answers
5k views

How to fix “docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.” on `docker run`?

I have Ubuntu 16.04.6 LTS installed. Previously I have installed Docker from its repository as docker.io package. Yesterday I have installed LXC with LXD and I suppose that they have some problem ...
0
votes
1answer
219 views

How to configure lxc container to have two ethernet devices - macvlan and bridge?

I'm having trouble with network configuration for lxc containers. I want multiple containers located on one machine to communicate via macvlan with outside world, but also have local bridge to ...
2
votes
1answer
88 views

What is the most efficient way for creating hundreds of containers for single apps; LXC or Docker?

I do have a dedicated server and I need to create ~200 containers inside it. Each container will only run a single application and I'm looking for the most efficient way for this in terms of resource ...
0
votes
1answer
291 views

Why isn't lxd init working on new install of Ubuntu 18.04?

I have a VPS at SSDNodes. I reinstalled Ubuntu 18.04 on it, ran update, upgrade, autoremove and clean. I then tried to configure lxd using the lxd init. The cursor moved to the next line and did ...
1
vote
1answer
58 views

LXC - two bridges

I'm trying to create two different bridges to use with LXC. I have the following configuration: /etc/lxc/default.conf: lxc.net.0.type = veth lxc.net.0.link = lxcbr0 lxc.net.0.flags = up lxc.net.0....
1
vote
0answers
200 views

Bridged network for LXC - Ubuntu 18.04

I'd like to create a bridged network for three containers, with static IP addresses and connected to the internet through the ethernet card of the host machine. For example, with the bridge named ...
0
votes
0answers
30 views

How to access LXC port running in Vagrant?

I have a Vagrant box running on my host (OSX): Vagrant.configure("2") do |config| config.vm.box = "ubuntu/xenial64" end Inside the Vagrant box, I have a LXC running at 10.0.3.93. It has Nginx ...
0
votes
1answer
294 views

Is it possible to run a desktop GUI VM Container on linux with any linux image

Looking for way to create virtual gui desktop container inside container e.g docker or LXD whichever is better
0
votes
0answers
174 views

I don't have a /etc/network/interfaces file at all

I have a network card with 4 Ethernet ports. I am trying to use 2 of them, 1 for the main system and one for a LXC container. When I look up tutorials on how to dedicate eth1 interface to the ...
0
votes
1answer
891 views

LXC/LXD containers in Ubuntu 18.04 network issues

I've got an Ubuntu 18.04 system setup as a VPS host to start migrating containers from an EOL 14.04 VPS host. I've got a bridge (br0) configured to allow the containers to have IPs on the same vlan as ...
0
votes
0answers
98 views

What is the cause of cloud-init difference after 'lxc launch …' and lxc-create from the same image server?

A container created which lxd, by lxc launch ... command is different from the one created by the 'lxc-create -n u1' command. The difference is that the former is cloud-init enabled (and has the ...
0
votes
0answers
403 views

Ubuntu Touch (UBports) and Android support for LXC/LXD containers (for running Ubuntu): current state

I am trying to run a web-server on my Android device (several available models, ARM or x86 hardware) inside a container (lxc / lxd). Looking for the easiest and safest way to do it. I was thinking ...
1
vote
1answer
1k views

How to install ubuntu server for lxc on a smartphone (ARM or x86, bare metal)?

As of May 2019 what are the options (if any) to install Ubuntu server on a smartphone device? I don't need much of the smartphone functionality, I don't need desktop and touchscreen blows and ...
6
votes
3answers
551 views

Is it possible to run some application in the chroot or container but allow DBus interaction with host system?

I need to run old version of application in chroot (or container) and allow DBus interaction with host system. I can't install this application on host system because of serious dependency problems. ...
0
votes
0answers
111 views

Opera doesn't start in LXC container: “Out of memory”

I'm trying to run Opera browser in a LXC container (logged in via ssh -X), but it doesn't work: andrea@ue-02:~$ opera [378:388:0507/165937.131977:FATAL:memory.cc(22)] Out of memory. size=131072 ...
4
votes
0answers
599 views

DNS resolution in LXC container

I'm using srsLTE-emane (https://github.com/adjacentlink/srsLTE-emane), an open source software that emulates LTE Network, on Ubuntu 18.04.2, and I have a problem with DNS resolution in LXC container. ...
2
votes
2answers
329 views

LXC control script launched via crontab doesn't work properly, but when used from cmd line is OK

I have a script that uses named pipes to control containers. The script monitors the named pipe for commands and executes whatever is fed into its input. Script must run as the user that owns the ...
0
votes
1answer
208 views

Expanding existing ZFS loop device

I have several LXC containers on my Ubuntu 18.04 machine. I have a container called "cloud" which I want to expand its storage, how can I do this without reinstalling? I am using ZFS for this. user@...
1
vote
0answers
107 views

LXC cluster: failing to start the first node after reboot

I have a LXC cluster with three nodes that are all KVM virtual machines with Kubuntu 18.04 with LXD 3.0.3 installed via apt Also the host machine is a Kubuntu 18.04 I installed LXD on the first node ...
1
vote
0answers
415 views

lxc-start: controller: lxccontainer.c: wait_on_daemonized_start: 842 Received container state “STOPPING” instead of “RUNNING”

when i run the config file config file sudo lxc-start -n controller -d it gives me this error lxc-start: controller: lxccontainer.c: wait_on_daemonized_start: 842 Received container state "...
0
votes
2answers
96 views

Linux Container (LXC) image without vmlinux

Recently, I installed lxc and created an Ubuntu LXC image. Then, I did ls -a / to see the directory listing of / inside the image. To my surprise, there is no vmlinux or vmlinuz often seen in normal ...
0
votes
1answer
1k views

Can't login and no password prompt when trying to login as root on console on Ubuntu 18.04 running inside LXC

I have several installs of Ubuntu 18.04.2 inside LXC containers in several nodes running Proxmox 4.4-24 (Debian 8.11). On any of these, When I try to login as root on the console, I enter "root", ...
0
votes
1answer
2k views

MACVLAN Bridge in netplan

I configured LXD containers in Ubuntu 18.04 with MACVLAN interfaces so they can DHCP addresses on my LAN. This all works fine, the containers are reachable on my LAN and they can reach each other, but ...
0
votes
1answer
1k views

Change default editor in LXD snap

I recently migrated from LXD installed from deb, to LXD installed from snap. The default editor is set to Vim. How can I change this?
1
vote
1answer
310 views

What's wrong with dhcpd (isc-dhcp-server) inside LXC container? Why it does nothing?

I tried many times, on various Ubuntu machines: the dhcpd executable (installed in /usr/sbin/dhcpd via package isc-dhcp-server) inside the LXC container seemingly the only thing it does, when executed ...
2
votes
2answers
3k views

lxc 3.0.2 equivalent of lxc.network.type = veth

I have reinstalled from ubuntu 16.04 to 18.04. My lxc container config had the following line: lxc.network.type = veth It no longer seems to work: lxc-ls -l DEBUG -f lxc-ls: confile.c: ...
0
votes
1answer
925 views

Unable to install lxc or lxc-utils in Bionic Beaver Server 18.04

I have a basic up to date install of 18.04 server. Only the universe repository has been added above the default installation. No third party repos. When I try to install package lxc I get the ...
0
votes
0answers
96 views

Ubuntu 18.04 cloud image support for ip6_tables

I am running an Ubuntu 18.04 cloud server on LXD/LXC. # uname -r 4.15.0-30-generic # apt-get -y install linux-image-$(uname -r) It doesn't appear to have support for ip6_tables. How can I get an ...

1
2 3 4 5
8