Bug 1047265

Summary: Sound device does not work well after migrate from rhel6.5 host to rhel7.0
Product: Red Hat Enterprise Linux 7 Reporter: Qunfang Zhang <qzhang>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: hhuang, huding, juzhang, knoel, michen, qzhang, rbalakri, virt-bugs, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-13 13:21:57 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:
Bug Depends On: 1035184    
Bug Blocks:    
Attachments:
Description Flags
Sound device report error after migration. none

Description Qunfang Zhang 2013-12-30 08:39:35 UTC
Description of problem:
Boot a guest on rhel6.5 host with sound device, playing some music inside guest and then migrate to rhel7.0 host. After migration, the music is still playing in the guest, however, after about 5~10 seconds, the music stops and report error that the audio device was disconnected or reconfigured. (Attachment will be uploaded.)

Version-Release number of selected component (if applicable):
RHEL6.5 host:
kernel-2.6.32-431.1.2.el6.x86_64
qemu-kvm-0.12.1.2-2.415.el6_5.3.x86_64

RHEL7.0 host:
kernel-3.10.0-64.el7.x86_64
qemu-kvm-1.5.3-31.el7.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Boot up a win7 guest on 6.5 host with sound device, eg:
 /usr/libexec/qemu-kvm -M rhel6.5.0 -cpu SandyBridge -enable-kvm -m 2G -smp 4,sockets=4,cores=1,threads=1 -name win8-64 -uuid 9a0e67ec-f286-d8e7-0548-0c1c9ec93009 -nodefconfig -nodefaults -monitor stdio -rtc base=utc,clock=host,driftfix=slew -no-kvm-pit-reinjection -no-shutdown -usb -device usb-tablet,id=input1 -device usb-mouse,id=mouse  -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x3 -drive file=/media/win7-32-virtio.qcow2,if=none,id=drive-sata0-0-0,format=qcow2,cache=none,werror=stop,rerror=stop -device scsi-hd,bus=scsi0.0,drive=drive-sata0-0-0,id=sata0-0-0,bootindex=1 -drive if=none,media=cdrom,id=drive-sata0-0-1,readonly=on,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-sata0-0-1,id=sata0-0-1 -netdev tap,id=hostnet0,vhost=on,script=no -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:d5:51:8a,bus=pci.0,addr=0x4 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -spice port=5930,disable-ticketing -vga qxl -device intel-hda,id=sound0,bus=pci.0,addr=0x5 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x7 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=port1,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=port2,bus=virtio-serial0.0,id=port2 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -qmp tcp:0:5555,server,nowait


2. Connect the guest with spice
#remote-viewer spice://$host_ip:5930 

3. Plug an ear phone on the spice client host and play some music inside guest.

4. Boot the guest with listening mode on destination host "-incoming tcp:0:5800"

5. Migrate the guest to dst host.

Actual results:
After migration finished, the music is still running at the beginning, but after about 5~10 seconds, the music stops and sound device does not work well.

Expected results:
Sound device should always work well.

Additional info:

Comment 1 Qunfang Zhang 2013-12-30 08:41:50 UTC
Created attachment 843305 [details]
Sound device report error after migration.

Comment 4 Gerd Hoffmann 2014-01-16 14:12:59 UTC
vnc+sound is not supported.  Please retest once bug 1035184 is fixed.

Comment 7 Gerd Hoffmann 2015-05-04 08:29:12 UTC
(In reply to Gerd Hoffmann from comment #4)
> vnc+sound is not supported.  Please retest once bug 1035184 is fixed.

Ping.  Bug 1035184 is fixed meanwhile.

Comment 8 Ademar Reis 2015-09-18 12:36:16 UTC
(In reply to Gerd Hoffmann from comment #7)
> (In reply to Gerd Hoffmann from comment #4)
> > vnc+sound is not supported.  Please retest once bug 1035184 is fixed.
> 
> Ping.  Bug 1035184 is fixed meanwhile.

ping again, high chances that this BZ has been fixed.

Comment 9 juzhang 2015-09-21 09:28:14 UTC
Hi Huding,

Could you have a try from RHEL6.7 host to RHEL7.2 host?

Hi Gerd,

Please let QE know if we need to test it from RHEL6.5 host to RHEL7.0 host.

Best Regards,
Junyi

Comment 10 huiqingding 2015-10-26 12:54:29 UTC
(In reply to juzhang from comment #9)
> Hi Huding,
> 
> Could you have a try from RHEL6.7 host to RHEL7.2 host?
> 

I test from RHEL6.7.z to RHEL7.2 as comment #0 and the result is ok. After migration, the music can be played normally.

The version of packages are:
RHEL6.7.z host:
kernel-2.6.32-573.8.1.el6.x86_64
qemu-kvm-0.12.1.2-2.479.el6_7.2.x86_64
RHEL7.2 host:
kernel-3.10.0-326.el7.x86_64
qemu-kvm-1.5.3-105.el7.x86_64

Comment 11 Gerd Hoffmann 2016-06-13 13:21:57 UTC
> I test from RHEL6.7.z to RHEL7.2 as comment #0 and the result is ok. After
> migration, the music can be played normally.

Good, closing.