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 1174859 - missing support for -spice disable-agent-file-xfer qemu commandline option
Summary: missing support for -spice disable-agent-file-xfer qemu commandline option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-16 15:51 UTC by Francesco Romani
Modified: 2015-03-05 07:48 UTC (History)
6 users (show)

Fixed In Version: libvirt-1.2.8-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 07:48:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
XML used to test the VM (3.51 KB, application/xml)
2014-12-16 15:51 UTC, Francesco Romani
no flags Details
qemu command line made by libvirt (1.97 KB, text/plain)
2014-12-16 15:52 UTC, Francesco Romani
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0323 0 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2015-03-05 12:10:54 UTC

Description Francesco Romani 2014-12-16 15:51:29 UTC
Created attachment 969623 [details]
XML used to test the VM

Description of problem:
Libvirt 1.2.2 gained the qemu -spice option called disable-agent-file-xfer which, as name suggests, disable the file transfer.
Support for RHEL 6.x was added in https://bugzilla.redhat.com/show_bug.cgi?id=983018 and fixed in version 0.10.2-35

Version 1.1.1-29.el7 doesn't include such backport.

Version-Release number of selected component (if applicable):
1.1.1-29.el7

How reproducible:
100% of time

Steps to Reproduce:
1. create a VM with the attached XML
2. observe the QEMU command line (see attached example)
3.

Actual results:
no way to disable SPICE file transfer

Expected results:
support to disable SPICE file transfer

Comment 1 Francesco Romani 2014-12-16 15:52:01 UTC
Created attachment 969624 [details]
qemu command line made by libvirt

Comment 3 Jiri Denemark 2014-12-18 10:21:41 UTC
Well, apparently nobody asked for the feature to be backported to 7.0. Anyway, this is already included in 7.1 via rebase.

Comment 5 zhenfeng wang 2015-01-05 10:22:07 UTC
Verify this bug with libvirt-1.2.8-11.el7, The following was the verify steps

pkginfo
host:
rhel7.1
qemu-kvm-rhev-2.1.2-17.el7.x86_64
spice-server-0.12.4-8.el7.x86_64
libvirt-1.2.8-11.el7.x86_64


guest:
rhel7/win7-64
spice-vdagent-0.14.0-9.el7.x86_64/vdagent-win-3.5-1

client:
rhel6
virt-viewer-0.5.6-8.el6.x86_64

rhel7
virt-viewer-0.6.0-12.el7.x86_64


steps
1. start two guests with spice-agent enabled(it was enabled by default)
# virsh list
 Id    Name                           State
----------------------------------------------------
 30    rhel7                         running
 31    win7                          running

2. Connect the two guests in the fc19 
#remote-viewer spice://$server_ip:$port_number
3.Drag a file from the rhel6/rhel7 to the guests, the file can be draged successfully
4.Destroy the two guests, then disable the spice agent in libvirt side
#virsh dumpxml rhel7
# virsh dumpxml rhel7 |grep filetransfer -B 2
    <graphics type='spice' port='5903' autoport='no' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
      <filetransfer enable='no'/>

# virsh dumpxml win7 |grep filetransfer -B 1
    <graphics type='spice' autoport='yes' listen='0.0.0.0'>
      <filetransfer enable='no'/>

5.start the two guests, check the qemu command of the guest, we could see the spice agent was disabled in qemu side
# ps aux|grep rhel6m 
qemu     21085 59.3  3.4 1511736 279984 ?      Sl   04:19   0:14 /usr/libexec/qemu-kvm -name rhel7 --
-device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=com.redhat.spice.0 -spice port=5903,addr=0.0.0.0,disable-ticketing,disable-agent-file-xfer,seamless-migration=on

#ps aux|grep win7
# ps aux|grep win7
qemu     21123 72.3 13.5 1593504 1084444 ?     Sl   04:19   1:05 /usr/libexec/qemu-kvm -name win7 --
-spice port=5900,addr=0.0.0.0,disable-ticketing,disable-agent-file-xfer,seamless-migration=on

6.Connect the two guests in the both rhel6/rhel7
#remote-viewer spice://$server_ip:$port_number

7.Drag a file from the rhel6/rhel7 to the guests, the file can't be draged to the guest successfully

According to the upper steps, mark this bug verifed

Comment 7 errata-xmlrpc 2015-03-05 07:48:14 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/RHSA-2015-0323.html


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