XenAPI needs to support server log
xenapi-server-log can be implemented by using the logging that is part of xenserver:
https:/
The above logs also need to be rotated.
Blueprint information
- Status:
- Complete
- Approver:
- Russell Bryant
- Priority:
- Medium
- Drafter:
- John Garbutt
- Direction:
- Approved
- Assignee:
- John Garbutt
- Definition:
- Approved
- Series goal:
- Accepted for havana
- Implementation:
- Implemented
- Milestone target:
- 2013.2
- Started by
- John Garbutt
- Completed by
- John Garbutt
Related branches
Related bugs
Sprints
Whiteboard
You can activate console logging by:
xenstore-write /local/logconsole/@ "/tmp/console.%d
It appears not to affect vnc consoles
It is using this patch:
https:/
However, the log file needs managing, because it will just grow for ever.
It has been attempted here:
https:/
We could look at mounting a loopback file to limit the log size, on top of using logrotate.
Gerrit topic: https:/
Addressed by: https:/
xenapi: implement get_console_output for XCP/XenServer
Addressed by: https:/
xenapi: script to rotate the guest logs
Work Items
Work items:
read logs from hypervisor: DONE
add script to configure logrotate (etc..) to ensure dom0 disk not filled up my malicious user: DONE