Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1174859 - missing support for -spice disable-agent-file-xfer qemu commandline option
missing support for -spice disable-agent-file-xfer qemu commandline option
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Libvirt Maintainers
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-16 10:51 EST by Francesco Romani
Modified: 2015-03-05 02:48 EST (History)
6 users (show)

See Also:
Fixed In Version: libvirt-1.2.8-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 02:48:14 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0323 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2015-03-05 07:10:54 EST

  None (edit)
Description Francesco Romani 2014-12-16 10:51:29 EST
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 10:52:01 EST
Created attachment 969624 [details]
qemu command line made by libvirt
Comment 3 Jiri Denemark 2014-12-18 05:21:41 EST
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 05:22:07 EST
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 02:48:14 EST
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.