[Users] sound support
Nerijus Baliunas
nerijus at users.sourceforge.net
Thu May 17 13:17:25 UTC 2012
Hello,
I added a hook for sound support:
#!/usr/bin/python
#http://www.ovirt.org/wiki/Features/Serial_Console_in_CLI#Currently_operational_workaround
import os
import sys
import hooking
import traceback
try:
domxml = hooking.read_domxml()
devices = domxml.getElementsByTagName('devices')[0]
sound = domxml.createElement('sound')
sound.setAttribute('model', 'ac97')
devices.appendChild(sound)
address = domxml.createElement('address')
address.setAttribute('type', 'pci')
address.setAttribute('domain', '0x0000')
address.setAttribute('bus', '0x00')
address.setAttribute('slot', '0x06')
address.setAttribute('function', '0x0')
sound.appendChild(address)
hooking.write_domxml(domxml)
except:
#log to vdsm.log
sys.stderr.write('sound: [Unexpected Error]: %s\n' % traceback.format_exc())
sys.exit(2)
But Windows guest cannot play audio (I connect with remorte desktop connection and rdesktop),
although a driver was installed automatically in guest. Is it possible to get sound with rdesktop?
Regards,
Nerijus
More information about the Users
mailing list