LoginSignup
0
0

More than 1 year has passed since last update.

VirtualBox 7.0.0 r153978(Mac版)でVMが起動時にクラッシュする問題→7.0.2で修正済

Last updated at Posted at 2022-10-16

更新追記

  • 7.0.2 r154219 リリース(2022/10/20)で修正されました
    • macOS hosts: Fixed VM crash when the guest tries to access a microphone or webcam

問題の現象

  • VirtualBox 7.0.0 r153978(Mac版)で任意のVMを作って起動するとクラッシュする
    Screenshot 2022-10-16 20.59.47.png
  • ゲストOSについてCentOS Stream 9とFedora 36でしか発生を確認していないが、理屈的にはゲストOSの選択は無関係(後述)
  • クラッシュするタイミングはゲストOS依存(おそらく最初にゲストOSがホスト側のオーディオI/Fにアクセスしようとするタイミング)
    • CentOS Stream 9 : インストール完了後の初回起動中
    • Fedora 36 : Anacondaでのインストール中

原因と思われるもの

クラッシュ時はVBox.logが必ず以下で終わる

00:00:32.137436 CoreAudio: macOS 10.14+ detected, checking audio input permissions

Console.appのクラッシュログが以下のようになっている

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               VirtualBoxVM [20967]
Path:                  /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM
Identifier:            org.virtualbox.app.VirtualBoxVM
Version:               7.0.0 (7.0.0)
Code Type:             X86-64 (Native)
Parent Process:        VBoxSVC [17810]
Responsible:           VirtualBox [17806]
User ID:               501

Date/Time:             2022-10-16 20:58:51.1131 +0900
OS Version:            macOS 12.6 (21G115)
Report Version:        12
Anonymous UUID:        4F31086D-9277-1D60-523F-BE60782324AB

Sleep/Wake UUID:       B2D0E9DE-DC11-42D3-B315-58990C6A0546

Time Awake Since Boot: 270000 seconds
Time Since Wake:       1987 seconds

System Integrity Protection: enabled

Crashed Thread:        33  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace TCC, Code 0 
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an com.apple.security.device.audio-input key with a string value explaining to the user how the app uses this data.
(以下略)

真因

  • VirtualBoxVM.app内のInfo.plistがCoreAudioへのアクセス権限を設定していないので、アップデート待ち

Info.plistに勝手に定義を追加すれば解消されるかもしれないが、GateKeeperにコード改変検知されそうなので試していない

暫定対処

  • どうしてもゲストOSから音声出力をしたいとかでなければ、当該VMの設定で「オーディオを有効化」をオフにする
    image.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0