Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184937 - app-admin/metalog - Support for metalog inside VServers
Summary: app-admin/metalog - Support for metalog inside VServers
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: SpanKY
URL: https://sourceforge.net/tracker/index...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 09:25 UTC by Adrian Perez
Modified: 2009-01-04 18:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
metalog-0.8-disable-klog.patch (metalog-0.8-disable-klog.patch,1.88 KB, patch)
2007-07-11 09:28 UTC, Adrian Perez
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Perez 2007-07-11 09:25:21 UTC
Metalog won't run inside a VServer because it tries to read kernel logs, which is impossible inside a virtual machine.

Reproducible: Always

Steps to Reproduce:
1. Install VServer and create a virtual machine
2. Install app-admin/metalog inside the virtual machine
3. Run "metalog -v" as root

Actual Results:  
Metalog does not work and prints the following error:

Unable to control the kernel logging device: Operation not permitted
Unable to bind sockets - aborting


Expected Results:  
It would be nice if Metalog could run inside VServer virtual machines.
Comment 1 Adrian Perez 2007-07-11 09:28:07 UTC
Created attachment 124535 [details, diff]
metalog-0.8-disable-klog.patch

I have attached a patch which adds a "--no-kernel" (or simply "-N") command line flag which disables spawning the kernel log instance of metalog, thus disabling reading of messages from the kernel.

With this patch you can run metalog inside an VServer, by adding "--no-kernel" to METALOG_OPTS in /etc/conf.d/metalog

I have also submitted the patch upstream (I filled a bug in the SF project page for metalog).
Comment 2 David J Cozatt 2008-04-08 00:31:44 UTC
I've done this ok with sysklog. be nice if they were split though. klog logs at 
startup then no more logging. Also I installed from a stage3 of 2006.0 and am 
trying to update. The kernel of the machine underneath can be gotten with uname -a 
of course but gentoo wants to install the headers if you do more than glsa-check -f 
accepted.
 
Other issues portage complains of no support for my arch.

>>> Install portage-2.1.4.4 into /var/tmp/portage/sys-apps/portage-2.1.4.4/image/ categ
ory sys-apps
 *
 * Portage does not have an arch-specific configuration for this arch.
 * Please notify the arch maintainer about this issue. Using generic.
 *
>>> Completed installing portage-2.1.4.4 into /var/tmp/portage/sys-apps/portage-2.1.4.4
/image/

I'll file a new bug if you wish.