Red Hat Bugzilla – Bug 1174859
missing support for -spice disable-agent-file-xfer qemu commandline option
Last modified: 2015-03-05 02:48:14 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
Created attachment 969624 [details] qemu command line made by libvirt
Well, apparently nobody asked for the feature to be backported to 7.0. Anyway, this is already included in 7.1 via rebase.
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
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