How To Install CGManager 0.32.2 On Ubuntu 14.10 Utopic Unicorn

Hello Linux Geeksters. As you may know, CGManager is an open-source central privilege daemon that manages cgroups via DBus, working with LXC containers and accepting unprivileged results, including resolving namespaces: UIDs/GIDs.

Each host has only one running daemon running to manage the control groups, answering the cgroup management requests over DBus, lockated in /sys/fs/cgroup/sock and the /sys/fs/cgroup/cgmanager directory can be bind-mounted into containers.

The latest version available is CGMiner 0.32.2, which has been recently released.

How To Install CGManager 0.32.2 On Ubuntu 14.10 Utopic Unicorn

In this article I will show you how to install CGMiner 0.32.2 on Ubuntu 14.10 Utopic Unicorn.

Because it is available via PPA, installing CGMiner 0.32.2 on Ubuntu 14.10 is easy. All you have to do is add the ppa to your system, update the local repository index and install the cgminer package. Like this:

$ sudo add-apt-repository ppa:serge-hallyn/virt
$ sudo apt-get update
$ sudo apt-get install cgmanager cgmanager-utils

Usage instructions:

If your user does not belong to its own cgroup, do:

$ sudo cgm create all me
$ sudo cgm chown all me $(id -u) $(id -g)
$ sudo movepid all me $$

To use cgmanager in containers, make lxc bind mount the cgmanager socket into the container:

$ echo "lxc.mount.auto = cgroup" >> /var/lib/lxc/container/config

Optional, to remove cgmanager, do:

$ sudo apt-get remove cgmanager cgmanager-utils

Tagged with: , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!