For some reason whenever I try to load VirtualBox using VBoxHeadless inside a remote SSH shell session, it crashes with the following error:

$ VBoxHeadless -s myvm
Oracle VM VirtualBox Headless Interface 5.1.2_OSE
(C) 2008-2016 Oracle Corporation
All rights reserved.

ALSA lib pcm_hw.c:1701:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1701:(_snd_pcm_hw_open) Invalid value for card
Segmentation fault (core dumped)

Is there a way to fix or at least work around this problem? I don't really need sound support.

  • There are only a few ways to fix a segfault, and the first two involve fixing the code yourself, and reporting the problem to the developers. Sadly, asking on SE is never on that list. – Satō Katsura Aug 3 '16 at 6:55

I don't exactly know why this error occurs, but as an interim solution, I managed to work around the problem by disabling sound altogether:

VBoxManage modifyvm myvm --audio none

where myvm is the name of the virtual machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.