Questions tagged [lxc]

LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. It is sometimes referred to as “chroot on steroids”.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Docker / lxc can't launch a container

I'm trying out Docker for the very first time tonight! Running Ubuntu 22.04, cli-only. Updated & upgraded everything before & during this process, and it's all on a new account on a new ...
  • 30.3k
0 votes
0 answers
25 views

Bindmount External Drive In Proxmox for Nextcloud

I have a Proxmox LXC container with Nextcloud. The default data directory in Nextcloud requires the owner to be www-data with the default uid and gid of 33. I am using the following Proxmox Mount ...
0 votes
0 answers
19 views

How to access internet from LXD instance via bridge?

I am using LXD (5.11) and have a bridged network where a number of Ubuntu instances are connected. My problem is that I need to install a few packages on these instances and so I've created the ...
  • 1,644
0 votes
0 answers
19 views

Run docker build in privileged LXC containers

In PVE, a privileged LXC container has been opened, and lxc.apparmor.profile: unconfined has been added to its configuration. Docker is also running inside this container. Privileged Docker containers ...
  • 11
0 votes
1 answer
26 views

Configure lxc to set the header x-forwarded-for

I have a server that host some lxc on it, and i forward what he get from port 8080 to the port 80 of my lxc lxc profile create proxy-8080 lxc profile list # first create a profile bound to the future ...
0 votes
0 answers
29 views

LXC networking is failling to forward ipv4 packets from an openstack-ansible deployment

I am trying to install openstack (zed version) through ansible deployment on a centos stream 9 system. I have followed the all in one installation and i had no errors in the playbooks or anyware. The ...
  • 11
0 votes
1 answer
9 views

Does mysql_exporter have to be installed in each database container?

I'm using LXC for running mysql and put database, I have like 12 containers that contain databases, my monitoring tools are Grafana and mysql_exporter, can I only install mysql_exporter in one ...
0 votes
1 answer
13 views

How to set an initial script to be loaded at the start of LXC interactive session?

I'd like to have my favourite aliases and PS1 when starting an interactive LXD session by lxc exec my-container -- su -l I've placed.bashrc file in the $HOME directory (which is /home/root), but it ...
0 votes
0 answers
38 views

SQL Server 2022 in LXC crashes and won't get back up

I have big scary problem with SQL Server 2022 in LXC containers on PVE. SQL Server 2019 is working fine in same environment but SQL Server 2022 crashes after few months of working good. After crash it ...
  • 703
-1 votes
1 answer
139 views

How to mount a usb disk in a lxc container?

Here I created a lxc container in the host operating system, Ubuntu 22.04, whose os is the same as the host's, on a Raspberry Pi. I want to access(r/w) files of a usb disk in the lxc container so I ...
1 vote
1 answer
49 views

Running a command inside a lxc container using C

'm trying to use the lxc C API to execute a command inside a container, and hopefully later make it to also prints the results of the command on the stdout/stderr. But so far, I can't get further than ...
0 votes
0 answers
27 views

Getting Error: Common start logic: device or resource busy after running lxc start

I have an lxd container, which when i run the command lxc start <Container-name> I get this message Error: Common start logic: device or resource busy Try lxc info --show-log <Container-name&...
  • 63
0 votes
1 answer
152 views

Why is my docker container using high cpu, but my docker host is barely utilized?

I'm trying to understand the relationship between docker containers and their host machines. My setup is as follows: Hypervisor: Proxmox (4x 10 core Xeon, 80 threads total) Docker Host: LXC on ...
  • 381
0 votes
0 answers
50 views

Use of Docker and Linux containers (LXC)

