New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable audio on the VM #60

Open
wants to merge 1 commit into
base: develop
from

Conversation

Projects
None yet
4 participants
@byrond
Copy link
Contributor

byrond commented Dec 12, 2018

Description

This adds flags to the call to modifyvm in the Vagrantfile to disable audio in the VM upon boot. If audio is enabled for a running VM, high CPU utilization will occur after waking the host from sleep.

(See https://forums.virtualbox.org/viewtopic.php?f=8&t=90027)

Testing instructions

  • Halt all running VMs on the host, except one.
  • Cause the host to sleep.
  • Wait about a minute.
  • Wake the host and notice high CPU utilization by the VBoxHeadless process in Activity Monitor.
  • Add the changes in the PR to the Vagrant file of the running VM.
  • vagrant halt && vagrant up ("reload" may not allow the audio to be disabled on the running VM; I haven't tested that)
  • Cause the host to sleep.
  • Wait about a minute.
  • Wake the host and notice there is no longer high CPU utilization.

@byrond byrond self-assigned this Dec 12, 2018

@byrond byrond requested a review from becw Dec 12, 2018

@becw

This comment has been minimized.

Copy link
Member

becw commented Dec 12, 2018

This affects Virtualbox version 5.2.20 and up, right now.

@froboy

This comment has been minimized.

Copy link
Contributor

froboy commented Dec 13, 2018

I just tested this by manually copying the line into an existing VM and it solved my problem. I was having sporadic issues with by music playing on bluetooth headphones getting interrupted when I spun up a machine! Apart from... playing music on bluetooth headphones while running vagrant up, you can confirm this setting works by going into VirtualBox, checking the settings of your machine, and observing "Enable Audio" is off.

federated-search-demo_federated-search-demo_1544739981405_67990_-_audio

@geerlingguy

This comment has been minimized.

Copy link

geerlingguy commented Dec 28, 2018

Just found out about this PR through a comment on an HN thread for a blog post I wrote earlier today. I would like to also incorporate this change into Drupal VM — @byrond would you be willing to file a PR to add it to Drupal VM's Vagrantfile so I can credit you with the fix?

@geerlingguy

This comment has been minimized.

Copy link

geerlingguy commented Dec 28, 2018

Can confirm this fixes the weird audio issues I was experiencing.

@byrond

This comment has been minimized.

Copy link
Contributor

byrond commented Jan 2, 2019

@geerlingguy, sorry for the delay in responding. We are just coming back from our holiday break. I see this was already fixed in Drupal VM, but thanks for offering the opportunity for credit. No worries though! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment