On 2019-12-13 11:41 a.m., Rich Morin wrote:
> On the ALSA list, Clemens Ladisch gave me this hint:
>
>> You have to configure the VM to provide a (virtual) sound hardware device
>> (https://www.virtualbox.org/manual/ch03.html#settings-audio), or to pass
>> through a USB audio device from the host.
>
> That section (quoted below) lists several settings that need to be made 
> before things will work.  Problem is, I don't know how to check these in the 
> Vagrant environment.  Help?
I don't have a mac, but this worked for me:
In Vagrantfile, add the following:
  config.vm.provider "virtualbox" do |vb|
    vb.customize ["modifyvm", :id, "--audio", "alsa"]
    vb.customize ["modifyvm", :id, "--audioout", "on"]
  end

The relevant documentation:
https://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm-general

https://www.vagrantup.com/docs/virtualbox/configuration.html#vboxmanage-customizations

Hope this works for you :)
-EricZ

>
> -r
>
>> The Audio section in a virtual machine's Settings window determines whether 
>> the VM will detect a connected sound card, and if the audio output should be 
>> played on the host system.
>>
>> To enable audio for a guest, select the Enable Audio check box. The 
>> following settings are available:
>>
>> Host Audio Driver: The audio driver that Oracle VM VirtualBox uses on the 
>> host. On a Linux host, depending on your host configuration, you can select 
>> between the OSS, ALSA, or the PulseAudio subsystem. On newer Linux 
>> distributions, the PulseAudio subsystem is preferred.
>>
>> Only OSS is supported on Oracle Solaris hosts. The Oracle Solaris Audio 
>> audio backend is no longer supported on Oracle Solaris hosts.
>>
>> Audio Controller: You can choose between the emulation of an Intel AC'97 
>> controller, an Intel HD Audio controller, or a SoundBlaster 16 card.
>>
>> Enable Audio Output: Enables audio output only for the VM.
>>
>> Enable Audio Input: Enables audio input only for the VM.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/dd0cf6c0-efe8-823c-2057-d655706441ce%40gmail.com.

Reply via email to