The lxc tag has no wiki summary.
0
votes
2answers
31 views
What should i choose? LXC vs OpenVZ
As an alternative to Virtualizing several Ubuntu Servers im looking into the possibility of using containers. But I am not sure if I should go for OpenVZ or LXC. Can anyone recommend one of them, or ...
0
votes
0answers
11 views
removing old lxc directory “operation not permitted”
I setup some lxc containers (raring) under a /data path to get them off my SSD and I thought they were corrupt so tried to just rm -rf /data/lxc/$name and it clears out all except the rootfs ...
3
votes
3answers
167 views
What is LXC and how to get started?
I will appreciate if someone could introduce me to LXC and tell me how to get started with this technology? In which cases does it make sense to use, and in which should i stay away from it?
2
votes
0answers
40 views
How do I assign an IP address to an LXC container? [duplicate]
I'm trying to start lxc containers with their own public ip address on the network. This is what I've tried so far:
On the host
The host machine has an IP address of 192.168.255.254. I added a ...
2
votes
0answers
68 views
A Linux container can use an authorized_keys file outside my home directory, but ephemeral containers based on it can't. Why?
In Ubuntu 12.10, I've created an LXC of type 'ubuntu' using the lxc-create utility. I then create ephemeral containers based on this container using the lxc-start-ephemeral utility, and I need to ...
1
vote
0answers
97 views
Problem while deploying MysQL through Juju in LXC
I'm trying to follow the Juju tutorial do deploy MySQL and Wordpress, but I found a problem in MySQL deploy process.
The error appears right after mysql-server installation, when the service is ...
0
votes
1answer
122 views
After starting a particular LXC container with a staic IP, no default gateway route is configured
I've got one LXC container that works just fine, but a 2nd one now is mis-behaving.
I've configured a static route for it, but it just won't define a gateway after sudo services networking restart or ...
0
votes
0answers
30 views
How can I monitor CPU per LXC container or per cgroup?
I've got 2 LXC containers with cpu.shares set differently.
In other words I have 2 cgroups defined with processes running under each.
How can I monitor the CPU per LXC Container or per cgroup?
How ...
1
vote
1answer
27 views
What format is used in the LXC config file to specify control group settings?
I want to limit the CPU shares of available to two LXC containers running.
It appears that this is done by adding the control group definitions into the LXC config file.
But what's the format? The ...
0
votes
1answer
73 views
What's the best way to configure the containers to have an IP directly on the LAN
I see that there are a lot of new ease-of-use improvements to LXC in 12.04 & 12.10, and although I see some description to setting up bridged networking such that my containers have their own LAN ...
1
vote
1answer
38 views
LXC: Can I guarantee a certain level of CPU resources to a given container
We're going to use LXC to multi-purpose our hardware while keeping the various applications easy to manage, develop, upgrade, and logically segregated.
What I want to know is if I can guarantee ...
2
votes
2answers
292 views
How do I get the IP address of an LXC container?
I've written a few scripts to manage LXC containers, and I can get their IP addresses via ifconfig, assuming I'm connected to the console.
I now want to connect to these containers via ssh. How do I ...
1
vote
1answer
42 views
per user lxc containers
I am sure I saw how to do this on a webpage around the intergoogle somewhere.
But Is it possible to have your system setup so when you create a user on your machine they log into their own LXC ...
0
votes
1answer
49 views
block outgoing internet calls from inside a container
This question is not similar to my earlier post. This is pretty simple I think, I just don't know enough about networking and the ubuntu firewall.
I followed this article and setup a linux container ...
10
votes
1answer
239 views
Public IP Address for LXC container
Ok, so I want to know how to do networking on LXC containers. Not just the sort of vague information you get from the other websites, but a true idiots guide to making them work.. Since most examples ...
2
votes
0answers
80 views
What is the difference between Ubuntu Server and Ubuntu Cloud under LXC?
I want to set up Ubuntu LXC containers. Is there a practical difference between the /usr/share/lxc/templates/lxc-ubuntu and /usr/share/lxc/templates/lxc-ubuntu-cloud?
I only have a single physical ...
1
vote
0answers
40 views
How to grant access to raw partition for lxc container
I'm using the Linux Containers as set by default in the package lxc.
I'd like to give one of the container an exclusive access to one partition.
Does anybody know, how to configure it?
I'd like to ...
0
votes
0answers
102 views
eth0 disapeared, replaced by lxcbr0
I am currently taking care of a friend's computer, unfortunately she can't tell me what went wrong so I can only give you the facts of what's there right now.
There is no eth0 connection, but ...
0
votes
0answers
51 views
LXC: 10.04 guest can access VT's but 12.04 guest cannot?
I'm running a couple of LXC guest on an Ubuntu 12.04.2 host.
The 10.04 guests can access the VT's(text) just fine.
However, the 12.04 guest cannot.
The only thing I can find in syslog which looks ...
4
votes
1answer
395 views
Why does upstart fail to start my juju service with Unknown job: juju-ubuntu-0?
I'm having issues launching juju on an lxc container through regular juju deploy commands:
juju bootstrap
juju deploy ubuntu
The ubuntu juju status continually says pending. The LXC starts, and I ...
1
vote
1answer
196 views
Dual-use guest for LXC and KVM?
Would it be possible to install (and maintain by simple means, such as apt-get dist-upgrade) a "dual-use" setup? I.e. install an guest instance in a way which allows me to run it either as LXC or as ...
1
vote
0answers
25 views
What facets should I consider when deciding which guest to jail in (“full”) KVM and which in LXC?
Currently I am migrating to a new server. The old one ran 10.04 as host system and a few more 10.04 and Debian 6 as KVM guests. This was alright, because the processor had support for virtualization. ...
2
votes
0answers
67 views
How do I get the VT running X in my LXC container to my host?
I'm trying to run Lubuntu within an LXC container on my host already using a GUI.
Is it possible to redirect the X output from the container to say; VT9 rather than VT7? If so where is the VT7 ...
2
votes
1answer
199 views
How do I migrate a Virtualbox image to an LXC container?
Is there a way to migrate a Virtualbox image to a LXC containter environment?
I can easly extract a tar of the Virtualbox VM's file system. I'm kind of hoping there's a way to create an 'empty' ...
2
votes
1answer
307 views
How do I setup an LXC guest so that it gets a dhcp address so I can access it on my network?
I setup LXC using:
lxc-create -t ubuntu -n lxcguest1
But I can't access any services running on it from my LAN, it appears to be NATed. How do I set it up so that I can access it (it probably ...
3
votes
2answers
212 views
Video driver under lxc container?
Since LXC (Linux Containers) is a kernel level super-chroot, I've been wondering what sort of video driver the containers have:
My host is Ubuntu 12.04 64-bit machine with ATI gpu. Will the LXC ...
7
votes
1answer
109 views
How can I relaunch juju daemons without stop/starting local LXC containers?
I'm using juju in local mode with LXC.
I updated juju on the host with a classical:
apt-get install juju
And had a plentyful of python errors in juju debug-log probably because juju processes ...
2
votes
1answer
667 views
Running X/Unity inside LXC container
I have already created a number of LXC containers in my 12.04 machine. I need to run GUI applications inside them (mostly Firefox).
Is it correct to presume that it will work out of the box? If not, ...
1
vote
0answers
175 views
How to create dm-crypt device in LXC?
On one LXC container I need to put sensitive data, preferrably stored in dm-crypt encrypted filesystem.
When I write
sudo cryptsetup luksFormat --cipher aes-xts-plain --size 512 ...
0
votes
2answers
70 views
How to make the apt autocompletion work in minimal system (in LXC container)?
When I work inside thin LXC container on 12.04 I have only very basic system. In particular the /etc/bash_completion.d is missing the e.g. apt, that I find particularly useful.
Is there any standard ...
0
votes
1answer
566 views
Where to re-build kernel from in http://kernel.ubuntu.com/~kernel-ppa/mainline/?
Because I experiment with btrfs in my 12.04 server, I use recent 3.6.3-030603-generic kernel found in the kernel-ppa/mainline - Kernel Ubuntu (intended for 12.10 Quantal). I also use the LXC, which ...
3
votes
1answer
318 views
How to manage Juju's LXC containers using virsh?
I use the lxc driver for juju and I have created a local environment; actually the well-known Wordpress from https://juju.ubuntu.com/docs/getting-started.html.
I then tried
export ...
0
votes
0answers
222 views
run two versions of Ubuntu in chroot / lxc
I prefer LTS releases of Ubuntu and usually I install new version from scratch, and currently I slowly migrate from ubuntu-10.04 to 12.04. Ubuntu-12.04 is installed into separate partition, and during ...
5
votes
1answer
112 views
What are the absolutely bare minimum requirements for running local juju?
I have read the documentation on running local juju with lxc. However, the dependencies in the docs seem kind of extensive for that, eg. why would it need libvirt (except for maybe the bridge nic ), ...
4
votes
1answer
151 views
Can I use juju with LXC in a non-local configuration?
I've looked at this post for setting up juju on a local environment with lxc. However, is there a way to use juju with lxc in a non-local environment?
I am looking at a scenario where lxc containers ...
1
vote
0answers
160 views
Failed to spawn test
Running a simple test in Ubuntu 12.04 by entering
sudo lxc-execute -n test /bin/bash -l debug -o outout
resulted in the error message: lxc-execute: failed to spawn 'test'
Here is the output:
...
0
votes
1answer
207 views
Routing IP to LXC virtual machine
I use LXC on my Ubuntu server hosted in Hetzner.
The server IP is 5.x.x.85 and the additional IP I bought is 5.x.x.93.
The LXC VM is running on 10.0.3.2.
How to route the additional IP (5.x.x.93) to ...
1
vote
0answers
381 views
BtrFS deduplication with multiple identical lxc installs upgraded
With lxc and btrfs, you can very easily create a COWed copy of a file or directory structure using cp --reflink or using subvolumes. This can conserve a lot of disk space and make it extremely fast to ...
8
votes
1answer
248 views
AppArmor denying a mount operation
How do I convince apparmor to allow this operation?
[28763.284171] type=1400 audit(1344273461.387:192): apparmor="DENIED"
operation="mount" info="failed type match" error=-13 parent=7101
...
2
votes
1answer
1k views
Web Based Management For LXC Containers?
I need a way to manage LXC containers on Ubuntu Server 12.04 - similar to what Proxmox is. Googling indicates that openstack is one option - would this work?
2
votes
0answers
111 views
How I can run Android 4.0.4 in chroot on Ubuntu 12.04 on the Pandaboard ES?
I want to run fully functional Android 4.0.4 on my Ubuntu 12.04 installation on the Pandaboard ES with the LXC containers.
1
vote
1answer
363 views
Creating volume group in nova-volume Juju charm
Is it required to setup a volume group before deploying the nova-volume Juju charm? I am trying to install Openstack locally on my Ubuntu VM running in local (lxc) mode and get an error that either ...
0
votes
1answer
187 views
Juju could not deploy charms due to not being able to download packages
I update to the ubuntu 12.04 yesterday. and install the juju with :
sudo add-apt-repository ppa:juju/pkgs
sudo apt-get update && sudo apt-get install juju
and I install the lxc also.then ...
0
votes
1answer
728 views
LXC container troubleshooting
I'm trying to start my container node01.
It was working before and I just can't understand why all my containers (3) stopped working in one time after reboot. Actually they not starting. After ...
5
votes
3answers
2k views
LXC Containers & Bridge Connection
I need Step by Step Configuration to make LXC Containers in Ubuntu
right way to configure Lxc container's
right way to config cgroup
right way to config network in host & in ...
2
votes
1answer
396 views
How do I bind a ZFS pool to a LXC container?
I'm using Ubuntu Server 11.10 Oneric, kernel 3.0.0-14-server.
I installed ZFS from ppa and created zpool and mounted it at /zfstankdir.
Then I installed LXC and created Ubuntu container.
Now I want ...
32
votes
2answers
6k views
How do I configure juju for local usage?
I'm too cheap to pay for EC2, and I don't have enough servers to set up my own openstack, how do I configure juju to use Linux Containers (LXC) on something like my laptop?