Given that using Docker alongside with LXC containers in the same host can create problems in iptables (if I understood correctly) (source: https://github.com/docker/for-linux/issues/103), the same ...
0 votes
2 answers
370 views

lxc Container (Proxmox) Nextcloud problem

I created a lxc Container with Proxmox using https://www.turnkeylinux.org/download?file=turnkey-nextcloud-17.1-bullseye-amd64.iso i have mount a harddisk to the proxmox main system with root@pve:/mnt/...
1 vote
0 answers
226 views

How to solve or diagnose connection reset by peer in lxc container [wsl2/ubuntu]?

I have a problem with my lxc/lxd container not being able to fetch package/network dependencies from the internet. Larger downloads get interrupted with peer disconnects. I came across the error while ...
  • 1,538
1 vote
0 answers
226 views

'LXC launch' gives 'Error: Failed instance creation'

Trying to run this: ros@ros-Virtualbox:/$ sudo lxc launch -p row ubuntu:20.04 turtlebot Creating turtlebot Error: Failed instance creation: Failed creating instance record: Failed initialising ...
  • 11
0 votes
0 answers
55 views

Forwarding DNS to LXC container

Eventhough I configured in my NGINX Proxy-Server to redirect to a LXC container when connected to a certain domain this is not working. I am trying to connect to my website in a LXC container, I have ...
0 votes
0 answers
57 views

Pointing Nginx to Gunicorn on a different server

I have a bunch of different services running across several lxc containers, including Django apps. What I want to do is install Nginx on the Host machine and proxy pass to the Gunicorn instance ...
0 votes
0 answers
23 views

LXD - Cannot list network forwarded ports

I am trying to figure out how to list ports forwarded by LXD through lxc network forward. I have 2 NIC configured as : ip a result I configured network forward ports that way : lxc network commands My ...
0 votes
1 answer
357 views

Mastodon Nginx Proxy Pass issue it wont pass through to the LXC container

I have been trying to self host a sign user mastodon, i want to point out it works if i directly forward ports 80 and 443 to that IP, it can be accessed from outside all great. I have a bunch of ...
0 votes
1 answer
74 views

How to determine what profiles are part of an LXD container or archive when copying or importing

I get the following error when trying to import an LXD container from a backup.tar.gz archive: $: sudo lxc import backup.tar.gz Error: Failed importing backup: Failed loading profiles for instance: ...
  • 13
0 votes
0 answers
170 views

LXC on host's lan running under normal user

I have set up LXC container using this manual. It's working great under root, but I can't run it under my normal user. Start of lxc container failed with followed error: lxc-start Test 20221009142640....
  • 1
1 vote
0 answers
266 views

Cannot create lxc container using config file

I'm following a tutorial here on creating linux containers, and I'm running into the following error which I cannot find an answer to: $ sudo lxc-create -f lxc-left.conf -t download -n left -- -d ...
  • 584
0 votes
0 answers
26 views

How to build a Ubuntu Packer file for LXC/LXD in HCL?

I have done the tutorial and read the documentation for the LXC builder but I am still confused on how to tell Packer how to use what image. I can understand the tutorial for Docker but as soon as I ...
  • 671
0 votes
1 answer
142 views

What is the difference between Container and Paravirtualization?

A representative example of container is LXC (now it may be Docker.) LXC is called container-virtualization. Xen is called para-virtualization. But LXC is not called paravirtualization, and Xen is not ...
1 vote
0 answers
123 views

Building meta-virtualization layer in yocto:thud

I want to install docker to my yocto project. I have put meta-virtualization into bblayers and add following into local.conf. DISTRO_FEATURES_append = " virtualization" IMAGE_INSTALL_append =...
  • 11
0 votes
0 answers
90 views

Error: Failed instance creation: Error transferring instance data: migration pre-dump failed

# lxc copy neo:lamp1 lamp1b Error: Failed instance creation: Error transferring instance data: migration pre-dump failed (00.000024) Warn (criu/log.c:203): The early log isn't empty (00.139901) Warn ...
  • 31.5k
1 vote
1 answer
406 views

Android sdkmanager not found issue in ubuntu 22.04 based linux container

I am trying to install flutter on ubuntu 22.04 based linux container (on proxmox server). sdkmanager --version shows 7.0 flutter doctor shows message "Flutter requires Android SDK 29 and the ...
0 votes
1 answer
321 views

Installation via openstack (yoga) ansible fail

I am testing openstack on 4 computers: 1 deploy, 3 hosts. The 3 hosts have 2 nics each, one for the connectivity with the lan, the other only for openstack, which mean for exemple, that enp2s0 is on ...
-1 votes
1 answer
162 views

Automate `lxc-attach` through ssh with Python

Question: How do I automate this process, and include all of the password prompts? Machine 1> ssh user2@machine2 password: Machine 2> lxc-attach -n 0x1000 Container> ssh user3@machine3 ...
  • 160
1 vote
0 answers
175 views

LXC network forward ports (yaml)

I got to my container (target_address) connected using nc -v 5.35.6.44 1234 from the outside world using one of my spare ip addresses (the listen_address) description: "" config: ...
0 votes
0 answers
86 views

Using NS3 tap-bridge with Linux container over a proxy network

I am using the NS3 with linux containers. The linux containers communicate with each other using a tap-bridge module that is provided in the NS3 examples code. My problem is I cannot make the ...
  • 43
1 vote
0 answers
133 views

Apparmor Blocking Network Access to Docker Containers on Debian

I am running Docker inside an unprivileged LXD Debian container. Docker is working well, except that the networking is not working within Docker. I can't access my Docker containers using my server's ...
0 votes
0 answers
47 views

snapd hostfs: No such file or directory

I can copy small files to another host via: simon@server:~$ scp nginx.conf simon@192.168.103.44:/home/simon/Downloads The authenticity of host '192.168.103.44 (192.168.103.44)' can't be established. ...
0 votes
0 answers
205 views

How to manually migrate lxd container to another server via file copy

I have a server with several lxd containers on it. Due to the incident, the hard disk of the server was damaged. The files can still be accessed when opened as an external hard drive, but when used as ...
0 votes
0 answers
146 views

Container (Docker, LXC) performance using Sysbench benchmark

I want to compare container performance(Docker, LXC, Podman etc) in raspberry pi using sysbench benchmark. Can anyone help me with the steps? So far I've come across some tools that help with what I ...
0 votes
1 answer
62 views

Nginx reverseproxy and LXC

I install nextcloud with Turnkey LXC template on Proxmox. I use Nginx as Reverseproxy on another LXC. My LXC Nextcloud is on 192.168.1.46 and my LXC Nginx on 192.168.1.38. I have a free account on No-...
  • 1
0 votes
0 answers
29 views

when I use the LXC IP on the browser it gives "This site can’t be reached"

Basically I want to establish website with the LXC. so I installed LXD and created LXC called app1, then installed apache2. All are running, but when I use the LXC IP on the browser it gives "...
  • 541
0 votes
1 answer
94 views

how can I solve lxc container journal mount problem

I have lxc contariner with the line at its own config lxc.mount.entry = /var/log/journal/56abd83f52ed4b53b6bd4c41f3564179 var/log/journal/56abd83f52ed4b53b6bd4c41f3564179 none bind,create=dir 0 0 but ...
  • 134
1 vote
2 answers
162 views

How to configure LXD container devices using saltstack "lxd_container.present" function?

I have the following working Salt state file which: 1) downloads an image 2) creates a container from that image and 3) adds a nic afterwards. These states work using the following setup: salt-ssh: ...
  • 13
