Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1384813

Summary: Unable to use verbose logging with qemu-ga sysconfig file
Product: Red Hat Enterprise Linux 7 Reporter: Marko Myllynen <myllynen>
Component: qemu-guest-agentAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: knoel
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 04:53:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marko Myllynen 2016-10-14 08:43:20 UTC
Description of problem:
On RHEL 6 it was possible to do something like this to enable verbose qemu-ga logging:

LOGFILE="/path/log --verbose"

With RHEL 7 such a trick is not possible and there's no way to enable verbose logging (expect by manually editing the .service file which isn't the greatest idea).

Please make it possible to enable qemu-qa verbose logging via a configuration mechanism. This is crucial when, e.g., investigating whether filesystems are getting frozen as expected.

Comment 2 Marc-Andre Lureau 2016-10-18 04:53:21 UTC
When switching to rhel7, the package config changed. Tbh, I think the jounal is a lot more powerful than just redirecting to a seperate file, but you may configure it that way now:

cat /etc/qemu-ga/qemu-ga.conf 

[general]
blacklist=guest-info
verbose=1
logfile=/path/log

With that, I think we can close this bug. Reopen if anything is missing.

Comment 3 Marko Myllynen 2016-10-18 05:15:36 UTC
Right, I was actually testing on RHEL 7.2 where the configuration file doesn't work but on RHEL 7.3 Beta this can be done as you showed above. Thanks!