Questions tagged [lxc]

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

From the Ubuntu wiki LXC summary:

LinuX Containers (LXC) provide lightweight virtualization that lets you isolate processes and resources without the need to provide instruction interpretation mechanisms and other complexities of full virtualization.

LXC home page

440 questions
13
votes
2 answers

How do I install a kernel module in an LXC guest machine?

I am attempting to install OpenStack DevStack on an LXC guest machine. One of DevStack's packages requires a new kernel module, but when I try to run modprobe on the LXC guest I get an error: ubuntu@lxc$ sudo modprobe scsi_transport_iscsi FATAL:…
mars
  • 483
12
votes
5 answers

How to log into lxc container?

I recently installed the 32 bit lxc container on a 64 bit Ubuntu 12.04 system. When I run the command sudo lxc-start -n my32bitbox I am greeted with a login prompt. I enter the default login and password which is: login= ubuntu ; password= ubuntu;…
Crelloc
  • 121
  • 1
  • 1
  • 3
10
votes
3 answers

Is there a way to configure lxd containers with cloud config at provision time?

Specifically, with the CLI tools- not openstack. I'm looking at what a local dev setup with lxd might look like but am coming up empty handed when it comes to configuring new containers. Are there any idiomatic (or otherwise) ways to configure lxd…
8
votes
2 answers

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. I have restarted lcxfs. All that did was upset a…
Oli
  • 293,335
8
votes
1 answer

Where are lxc containers security borderlines?

My question is around the security of an LXC container. If I am running multiple containers on my box, and give users a separate ssh access to their owned container, can any of those container hack into the other containers on that box or the even…
iCode
  • 2,121
7
votes
1 answer

Problem setting up a user-space LXC container

Several evenings, I already try to get an LXC installation working with user-space containers. Since it's going to be a new server, I don't care (yet) too much about distribution and release, so I tried Debian 7+8 and Ubuntu 14.04 and 15.04 as host…
Daniel Alder
  • 2,426
4
votes
1 answer

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 we have lxc-ls --active command. But both of them…
4
votes
2 answers

How to make a HDD device file /dev/sdxY available in lxc container?

I created a lxc container with sudo lxc-create -n ubuntu-trusty-amd64 -t ubuntu -- --arch amd64 --release trusty on Ubuntu 14.04 with lxc 1.0.5-0ubuntu0.1 and realized that there're no device files in /dev/ for my HDDs. How can I make them available…
Kalle Richter
  • 6,180
  • 21
  • 70
  • 103
4
votes
3 answers

lxc-create with non default user

When using "lxc-create -t ubuntu" how does one specify the user of the new container? I don't want the default ubuntu:ubuntu but to specify my own unique username and password. I'm using lxc 1.0.0~beta3 on ubuntu 14.04.
asp
  • 481
4
votes
1 answer

LXD containers get no IP

I wanted to start experimenting with containers, so I followed this tutorial and did: sudo apt-get install lxd lxd-client zfsutils-linux sudo lxd init and answered the questions as follows Do you want to configure a new storage pool (yes/no)…
matpen
  • 331
3
votes
0 answers

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/mailserver/system.slice/dovecot.service: Permission…
Exeter
  • 115
3
votes
1 answer

lxc-start: failed to spawn

I tried following the steps to create and start an lxc container from here: https://help.ubuntu.com/lts/serverguide/lxc.html My host is running an up to date 64-bit Precise (12.04), and I'm trying to start a precise containers. I created the…
3
votes
0 answers

"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 succeed, when I try to start the container gives to…
serngawy
  • 39
  • 1
  • 5
2
votes
1 answer

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 point a reference as to what could be the cause ? So…
Monku
  • 593
2
votes
0 answers

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 ubuntu -r xenial -a amd64 However when I try to execute…
1
2 3