Bug 955498 - Desktop VM from RHEV 3.0 does not have any sound device after importing to RHEV 3.1
Summary: Desktop VM from RHEV 3.0 does not have any sound device after importing to RH...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 3.3.0
Assignee: Arik
QA Contact: Jiri Belka
URL:
Whiteboard: virt
Depends On:
Blocks: 967893
TreeView+ depends on / blocked
 
Reported: 2013-04-23 07:33 UTC by Roman Hodain
Modified: 2018-12-01 16:37 UTC (History)
12 users (show)

Fixed In Version: is1
Doc Type: Bug Fix
Doc Text:
A desktop virtual machine imported from version 3.0 did not have any sound devices. This update adds a check to the virtual machine and adds sound devices if it is a desktop machine.
Clone Of:
: 967893 (view as bug list)
Environment:
Last Closed: 2014-01-21 17:19:21 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0038 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Virtualization Manager 3.3.0 update 2014-01-21 22:03:06 UTC
oVirt gerrit 14607 0 None None None Never

Description Roman Hodain 2013-04-23 07:33:43 UTC
Description of problem:
Vm desktops exported from RHEV 3.0 does not contain sound device after importing to RHEV 3.1

Version-Release number of selected component (if applicable):
rhevm-3.0.8_0001-1.el6_3.x86_64
rhevm-3.1.0-50.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Crete a new desktop in RHEV 3.0
2. export it to an export domain
3. import it from the export domain to RHEV 3.1


Actual results:
The VM does not contain any sound devices

Expected results:
The VM contain a sound device ( all devices that are supposed to be there )

Additional info:

Comment 3 Arik 2013-05-08 10:15:32 UTC
Roman, can you please attach the ovf file of the VM? (I need it to verify the fix)

Comment 7 Jiri Belka 2013-05-30 14:58:30 UTC
I don't think there is soundcard after importing a VM from 3.0 (is1):

* 3.3

<domain type='kvm' id='44'>
  <name>win30</name>
  <uuid>1a213d7d-3ea5-4433-96e9-ef5be4214b49</uuid>
  <memory unit='KiB'>524288</memory>
  <currentMemory unit='KiB'>524288</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <cputune>
    <shares>1020</shares>
  </cputune>
  <sysinfo type='smbios'>
    <system>
      <entry name='manufacturer'>Red Hat</entry>
      <entry name='product'>RHEV Hypervisor</entry>
      <entry name='version'>6Server-6.4.0.4.el6</entry>
      <entry name='serial'>4C4C4544-0058-3410-8058-C3C04F38354A</entry>
      <entry name='uuid'>1a213d7d-3ea5-4433-96e9-ef5be4214b49</entry>
    </system>
  </sysinfo>
  <os>
    <type arch='x86_64' machine='rhel6.4.0'>hvm</type>
    <smbios mode='sysinfo'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>Conroe</model>
    <topology sockets='1' cores='1' threads='1'/>
  </cpu>
  <clock offset='variable' adjustment='3600' basis='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/rhev/data-center/mnt/10.34.63.204:_home_iso_shared/a7e5f59c-2877-475b-8afc-f760ba63defb/images/11111111-1111-1111-1111-111111111111/RHEV-toolsSetup_3.2_8.iso' startupPolicy='optional'>
        <seclabel model='selinux' relabel='no'/>
      </source>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <serial></serial>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <disk type='file' device='disk' snapshot='no'>
      <driver name='qemu' type='raw' cache='none' error_policy='stop' io='threads'/>
      <source file='/rhev/data-center/a05c6f22-2a40-4f39-a2a8-aa91b539b217/cc4d884d-15d9-4e35-b869-4330245c1b94/images/864560c9-086e-42a7-84d1-004f8b0c2789/27c58659-153c-4705-b15c-98edd37d2d56'>
        <seclabel model='selinux' relabel='no'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <serial>864560c9-086e-42a7-84d1-004f8b0c2789</serial>
      <boot order='1'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='00:1a:4a:16:3f:01'/>
      <source bridge='rhevm'/>
      <target dev='vnet2'/>
      <model type='virtio'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='up'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/win30.com.redhat.rhevm.vdsm'/>
      <target type='virtio' name='com.redhat.rhevm.vdsm'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/win30.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <alias name='channel1'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <alias name='channel2'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
    </channel>
    <input type='mouse' bus='ps2'/>
    <graphics type='spice' port='5904' tlsPort='5905' autoport='yes' keymap='en-us' passwdValidTo='1970-01-01T00:00:01'>
      <listen type='network' address='10.34.63.222' network='vdsm-rhevm'/>
      <channel name='main' mode='secure'/>
      <channel name='display' mode='secure'/>
      <channel name='inputs' mode='secure'/>
      <channel name='cursor' mode='secure'/>
      <channel name='playback' mode='secure'/>
      <channel name='record' mode='secure'/>
      <channel name='smartcard' mode='secure'/>
      <channel name='usbredir' mode='secure'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='none'>
      <alias name='balloon0'/>
    </memballoon>
  </devices>
  <seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>system_u:system_r:svirt_t:s0:c140,c344</label>
    <imagelabel>system_u:object_r:svirt_image_t:s0:c140,c344</imagelabel>
  </seclabel>
