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 1213233 - [virtagent] The default path '/etc/qemu/fsfreeze-hook' for 'fsfreeze-hook' script doesn't exist
Summary: [virtagent] The default path '/etc/qemu/fsfreeze-hook' for 'fsfreeze-hook' sc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.7
Hardware: All
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Rezanina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1210707
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-20 05:52 UTC by Gu Nini
Modified: 2016-05-10 20:58 UTC (History)
18 users (show)

Fixed In Version: qemu-kvm-0.12.1.2-2.488.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 1210707
Environment:
Last Closed: 2016-05-10 20:58:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0815 0 normal SHIPPED_LIVE qemu-kvm bug fix and enhancement update 2016-05-10 22:39:31 UTC

Comment 2 Lin Chen 2015-04-23 08:24:08 UTC
host kernel:  2.6.32-555.el6.x86_64
host qemu:    qemu-kvm-0.12.1.2-2.466.el6.x86_64
guest kernel: 2.6.32-555.el6.x86_64
guest agent:  qemu-guest-agent-0.12.1.2-2.466.el6.x86_64
    
QE retested this bug on the above environment,then got the same result.
So, the bug is reproduced on the above environment.

Comment 3 Qunfang Zhang 2015-04-23 10:08:18 UTC
Change the hardware based on above comment.

Comment 4 Marc-Andre Lureau 2015-07-04 00:27:55 UTC
The init script correctly set the -F path to the fsfreeze-hook script, so this bug is only happening when startin qemu-ga manually.


I can confirm this, and the problem is related to qemu-ga configure having qemu-kvm confsuffix. This solves the issue for me:

--- a/redhat/qemu-guest-agent.spec.template
+++ b/redhat/qemu-guest-agent.spec.template
@@ -263,7 +263,7 @@ cp %{SOURCE4} build_configure.sh
   "%{_sysconfdir}" \
   "%{_localstatedir}" \
   "%{_libexecdir}" \
-  "%{pkgname}" \
+  "/qemu-ga" \

I think this is quite low severity, so reassigning to Miroslav for the handling of build fix in future releases.

Comment 5 Paolo Bonzini 2015-07-08 15:14:44 UTC
The path in 7.0 was /etc/qemu/fsfreeze-hook, so it should remain /etc/qemu/fsfreeze-hook in 7.2.  Thus the patch in comment 4 seems incorrect to me.

