From ae8af082b9c394e81f5d2c3c1956e4ec76fb38dc Mon Sep 17 00:00:00 2001 From: Otto Fowler Date: Tue, 20 Nov 2018 16:19:38 -0500 Subject: [PATCH] disable audio in vm so it does not grab the mic and trigger security software like microsnitch --- metron-deployment/development/centos6/Vagrantfile | 2 ++ metron-deployment/development/fastcapa/centos-7.1/Vagrantfile | 2 ++ metron-deployment/development/fastcapa/centos-7.4/Vagrantfile | 2 ++ metron-deployment/development/ubuntu14/Vagrantfile | 2 ++ 4 files changed, 8 insertions(+) diff --git a/metron-deployment/development/centos6/Vagrantfile b/metron-deployment/development/centos6/Vagrantfile index 05823a2194..50571b4d27 100644 --- a/metron-deployment/development/centos6/Vagrantfile +++ b/metron-deployment/development/centos6/Vagrantfile @@ -88,6 +88,8 @@ Vagrant.configure(2) do |config| if host.has_key?(:promisc) vb.customize ["modifyvm", :id, "--nicpromisc#{host[:promisc]}", "allow-all"] end + # disable audio, so that the vm doesn't capture the sound / mic + vb.customize ["modifyvm", :id, "--audio", "none"] end end end diff --git a/metron-deployment/development/fastcapa/centos-7.1/Vagrantfile b/metron-deployment/development/fastcapa/centos-7.1/Vagrantfile index 179ca34a8c..39c8d328c6 100644 --- a/metron-deployment/development/fastcapa/centos-7.1/Vagrantfile +++ b/metron-deployment/development/fastcapa/centos-7.1/Vagrantfile @@ -58,6 +58,8 @@ Vagrant.configure("2") do |config| # network adapter settings; [Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio] vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] vb.customize ["modifyvm", :id, "--nictype2","82545EM"] + # disable audio, so that the vm doesn't capture the sound / mic + vb.customize ["modifyvm", :id, "--audio", "none"] end # provision host diff --git a/metron-deployment/development/fastcapa/centos-7.4/Vagrantfile b/metron-deployment/development/fastcapa/centos-7.4/Vagrantfile index c62a0f1309..3e55d09d69 100644 --- a/metron-deployment/development/fastcapa/centos-7.4/Vagrantfile +++ b/metron-deployment/development/fastcapa/centos-7.4/Vagrantfile @@ -58,6 +58,8 @@ Vagrant.configure("2") do |config| # network adapter settings; [Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio] vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"] vb.customize ["modifyvm", :id, "--nictype2","82545EM"] + # disable audio, so that the vm doesn't capture the sound / mic + vb.customize ["modifyvm", :id, "--audio", "none"] end # provision host diff --git a/metron-deployment/development/ubuntu14/Vagrantfile b/metron-deployment/development/ubuntu14/Vagrantfile index facc3cc852..ab44491cd6 100644 --- a/metron-deployment/development/ubuntu14/Vagrantfile +++ b/metron-deployment/development/ubuntu14/Vagrantfile @@ -83,6 +83,8 @@ Vagrant.configure(2) do |config| node.vm.provider "virtualbox" do |vb| vb.memory = host[:memory] vb.cpus = host[:cpus] + # disable audio, so that the vm doesn't capture the sound / mic + vb.customize ["modifyvm", :id, "--audio", "none"] end end end