0 votes
0 answers
400 views

Python Script to run shell commend within a Proxmox lxc Container

I am trying to write a python script to run a python code in a proxmox lxc container. To do this, I need to install packages and requirements file for the python code in the container using a python ...
  • 1,339
1 vote
1 answer
871 views

Linux Container: Failed to set up id mapping

lxc 20220302000315.323 ERROR lxc_start - start.c:lxc_spawn:1163 - Failed to set up id mapping. Unprivileged container is not coming up with the below error in the container logs lxc 20220302000315....
  • 11
1 vote
0 answers
347 views

LXC container cannot communicate with other devices over Bridge Interface

I have a VM hosting linux os. I have an LXC container running inside of the VM. The VM has 3 bridge interfaces supplied as adapters. The LXC container is 3 interfaces configured in bridge mode (veth) ...
  • 17
1 vote
1 answer
138 views

runcmd in LXC profile ignored

I want to run a command for each container that is created using my profile. The profile looks like this: config: user.user-data: | #cloud-config package_upgrade: true packages: - ...
  • 8,584
1 vote
0 answers
447 views

How to add USB device to LXC container using PyLxd

Goal: Dynamically add USB devices to running LXC instances using PyLxd library. Essentially, I want to pair an LXC container to a particular USB controller and whenever a device is added or removed ...
  • 48
0 votes
1 answer
277 views

Create file in LXC container with Ansible playbook

I have a playbook: - hosts: Server-52 gather_facts: false tasks: - name: Run a command in a container lxc_container: name: Jitsi container_log: true state: ...
  • 141
0 votes
1 answer
755 views

How to edit /etc/netplan/50-cloud-init.yaml with Ansible in LXC container

I have a playbook to create a container: - name: Create LXD Container #1 become: True lxd_container: name: "{{ lxc_CT_NAME }}" state: started source: type: image ...
  • 141
0 votes
0 answers
486 views

Host cannot communicate with app running inside LXC container

I am running on my personal machine with Ubuntu 18.04 multiple lxc containers. Each container has Ubuntu 18.04 as well. For each container I am running an application which offers a UI on https://...
  • 1,152
0 votes
1 answer
131 views

Script is getting stuck in the LXC init task

I'm a new user of ansible and I'm trying to launch a lxc init in a yaml script: - name: Copy LXC init file ansible.builtin.copy: src: /home/user/lxcInitFile.yaml dest: /tmp/ owner: ...
  • 301

1
2 3 4 5
12