Comment 6 Miroslav Rezanina 2015-07-08 16:35:52 UTC
(In reply to Paolo Bonzini from comment #5)
> The path in 7.0 was /etc/qemu/fsfreeze-hook, so it should remain
> /etc/qemu/fsfreeze-hook in 7.2.  Thus the patch in comment 4 seems incorrect
> to me.

Patch were /etc/qemu-ga/fsfreeze-hook in 7.0 (see https://brewweb.devel.redhat.com/rpminfo?rpmID=3303287). Anyway..we are changing default location used by qemu-ga not location of fsfreeze-hook location.

Comment 7 Paolo Bonzini 2015-07-13 14:01:28 UTC
Sorry, I thought I had 7.0 installed but it's actually 7.1.  You're right.

Comment 9 Jeff Nelson 2016-01-22 16:37:09 UTC
Fix included in qemu-kvm-0.12.1.2-2.485.el6

Comment 11 weliao 2016-01-28 03:53:05 UTC
Test this bug using the following version:
Host:
2.6.32-607.el6.x86_64
qemu-kvm-0.12.1.2-2.485.el6.x86_64
Guest:
2.6.32-595.el6.x86_64
qemu-guest-agent-0.12.1.2-2.485.el6.x86_64

Test Steps:
1. Start a guest with virtio serial guest agent
/usr/libexec/qemu-kvm -name rhel6.8 -machine pc  -drive id=drive_image1,if=none,cache=none,snapshot=off,format=qcow2,file=/mnt/RHEL-Server-6.7-64-virtio.qcow2 -device virtio-blk-pci,id=image1,drive=drive_image1,bus=pci.0,bootindex=0 -netdev tap,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,mac=52:54:25:93:79:67,id=net0  -m 2048 -smp 4,maxcpus=8,cores=4,threads=1,sockets=1 -cpu SandyBridge -boot menu=on -enable-kvm -qmp tcp:0:5556,nowait,server -monitor stdio -spice port=5901,disable-ticketing -global qxl-vga.vram_size=67108864 -vga qxl -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0

2. In the guest, install qemu-guest-agent and set 'FSFREEZE_HOOK_ENABLE=1' in file '/etc/sysconfig/qemu-ga' for the rhel6.7 guest

3. In the guest, start the guest agent with following cmd:
# qemu-ga --method virtio-serial --path /dev/virtio-

4. In the guest, list help info of qemu-ga
# qemu-ga --help
.....default is /etc/qemu/fsfreeze-hook

5. In the guest, check the files of qemu-guest-agent package:
# rpm -ql qemu-guest-agent
/etc/rc.d/init.d/qemu-ga
/etc/sysconfig/qemu-ga
/usr/bin/qemu-ga
/usr/libexec/qemu-ga
/usr/libexec/qemu-ga/fsfreeze-hook
/usr/libexec/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d/mysql-flush.sh.sample
/var/log/qemu-ga

6.In the guest,"guest-fsfreeze-freeze can't execute success.
{"execute":"guest-fsfreeze-freeze"}
{"error": {"class": "GenericError", "desc": "can't access fsfreeze hook '/etc/qemu/fsfreeze-hook': No such file or directory", "data": {"message": "can't access fsfreeze hook '/etc/qemu/fsfreeze-hook': No such file or directory"}}}

So this bug didn't fixed. and retest qemu-guest-agent-0.12.1.2-2.486.el6.x86_64, also has this issue. reassign this bug.

Comment 14 weliao 2016-02-14 07:50:59 UTC
Verify this bug with following version:
Host:
2.6.32-610.el6.x86_64
qemu-kvm-0.12.1.2-2.488.el6.x86_64
Guest:
2.6.32-595.el6.x86_64
qemu-guest-agent-0.12.1.2-2.488.el6.x86_64

Test Steps:
1. Start a guest with virtio serial guest agent
/usr/libexec/qemu-kvm -name rhel6.8 -machine pc  -drive id=drive_image1,if=none,cache=none,snapshot=off,format=qcow2,file=/mnt/RHEL-Server-6.7-64-virtio.qcow2 -device virtio-blk-pci,id=image1,drive=drive_image1,bus=pci.0,bootindex=0 -netdev tap,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,mac=52:54:25:93:79:67,id=net0  -m 2048 -smp 4,maxcpus=8,cores=4,threads=1,sockets=1 -cpu SandyBridge -boot menu=on -enable-kvm -qmp tcp:0:5556,nowait,server -monitor stdio -spice port=5901,disable-ticketing -global qxl-vga.vram_size=67108864 -vga qxl -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0

2. In the guest, install qemu-guest-agent and set 'FSFREEZE_HOOK_ENABLE=1' in file '/etc/sysconfig/qemu-ga' for the rhel6.7 guest

3. In the guest, start the guest agent with following cmd:
# qemu-ga --method virtio-serial --path /dev/virtio-ports/org.qemu.guest_agent.0 -F

4. In the guest, list help info of qemu-ga
# qemu-ga --help
.....default is /usr/libexec/qemu-ga/fsfreeze-hook

5. In the guest, check the files of qemu-guest-agent package:
#rpm -ql qemu-guest-agent
/etc/rc.d/init.d/qemu-ga
/etc/sysconfig/qemu-ga
/usr/bin/qemu-ga
/usr/libexec/qemu-ga
/usr/libexec/qemu-ga/fsfreeze-hook
/usr/libexec/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d/mysql-flush.sh.sample
/var/log/qemu-ga

6.In the guest,"guest-fsfreeze-freeze can't execute success.
# nc -U /tmp/qga.sock 

{"execute":"guest-fsfreeze-freeze"} 
{"return": 2}

{"execute":"guest-fsfreeze-thaw"}
{"return": 2}


So this bug fixed on version qemu-kvm-0.12.1.2-2.488.el6

Comment 16 Guo, Zhiyi 2016-03-22 08:07:49 UTC
Verify this bug with following version:
Host:
2.6.32-633.el6.x86_64
qemu-kvm-0.12.1.2-2.490.el6.x86_64
Guest:
2.6.32-633.el6.x86_64
qemu-guest-agent-0.12.1.2-2.490.el6.x86_64

Test Steps:
1. Start a guest with virtio serial guest agent
/usr/libexec/qemu-kvm -name rhel -m 2048 -machine pc,accel=kvm -cpu SandyBridge -smp 2,cores=1,threads=1,sockets=1,maxcpus=4 -device virtio-serial -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -qmp tcp:0:5555,nowait,server -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 -drive file=/home/images/80g.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -vga qxl -monitor stdio -spice port=3001,disable-ticketing -netdev tap,id=idinWyYp,vhost=on -device virtio-net-pci,mac=42:ce:a9:d2:4d:d7,id=idlbq7eA,netdev=idinWyYp

2. In the guest, install qemu-guest-agent and set 'FSFREEZE_HOOK_ENABLE=1' in file '/etc/sysconfig/qemu-ga' for the rhel6.7 guest

3. In the guest, start the guest agent with following cmd:
# qemu-ga --method virtio-serial --path /dev/virtio-ports/org.qemu.guest_agent.0 -F

4. In the guest, list help info of qemu-ga
# qemu-ga --help
.....default is /usr/libexec/qemu-ga/fsfreeze-hook

5. In the guest, check the files of qemu-guest-agent package:
#rpm -ql qemu-guest-agent
/etc/rc.d/init.d/qemu-ga
/etc/sysconfig/qemu-ga
/usr/bin/qemu-ga
/usr/libexec/qemu-ga
/usr/libexec/qemu-ga/fsfreeze-hook
/usr/libexec/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d
/usr/share/qemu-kvm/qemu-ga/fsfreeze-hook.d/mysql-flush.sh.sample
/var/log/qemu-ga

6.In the guest,"guest-fsfreeze-freeze" be executed successfully.
# nc -U /tmp/qga.sock 

{"execute":"guest-fsfreeze-freeze"} 
{"return": 3}

{"execute":"guest-fsfreeze-thaw"}
{"return": 3}

Comment 18 errata-xmlrpc 2016-05-10 20:58:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0815.html


Note You need to log in before you can comment on or make changes to this bug.