Skip to content

vagrantfile: Improve audio support on non-windows (QEMU/VBOX)#32

Open
g0tmi1k wants to merge 1 commit into
r4ulcl:devfrom
g0tmi1k:audio
Open

vagrantfile: Improve audio support on non-windows (QEMU/VBOX)#32
g0tmi1k wants to merge 1 commit into
r4ulcl:devfrom
g0tmi1k:audio

Conversation

@g0tmi1k

@g0tmi1k g0tmi1k commented Jun 13, 2026

Copy link
Copy Markdown

Issue

#<Vagrant::Errors::VBoxManageError:"There was an error while executing VBoxManage, a CLI used by Vagrant\nfor controlling VirtualBox. The command and stderr is shown below.\n\nCommand: ["modifyvm", "a5fc80d1-b711-4d47-aacb-57784c1fd64b", "--audio", "dsound"]\n\nStderr: Warning: --audio is deprecated and will be removed soon. Use --audio-driver instead!\nVBoxManage: error: Invalid --audio argument 'dsound'\n">

Before

┌──(root㉿kali)-[~/.wifichallengelab-docker/vagrant]
└─# vagrant up --provider virtualbox virtualbox_vm
Bringing machine 'virtualbox_vm' up with 'virtualbox' provider...
==> virtualbox_vm: Importing base box 'generic/debian12'...
==> virtualbox_vm: Matching MAC address for NAT networking...
==> virtualbox_vm: Checking if box 'generic/debian12' version '4.3.12' is up to date...
==> virtualbox_vm: Setting the name of the VM: WiFiChallenge Lab v2.4.1
==> virtualbox_vm: Clearing any previously set network interfaces...
==> virtualbox_vm: Preparing network interfaces based on configuration...
    virtualbox_vm: Adapter 1: nat
==> virtualbox_vm: Forwarding ports...
    virtualbox_vm: 22 (guest) => 2222 (host) (adapter 1)
==> virtualbox_vm: Running 'pre-boot' VM customizations...
A customization command failed:

["modifyvm", :id, "--audio", "dsound"]

The following error was experienced:

#<Vagrant::Errors::VBoxManageError:"There was an error while executing `VBoxManage`, a CLI used by Vagrant\nfor controlling VirtualBox. The command and stderr is shown below.\n\nCommand: [\"modifyvm\", \"a5fc80d1-b711-4d47-aacb-57784c1fd64b\", \"--audio\", \"dsound\"]\n\nStderr: Warning: --audio is deprecated and will be removed soon. Use --audio-driver instead!\nVBoxManage: error: Invalid --audio argument 'dsound'\n">

Please fix this customization and try again.

┌──(root㉿kali)-[~/.wifichallengelab-docker/vagrant]
└─#

After

┌──(root㉿bdesktop)-[~/.wifichallengelab-docker/vagrant]
└─# vim vagrantfile

┌──(root㉿bdesktop)-[~/.wifichallengelab-docker/vagrant]
└─# vagrant up --provider virtualbox virtualbox_vm
Bringing machine 'virtualbox_vm' up with 'virtualbox' provider...
==> virtualbox_vm: Checking if box 'generic/debian12' version '4.3.12' is up to date...
==> virtualbox_vm: Clearing any previously set forwarded ports...
==> virtualbox_vm: Clearing any previously set network interfaces...
==> virtualbox_vm: Preparing network interfaces based on configuration...
    virtualbox_vm: Adapter 1: nat
==> virtualbox_vm: Forwarding ports...
    virtualbox_vm: 22 (guest) => 2222 (host) (adapter 1)
==> virtualbox_vm: Running 'pre-boot' VM customizations...
==> virtualbox_vm: Booting VM...
==> virtualbox_vm: Waiting for machine to boot. This may take a few minutes...
    virtualbox_vm: SSH address: 127.0.0.1:2222
    virtualbox_vm: SSH username: vagrant
    virtualbox_vm: SSH auth method: private key
    virtualbox_vm:
    virtualbox_vm: Vagrant insecure key detected. Vagrant will automatically replace
    virtualbox_vm: this with a newly generated keypair for better security.
    virtualbox_vm:
    virtualbox_vm: Inserting generated public key within guest...
    virtualbox_vm: Removing insecure key from the guest if it's present...
    virtualbox_vm: Key inserted! Disconnecting and reconnecting using new SSH key...
==> virtualbox_vm: Machine booted and ready!
==> virtualbox_vm: Setting hostname...
==> virtualbox_vm: Running provisioner: file...
    virtualbox_vm: /usr/share/virtualbox/VBoxGuestAdditions.iso => /tmp/VBoxGuestAdditions.iso
==> virtualbox_vm: Running provisioner: shell...
    virtualbox_vm: Running: inline script
[...]

@r4ulcl

r4ulcl commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Hello.

I'd like an option to set the audio correctly every time instead of just deleting it.

dsound is Windows specific, so it isn't the best option.
Maybe is a better options this?

vb.customize ['modifyvm', :id, '--audio-enabled', 'on']
vb.customize ['modifyvm', :id, '--audio-driver', 'default']
vb.customize ['modifyvm', :id, '--audio-controller', 'hda']
vb.customize ['modifyvm', :id, '--audio-out', 'on']
vb.customize ['modifyvm', :id, '--audio-in', 'on']

@r4ulcl r4ulcl changed the base branch from main to dev June 14, 2026 17:20
@g0tmi1k

g0tmi1k commented Jun 15, 2026

Copy link
Copy Markdown
Author

Hi @r4ulcl - thanks for getting back to me.

Hows it now? Just done a force push.

@g0tmi1k g0tmi1k changed the title vagrantfile: Vbox - Drop Audio vagrantfile: Improve audio support on non-windows (QEMU/VBOX) Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants