From 7bd9beb8125a3a2b1c4ee137b3fb22ae87f5726b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jun 2018 09:31:19 +0200 Subject: Set QEMU_AUDIO_DRV to 'none' to disable audio output --- bbot/agent/machine.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bbot/agent') diff --git a/bbot/agent/machine.cxx b/bbot/agent/machine.cxx index a8933bb..a1fe9bb 100644 --- a/bbot/agent/machine.cxx +++ b/bbot/agent/machine.cxx @@ -296,13 +296,14 @@ namespace bbot // // 1. echo system_powerdown | socat - UNIX-CONNECT:.../monitor // + const char* env[] = {"QEMU_AUDIO_DRV=none", // Disable audio output. + nullptr}; proc = run_io_start ( trace, fdnull (), 2, 2, - md, // Run from the machine's directory. - kvm, + process_env (kvm, md, env), // Run from the machine's directory. "-boot", "c", // Boot from disk. "-no-reboot", // Exit on VM reboot. "-m", to_string (ram / 1024) + "M", -- cgit v1.1