</domain>

virsh # 

# ps ax | grep '[q]emu-kvm.*win30'
20760 ?        Sl     0:12 /usr/libexec/qemu-kvm -name win30 -S -M rhel6.4.0 -cpu Conroe -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 1a213d7d-3ea5-4433-96e9-ef5be4214b49 -smbios type=1,manufacturer=Red Hat,product=RHEV Hypervisor,version=6Server-6.4.0.4.el6,serial=4C4C4544-0058-3410-8058-C3C04F38354A,uuid=1a213d7d-3ea5-4433-96e9-ef5be4214b49 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win30.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=2013-05-30T15:49:51,driftfix=slew -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/mnt/10.34.63.204:_home_iso_shared/a7e5f59c-2877-475b-8afc-f760ba63defb/images/11111111-1111-1111-1111-111111111111/RHEV-toolsSetup_3.2_8.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial= -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=/rhev/data-center/a05c6f22-2a40-4f39-a2a8-aa91b539b217/cc4d884d-15d9-4e35-b869-4330245c1b94/images/864560c9-086e-42a7-84d1-004f8b0c2789/27c58659-153c-4705-b15c-98edd37d2d56,if=none,id=drive-virtio-disk0,format=raw,serial=864560c9-086e-42a7-84d1-004f8b0c2789,cache=none,werror=stop,rerror=stop,aio=threads -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=32,id=hostnet0,vhost=on,vhostfd=35 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:16:3f:01,bus=pci.0,addr=0x3 -chardev socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/win30.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/win30.org.qemu.guest_agent.0,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice port=5904,tls-port=5905,addr=10.34.63.222,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on -k en-us -vga qxl -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_size=67108864

* on 3.0

[root@slot-8 ~]# ps ax | grep qemu-kvm
 5617 ?        Sl     0:07 /usr/libexec/qemu-kvm -name win30 -S -M rhel6.2.0 -cpu Westmere -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -uuid 1a213d7d
-3ea5-4433-96e9-ef5be4214b49 -smbios type=1,manufacturer=Red Hat,product=RHEV Hypervisor,version=6.4-20130528.0.el6_4,serial=4C4C4544-0052-4C10-8058-B3C04F4335
4A,uuid=1a213d7d-3ea5-4433-96e9-ef5be4214b49 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win30.monitor,server,nowait -mo
n chardev=charmonitor,id=monitor,mode=control -rtc base=2013-05-30T14:44:02,driftfix=slew -no-shutdown -device virtio-serial-pci,id=virtio-serial0,max_ports=16
,bus=pci.0,addr=0x5 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/rhev/data-center/aed75668-beb8-11e2-a579-001a4a013f86/6c29c408-9a1c-44c0-
804a-40f05de04367/images/864560c9-086e-42a7-84d1-004f8b0c2789/27c58659-153c-4705-b15c-98edd37d2d56,if=none,id=drive-virtio-disk0,format=raw,serial=864560c9-086
e-42a7-84d1-004f8b0c2789,cache=none,werror=stop,rerror=stop,aio=threads -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-d
isk0,bootindex=1 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial= -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-
0 -netdev tap,fd=32,id=hostnet0,vhost=on,vhostfd=33 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:16:3f:01,bus=pci.0,addr=0x3,bootindex=2 -charde
v socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/win30.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=1,chardev
=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm -chardev socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/win30.org.qemu.guest_agent.0,server,no
wait -device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0 -chardev spicevmc,id=charchannel2,name=vdage
nt -device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0 -spice port=5900,tls-port=5901,addr=0,x509-dir=/et
c/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=inputs,seamless-migration=on -k en-us -vga qxl -global qxl-vga.ram_size=67108864 -global qxl-vga.vram_siz
e=67108864 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0

Comment 8 Jiri Belka 2013-05-31 08:16:18 UTC
My mistake, the previous comment was from si17.1 (3.2). On 3.3 (is1) it is OK.

...
    <sound model='ich6'>
      <alias name='sound0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
...

# ps ax | grep '[q]emu-kvm.*win30' | sed 's/ /\n/g' | egrep "intel-hda|sound"
intel-hda,id=sound0,bus=pci.0,addr=0x4
hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0

Comment 9 Charlie 2013-11-28 00:25:51 UTC
This bug is currently attached to errata RHEA-2013:15231. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 10 errata-xmlrpc 2014-01-21 17:19:21 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.

http://rhn.redhat.com/errata/RHSA-2014-0038.html


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