- Аудио не работает на гостевом компьютере VirtualBox Windows 10 (хост MacOS)
- Различные версии VirtualBox
- Другая ОС
- Улучшения Windows / отладка
- Настройки виртуальной машины
- Попробуйте другой аудио драйвер
- Логи ВМ
- Симптом: завершение работы VM приводит к сбою VirtualBox
- 1 ответ 1
- Виртуальный аудио драйвер для Mac OS X
- 2 ответов
- Download VirtualBox
- VirtualBox binaries
- VirtualBox 6.1.26 platform packages
- VirtualBox 6.1.26 Oracle VM VirtualBox Extension Pack
- VirtualBox 6.1.26 Software Developer Kit (SDK)
- User Manual
- VirtualBox older builds
- VirtualBox Sources
- Pre-built VirtualBox VMs
- Ticket #15611 (closed defect: fixed)
- No sound in OSX guests after 5.1
- Description
- Attachments
- Change History
- Changed 5 years ago by socratis
- Changed 5 years ago by socratis
- Changed 5 years ago by dinosaur0
- comment:1 Changed 5 years ago by dinosaur0
- comment:2 Changed 5 years ago by taidoka
- comment:3 Changed 5 years ago by socratis
- comment:4 follow-up: ↓ 5 Changed 5 years ago by josefcarel
- comment:5 in reply to: ↑ 4 Changed 5 years ago by socratis
- comment:6 Changed 5 years ago by pedelar
- comment:7 Changed 5 years ago by socratis
- comment:8 Changed 5 years ago by frank
- comment:9 Changed 5 years ago by socratis
- comment:10 Changed 5 years ago by dark_sylinc
- comment:11 Changed 5 years ago by socratis
- comment:12 Changed 5 years ago by Mr.T
- comment:13 Changed 5 years ago by socratis
- comment:14 Changed 5 years ago by socratis
Аудио не работает на гостевом компьютере VirtualBox Windows 10 (хост MacOS)
Я использую гостевую ОС Windows 10 Home на виртуальной машине VirtualBox, на хосте MacOS под управлением 10.13.6 High Sierra с VirtualBox 5.2.23.
Звук работал несколько раз, потом перестал работать. (Возможно, это вызвано обновлением версии virtualbox или моими настройками, я не уверен.) знак равно
- Я попытался выполнить чистую установку из ISO со всеми настройками Windows 10 по умолчанию на VirtualBox, там тоже нет звука.
- Я попробовал другой мой Mac (на котором установлен macOS 10.14 Mojave), когда я устанавливаю тот же образ, с тем же конфигом и с тем же VirtualBox, он работает там. (Странно)
Гостевые ОС считают, что аудио доступно. Но это просто не играет на хосте. Вот скриншот из Volume Mixer:
Вот что я попробовал до сих пор:
Различные версии VirtualBox
Я подозреваю, что это могло произойти (не уверен) после обновления VirtualBox, поэтому я попробовал последнюю версию 5.2.23, а также некоторые старые версии, такие как 5.2.14 и 5.2.18. Неудачно.
Другая ОС
Я попробовал Ubuntu Desktop (live CD), он также думает, что аудио доступно. В отличие от Windows, когда я пытаюсь воспроизвести видео / аудио в Firefox, проигрыватель фактически никогда не запускает видео или аудио. (Странно)
Улучшения Windows / отладка
- Гостевые дополнения Windows полностью установлены.
- Обновления Windows все завершены.
- Я отключил проверку подписи драйверов
- Я попытался устранить неполадки звука, ничего не вернулся.
- dxdiag показывает, что звук в порядке (говорит:»Проблем не найдено», а имя устройства — «Динамики (аудиоустройство высокой четкости)»:
Настройки виртуальной машины
Вот настройки, которые я использую:
Я пробовал другие параметры паравиртуализации, такие как «Нет» или «По умолчанию» вместо Hyper-V, но не повезло.
Попробуйте другой аудио драйвер
Вместо настройки аудиоконтроллера Intel HD на VirtualBox я попытался использовать настройку ICH AC97. Поэтому я установил архаичные аудио драйверы Realtek AC’97 для Vista/7 в Windows 10.
Он успешно распознал изменение, но все еще не работает:
Логи ВМ
Симптом: завершение работы VM приводит к сбою VirtualBox
Если я принудительно отключу виртуальную машину от VirtualBox, весь процесс VirtualBox завершится сбоем в macOS.
1 ответ 1
Хорошо, я сделал много отладки на этом, и нет определенного решения для этого, это глюк.
Я обновил оба моих Mac до одной и той же версии. Я использовал ту же версию VBox. Черт возьми, я даже скопировал виртуальную машину вместе с диском и настройками с одной машины на другую. Это привело к одному результату: аудио VM работало на одном Mac, но не на другом.
Чтобы это исправить: Зайдите на devicemgr в гостевой виртуальной машине Windows, щелкните правой кнопкой мыши на звуковом устройстве и отключите его. Затем включите его. Это должно работать.
Пока это единственное решение, которое сработало для меня, и оно снова работает надежно, когда я теряю звук и восстанавливаю его с помощью этой техники. Как ни странно, когда звук сломан, он сломан для всех виртуальных машин (windows, linux, не имеет значения) — но как только вы исправите это, он будет исправлен везде (момент wtf).
Я думаю, что этот сбой происходит, когда вы подключаете ваш Mac к внешнему дисплею со звуком (например, Apple Cinema Display), и VirtualBox не понимает, куда отправлять звук, и выбор его в настройках звука в macOS не поможет.
Источник
Виртуальный аудио драйвер для Mac OS X
Я хочу создать виртуальное аудиоустройство, которое получает аудиоданные с выхода по умолчанию (который является выходным IOAudioStream) и преобразует его во входной IOAudioStream.
Я прошел через большинство примеров, которые я мог найти, однако они реализуют только функцию для копирования выходного IOAudioStream на входной не более. Это означает, что он преобразует звук только во входной поток, если аудиоустройство выбрано в качестве выхода.
Это должно быть возможно, так как ScreenFlow позволяет записывать аудио компьютера, установив kext, который создает виртуальный драйвер.
Как я могу получить доступ к аудиоданным с выхода по умолчанию и отправить его в мой виртуальный драйвер?
2 ответов
взгляните на open-source WavTap, который является упрощенной вилкой с открытым исходным кодом SoundFlower драйвер виртуальной звуковой карты. Это.kext, который я считаю, делает то, что вы хотите.
для справки, вот как работают некоторые популярные коммерческие параметры с закрытым исходным кодом:
разбойник амебы Audio Hijack Pro
— Захватывает системное аудио с помощью кода, основанного на soundflower с открытым исходным кодом .kext
— Захватывает аудио приложения путем замены «патч» рамки для нормального CoreAudio.базы при запуске приложения
— Захватывает аудио уже запущенного приложения с помощью haxie «Application Enhancer» (APE) от Unsanity
эти функции заклеймлены как их функция» Instant On » (InstantOn.kext).
программное обеспечение Ambrosia Прослушка Студия
-Захватывает аудио системы и применение аудио через в-дом разработан .kext
Telestreamбыл это ScreenFlow выступает
— Захватывает системное аудио через собственной разработки .кекст. (Версия 2.x использует varaudio.kext; версия 3.x использует TelestreamAudio.kext)
Macsome это Аудио-Рекордер
— Неизвестный метод
группа Araelium по Screenflick
— Захватывает аудио системы используя Программу soundflower .kext
обновление #1
После прочтения комментариев автора, кажется, основная цель состоит в том, чтобы иметь возможность захватить системный звук без публикация виртуального аудио драйвера в качестве устройства (которое появится в списке системных настроек) и без изменение текущего устройства вывода по умолчанию (или, по крайней мере, внешний вид, который устройство изменило).
SoundFlower: добавляет звук устройство в список при установке
WavTap: добавляет Звуковое устройство в список после установки; автоматически выбирает устройство при запуске приложения WavTap; автоматически отменяет выбор устройства при завершении работы приложения и повторно выбирает предыдущее устройство
Audio Hijack Pro: добавляет Звуковое устройство только при выборе записи звука системного звука по умолчанию; удаляет Звуковое устройство, когда запись звука больше не выбрана, и повторно выбирает предыдущее устройство
Прослушку Студии: неизвестный
ScreenFlow выступает: захватывает системный звук без изменения текущего устройства вывода по умолчанию и без публикации виртуального аудио драйвера в качестве устройства
обновление #2
Цитата из Джеффа Мура, инженера CoreAudio Apple, в отношении таких приложений, как Прослушка и Audio Hijack Pro:
» в системе нет API, которые дадут вам выход любого конкретного приложения или вся смесь пойдет на оборудование. [Захват системного звука] не поддерживается системой, и эти люди должны были быть умными. Ничто не мешает вам делать то же самое, кроме желания испачкать руки. Дело в том, что аудиосистема Mac OS X была разработана в первую очередь для производительности. Это приводит нас к дизайну, где нелегко поддерживать функциональность, которую вы хотите, без наложения штрафов за производительность. Так, мы выбирали для более лучшего представления на стоимость невозможности предоставить эту функцию.»
короче говоря, вы вряд ли найдете примеры из Apple, которые это сделают, и вы вряд ли найдете открытый исходный код, который выполняет это либо, если кто-то не чувствует очень щедрый. Похоже, это слишком ценная информация.
после дополнительных исследований, вот некоторые теоретические методы, которые я придумал, которые могут позволить вам достичь своей цели:
подобно Prosoft Engineering в услышать продукт, вы можете создать плагин HAL (виртуальный драйвер пользовательского режима), а не .kext (виртуальный драйвер в режиме ядра). У Apple есть образец плагина HAL под названием «SampleHardwarePlugIn» и новая имеет один, а также. Однако, с его методом я не думаю, вы получите доступ к предварительно смешанной системе звукового потока. Вам нужно будет собрать все потоки из различных приложений (которые должны использовать CoreAudio для воспроизведения звука) и смешать их вместе для захвата звука псевдо-системы.
создайте виртуальное аудиоустройство, которое скрыто [1][2] от взаимодействия с пользователем. Когда пользователь хочет захватить звук по умолчанию, программно создать агрегатное устройство что включает в себя ваш скрытое виртуальное устройство и текущее Звуковое устройство по умолчанию. Временно установите это устройство aggregate в качестве вывода по умолчанию. Таким образом, вы можете как захватить звук по умолчанию, так и услышать его.
Примечание: если Mac OS X позволяет установить скрытое устройство в качестве устройства вывода по умолчанию, какие системные настройки будут отображаться в качестве выбранного устройства? Если вместо этого отображается выбранное устройство вторичного вывода, то у вас есть добавленный намек, что ничего не имеет измененный.
Источник
Download VirtualBox
Here you will find links to VirtualBox binaries and its source code.
VirtualBox binaries
By downloading, you agree to the terms and conditions of the respective license.
If you’re looking for the latest VirtualBox 6.0 packages, see VirtualBox 6.0 builds. Please also use version 6.0 if you need to run VMs with software virtualization, as this has been discontinued in 6.1. Version 6.0 will remain supported until July 2020.
If you’re looking for the latest VirtualBox 5.2 packages, see VirtualBox 5.2 builds. Please also use version 5.2 if you still need support for 32-bit hosts, as this has been discontinued in 6.0. Version 5.2 will remain supported until July 2020.
VirtualBox 6.1.26 platform packages
- Windows hosts
- OS X hosts
- Linux distributions
- Solaris hosts
- Solaris 11 IPS hosts
The binaries are released under the terms of the GPL version 2.
See the changelog for what has changed.
You might want to compare the checksums to verify the integrity of downloaded packages. The SHA256 checksums should be favored as the MD5 algorithm must be treated as insecure!
- SHA256 checksums, MD5 checksums
Note: After upgrading VirtualBox it is recommended to upgrade the guest additions as well.
VirtualBox 6.1.26 Oracle VM VirtualBox Extension Pack
- All supported platforms
Support for USB 2.0 and USB 3.0 devices, VirtualBox RDP, disk encryption, NVMe and PXE boot for Intel cards. See this chapter from the User Manual for an introduction to this Extension Pack. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL). Please install the same version extension pack as your installed version of VirtualBox.
VirtualBox 6.1.26 Software Developer Kit (SDK)
User Manual
The VirtualBox User Manual is included in the VirtualBox packages above. If, however, you would like to take a look at it without having to install the whole thing, you also access it here:
You may also like to take a look at our frequently asked questions list.
VirtualBox older builds
The binaries in this section for VirtualBox before version 4.0 are all released under the VirtualBox Personal Use and Evaluation License (PUEL). As of VirtualBox 4.0, the Extension Pack is released under the VirtualBox Personal Use and Evaluation License and the other packages are released under the terms of the GPL version 2. By downloading, you agree to the terms and conditions of the respective license.
VirtualBox Sources
The VirtualBox sources are available free of charge under the terms and conditions of the GNU General Public License, Version 2. By downloading from the below links, you agree to these terms and conditions.
- Browse the source code repository
This is the current development code, which is not necessarily stable.
- View the latest source code changes
- Download the VirtualBox OSE about logo in higher resolutions: 1024×768, 1600×1200.
- Checking out from our Subversion server. This is the current development code, which is not necessarily stable.
After getting the sources in one of the ways listed above, you should have a look at the build instructions.
Please also take a look at our licensing FAQ, in particular regarding the use of the name VirtualBox.
Pre-built VirtualBox VMs
There are some pre-built VMs designed for developers and the curious over on the Oracle Tech Network site.
Источник
Ticket #15611 (closed defect: fixed)
Last modified 5 years ago
No sound in OSX guests after 5.1
Reported by: | socratis | Owned by: | |
---|---|---|---|
Component: | audio | Version: | VirtualBox 5.1.0 |
Keywords: | Cc: | ||
Guest type: | OSX Server | Host type: | Mac OS X |
Description
All OSX clients show that there is no sound output with 5.1.0_RC1 and later (maybe even earlier in the 5.1b series, didn’t notice). In the Sound panel of the System Preferences, the following can be seen:
- 5.1.0 —> Output: Digital Out, Input: Line in, Internal microphone.
- 5.0.24 —> Output: Internal Speakers, Input: Line in, Internal microphone.
The audio settings for the VM are: CoreAudio, Intel HDA.
Host: MacBookPro 17″, early 2011. OSX 10.9.5.
Attachments
Change History
Changed 5 years ago by socratis
- attachmentVBox-5.0.24.log.zip
added
VBox.log for a session with a 10.9 guest. VBox 5.0.24.
Changed 5 years ago by socratis
- attachmentVBox-5.1.0.log.zip
added
VBox.log for a session with a 10.9 guest. VBox 5.1.0.
Changed 5 years ago by dinosaur0
- attachmentVBox.log
added
comment:1 Changed 5 years ago by dinosaur0
Same problem with HD audio here, but under Linux + OSS HD audio drivers. I just updated to v5.1, and on the systems running Linux + OSSv4 (the true OSS, not the few leftovers in the Linux kernel),VirtualBox reports a failure to initialize the host sound.
I get a dialog on the VM startup, saying:
Some HDA audio streams (PCM Input) could not be opened. Guest applications generating audio output or depending on audio input may hang. Make sure your host audio device is working properly. Check the logfile for error messages of the audio subsystem.
ID de l’erreur : HostAudioNotResponding
I also attached a file corresponding to the log for the above VM error, the relevant lines in that log being, apparently:
00:00:00.851952 OSS: Failed to retrieve buffer length: Opération non supportée (95)
00:00:00.851963 OSS: Closing stream failed: Mauvais descripteur de fichier
Which Translate to «unsupported operation» and «bad file descriptor».
comment:2 Changed 5 years ago by taidoka
Hi there,
I’ve got (almost) the same issue: Running XP within VBox v5.1.2 on an OSX 10.11.6 host.
When starting the VM I receive exactly the same error.
Audio settings are: Core Audio + ICH AC97
Output: Internal Speakers, Input: Line in, Internal microphone.
Audio used to work on v5.1.0 which was a fresh install on an iMac (Early 2009).
All the best, taidoka
comment:3 Changed 5 years ago by socratis
Actually you are both describing of a different bug introduced in 5.1.2. See ticket #15659.
comment:4 follow-up: ↓ 5 Changed 5 years ago by josefcarel
I have had the same problem with different linux distros (Opensuse, ubuntu 16.04) and Windows 10. Sound doesn’t work at all.
comment:5 in reply to: ↑ 4 Changed 5 years ago by socratis
I have had the same problem with different linux distros (Opensuse, ubuntu 16.04) and Windows 10. Sound doesn’t work at all.
I’m sorry, but this is a bug about OSX guests on OSX hosts. Not about not having sound, but about the guest showing different output options. My Linux guests are working just fine. Maybe there is a more fitting bug for your problem?
comment:6 Changed 5 years ago by pedelar
I have the same problem using VBox v5.1.3, r109189 on an 15″ MBP OS-X 10.11.6 (El Capitan) host with Windows 10Pro. Sound doesn’t work at all. No way to solve this issue after doing many changes in more than a week. What to do?.
comment:7 Changed 5 years ago by socratis
@pedelar
No, you do NOT have the same problem. You didn’t even read the problem. The only thing in common that you have is no sound. Read comment:3, right above yours. What you most probably have is a case of bug #15659. Maybe you don’t get a warning because you elected to not show it again.
comment:8 Changed 5 years ago by frank
The latest 5.1 test builds should re-enable the sound for Mac OS X guests.
comment:9 Changed 5 years ago by socratis
In theory it works, for a couple of builds now. I see «Internal Speakers» as the Output. However due to #15659 I can’t actually test it. But all the signs are correct, like the volume control being enabled for example.
comment:10 Changed 5 years ago by dark_sylinc
Ubuntu 16.04 host ANY guest PulseAudio device
I can confirm the problem is not present in VirtualBox-5.1.0-108711-Linux_amd64 but it is present in virtualbox-5.1_5.1.2-108956-Ubuntu-xenial_amd64
(haven’t tested the test build mentioned above. I’m not in a position to use the test build unfortunately)
comment:11 Changed 5 years ago by socratis
@dark_sylinc I’m sorry, but I don’t think that this is the bug you’re looking for. This is for OSX Guests on OSX Hosts (obviously) mis-identifying the Audio Output options, and it seems to be fixed. Maybe you should look more carefully about a bug that applies to your case?
comment:12 Changed 5 years ago by Mr.T
same problem here
Just to be clear this problem occurs in ALL types of guests (OSX, linux and windows) on a OSX host.
00:00:00.797734 Audio: Initializing Core Audio driver
00:00:00.822266 Audio: Initializing VRDE driver
00:00:00.822292 AC97: Reset
00:00:00.822484 CoreAudio: Using recording device: Built-in Input (UID: AppleHDAEngineInput:1B,0,1,0:4)
00:00:00.831145 CoreAudio: Using recording device: Built-in Input (UID: AppleHDAEngineInput:1B,0,1,0:4)
00:00:00.834218 AC97: WARNING: Unable to open PCM output for LUN #0!
00:00:00.834232 VM: Raising runtime error ‘HostAudioNotResponding’ (fFlags=0x0)
00:00:00.834246 Console: VM runtime error: fatal=false, errorID=HostAudioNotResponding message=»Some AC’97 audio streams (PCM Output) could not be opened. Guest applications generating audio output or depending on audio input may hang. Make sure your host audio device is working properly. Check the logfile for error messages of the audio subsystem»
comment:13 Changed 5 years ago by socratis
@Mr. T
This is not the problem described in this thread. You’re looking for another bug, #15659. Please post your comment there.
comment:14 Changed 5 years ago by socratis
This should be closed per the 5.1.4 release notes.
Источник