Your message dated Thu, 2 Jun 2011 13:06:37 +0200
with message-id <[email protected]>
and subject line fixed a while ago in the up-to-date version
has caused the Debian Bug report #517863,
regarding Make logging of guest console output in dom0 via xenconsoled
configurable
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
517863: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517863
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xen-utils-3.2-1
Version: 3.2.1-2
Severity: wishlist
Hi,
this morning I spend some time to find out how to log console output of
Xen guest domains into a file in dom0.
I ended up using a quick 'n dirty solution:
mario:/usr/lib/xen-3.2-1/bin 0-# diff -u xend.orig xend
--- xend.orig 2009-03-02 16:49:49.000000000 +0100
+++ xend 2009-03-02 16:16:03.000000000 +0100
@@ -100,7 +100,8 @@
import time
time.sleep(2)
if os.fork() == 0:
- execute('xenconsoled')
+ args = ["--log", "guest", "--log-dir", "/var/log/xen/guest/"]
+ execute('xenconsoled', args)
def start_blktapctrl():
if os.fork() == 0:
mario:/usr/lib/xen-3.2-1/bin 0-#
It seems the options used to start xenconsoled cannot be configured in
Debian now. /etc/init.d/xend executes /usr/lib/xen-3.2-1/bin/xend which
executes xenconsoled subsequently.
Hans van Kranenburg
--- End Message ---
--- Begin Message ---
Hi,
Matej Vela noticed internally a few months ago that this bug was fixed in
xen-utils-4.0, so I'm now spreading the new gospel ;) there's now
a /etc/default/xend file which can include:
XENCONSOLED_ARGS="--log=guest"
You could however file a separate bug report against the new version for
e.g. not shipping this enabled by default, and/or for failing to provide
an example logrotate configuration for the same :)
install -d -g adm -m 2750 /var/log/xen/console
/etc/logrotate.d/xenconsoled:
/var/log/xen/console/*.log {
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
[ -e /var/run/xenconsoled.pid ] && kill -HUP `cat
/var/run/xenconsoled.pid`
endscript
}
--
2. That which causes joy or happiness.
--- End Message ---