Ask Your Question
1

How to enable audio on my instance?

asked 2014-01-14 15:53:43 -0600

corabian gravatar image

updated 2014-01-14 15:54:37 -0600

Hi Guys, I'm running a three node OpenStack Havana installation deployed with this guide: github.com/baremetalcloud/chef-repo

Everything looks fine with the installation and I'm doing some tests with SPICE, but seems that my instances don't have any audio device available. How can I add it?

I found some posts saying that one option would be changing libvirt.xml.template and add the following entry:

<devices>
 <sound model='ich6'>
  <codec type='micro'/>
 <sound/>
</devices>

But seems that after Folsom this libvirt-template-file-approach has been changed into an object model ( https://lists.launchpad.net/openstack/msg08408.html ). Here is the information from inside the instance:

# uname -a
Linux ubuntu-spice 3.2.0-57-virtual #87-Ubuntu SMP Tue Nov 12 21:53:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/issue
Ubuntu 12.04.3 LTS \n \l
# lspci -v | grep Audio
# ls /sbin/alsa-utils*
ls: cannot access /sbin/alsa-utils*: No such file or directory
# aplay -l
aplay: device_list:252: no soundcards found...
# ls /proc/asound*
ls: cannot access /proc/asound*: No such file or directory

Thanks in advance and let me know if any extra information is required.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-14 17:16:27 -0600

SamYaple gravatar image

We made the changes listed here to get that to work. I had to use ac97 to have audio work with Windows. YMMV.

Link - https://www.mail-archive.com/openstack@lists.launchpad.net/msg19684.html

edit flag offensive delete link more

Comments

This thread is rather old, but I'm still struggling with sound on a Windows VM. If I add <sound model='ich6'> <alias name='sound0'/> <address [...]/> </sound> to the xml of a running instance this works only if openstack is not involved. Is there still only the hacking way?

eblock gravatar imageeblock ( 2019-02-22 08:18:01 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-01-14 15:53:43 -0600

Seen: 1,271 times

Last updated: Jan 14 '14