Add --no-audio support to VM spec (#460)

tart run supports --no-audio to disable host audio pass-through, but
there was no way to request it through a VM's spec - Headless, Nested,
and Suspendable all have a flag/field but audio didn't. Useful on
headless hosts with no audio hardware, where audio pass-through can
make guest CoreAudio depend on host audio services that don't exist.
This commit is contained in:
kylefuhrmanncalm
2026-09-01 09:17:45 -07:00
committed by GitHub
parent 2ce494a717
commit cc2c0fd034
5 changed files with 13 additions and 0 deletions
+4
View File
@@ -303,6 +303,10 @@ func (vm *VM) run(ctx context.Context, eventStreamer *client.EventStreamer) {
runArgs = append(runArgs, "--nested")
}
if vm.resource.NoAudio {
runArgs = append(runArgs, "--no-audio")
}
if vm.resource.Suspendable {
runArgs = append(runArgs, "--suspendable")
}