Page 1 of 2

Odd sound at start of VM.

PostPosted: 6. Sep 2017, 18:49
by isgdre
When I start a VM I get a lot of crackling, sputtering from the sound card. It seems to last for about 10-20 seconds and then is fine after that (for each VM independently). It's consistent. This is new to the Bata 2 (didn't try bata 1). But didn't happen in V5.1.22 or before.

The guests are Windows 10 pro, Windows 7 Pro, Ultimate, and Pro N.
The Host machine has a Asus xonar dsx audio device and here is the systeminfo on it.
Code: Select all   Expand viewCollapse view
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.15063 N/A Build 15063
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Original Install Date:     2017-07-05, 10:48:34 AM
System Boot Time:          2017-09-06, 10:59:37 AM
System Manufacturer:       Supermicro
System Model:              SYS-7048R-TR
System Type:               x64-based PC
Processor(s):              2 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 79 Stepping 1 GenuineIntel ~2201 Mhz
                           [02]: Intel64 Family 6 Model 79 Stepping 1 GenuineIntel ~2201 Mhz
BIOS Version:              American Megatrends Inc. 2.0, 2015-12-28
Windows Directory:         C:\WINDOWS
System Directory:          C:\WINDOWS\system32
Boot Device:               \Device\HarddiskVolume4
System Locale:             en-ca;English (Canada)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-06:00) Central Time (US & Canada)
Total Physical Memory:     65,428 MB
Available Physical Memory: 56,272 MB
Virtual Memory: Max Size:  75,156 MB
Virtual Memory: Available: 65,613 MB
Virtual Memory: In Use:    9,543 MB
Page File Location(s):     C:\pagefile.sys
Hotfix(s):                 3 Hotfix(s) Installed.
                           [01]: KB4022405
                           [02]: KB4034662
                           [03]: KB4022725
Network Card(s):           3 NIC(s) Installed.
                           [01]: VirtualBox Host-Only Ethernet Adapter
                                 Connection Name: VirtualBox Host-Only Network
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 192.168.56.1
                                 [02]: fe80::2cf4:f9c2:3b64:675b
                           [02]: Intel(R) I350 Gigabit Network Connection
                                 Connection Name: OnBoard LAN 1
                                 DHCP Enabled:    Yes
                                 DHCP Server:     10.0.0.75
                                 IP address(es)
                                 [01]: 10.0.0.116
                                 [02]: fe80::2d6b:92c2:2cc0:583d
                           [03]: Intel(R) I350 Gigabit Network Connection
                                 Connection Name: OnBoard LAN 2
                                 Status:          Media disconnected
Hyper-V Requirements:      VM Monitor Mode Extensions: Yes
                           Virtualization Enabled In Firmware: Yes
                           Second Level Address Translation: Yes
                           Data Execution Prevention Available: Yes

Re: Odd sound at start of VM.

PostPosted: 11. Sep 2017, 20:43
by isgdre
Had to go back to v5.1.22 do to VMs crashing

Re: Odd sound at start of VM.

PostPosted: 12. Sep 2017, 14:07
by pentagonik
Can you please supply the VBox.log when reproduced the issue? Without the log there's not much we can do ... Thanks.

Re: Odd sound at start of VM.

PostPosted: 12. Sep 2017, 14:28
by pentagonik
Also, can you please provide a dump of the crash you were experiencing? See https://www.virtualbox.org/wiki/Core_dump about how to do this.

Re: Odd sound at start of VM.

PostPosted: 14. Sep 2017, 01:42
by isgdre
Looking at the core dump link, it assumes you still have access to the Host computer. I did not, the whole thing hung.
Would there be anything useful in the VLog? *IF* the cpu halted then it will not get a chance to log anything. Is there a verbose mode for the vlog that would help?

Re: Odd sound at start of VM.

PostPosted: 14. Sep 2017, 11:26
by pentagonik
Hm ...if the host really hung that hard that this must be something more serious. So the host entirely has frozen and did not recover without doing a restart, right?

Does this also happen if you disable audio completely?

Re: Odd sound at start of VM.

PostPosted: 14. Sep 2017, 18:15
by isgdre
Had to hold the power button for 5 seconds to get it to power off.
I could try pulling one of the power cable and see if it beeps. If that would help diagnose just how dead it is. I'm not sure if that's just hardware doing that but I think the beep is coming from the mother board speaker.

By completely disabling sound I'm going to assume you mean just remove it from the VM definition and not removing sound card from the host. I'm ok to do this as a test but it's not a solution as the sound is required in the VM guests.

Re: Odd sound at start of VM.

PostPosted: 15. Sep 2017, 11:57
by pentagonik
Ok, just wanted to be sure, thanks.

Regarding disabling sound: Yes right, completely disabling audio via the VM settings. This would help pinpointing the issue further.

Re: Odd sound at start of VM.

PostPosted: 18. Sep 2017, 20:37
by isgdre
So, Things broke going from V5.1.22 -> V5.1.24. Still didn't work in V5.1.26. Tried Beta 2 and got different problems. First sound then crashing. Now V5.1.28 seems stable again. I'm thinking it was the sound changes that caused my grief and it looks like you also included that change in Beta 3. I'll try in a bit but have to get caught back up again.

Re: Odd sound at start of VM.

PostPosted: 23. Sep 2017, 18:59
by Simple07
I also have crackling sound on BETA 3 (118015), I viewed a Youtube video and 3 minutes into the video the sound became so distorted (like an analogue amplifier with low power/drained batteries) I had to stop it. No crashes, however..

The physical computer has I7 7500U and a Realtek Audio controller, the VM Audio controller is Intel HD Audio.

Re: Odd sound at start of VM.

PostPosted: 25. Sep 2017, 10:36
by pentagonik
@Simple07: Which guest / host combination is this? Which audio driver for the VM is being used? Please attach a VBox.log here. Thanks!

Also, please have a look at https://www.virtualbox.org/wiki/AudioDebug for helping us to further diagnose the problem.

Re: Odd sound at start of VM.

PostPosted: 27. Sep 2017, 12:13
by Simple07
Sorry for coming back late,

The Host is Windows 10 Build 15063.608 and the Guest is Windows 7 SP1 X64. It is also happening on the X86 and Win XP as well, and probably on other Windows 10 (the latest I have is 16299.0, released last night).

I have attached all log files for the Win 7 x64 machine (because I have removed 5.2.00 and reinstalled 5.1.28/29 then back again to test things).

Below is the RealTek Audio controller's hardware ID from the Host OS.

HDAUDIO\FUNC_01&VEN_8086&DEV_280B&SUBSYS_80860101&REV_1000

Re: Odd sound at start of VM.

PostPosted: 27. Sep 2017, 13:23
by pentagonik
Could you please have a look at the (updated) guide over at https://www.virtualbox.org/wiki/AudioDebug about how to enable audio debugging and how to diagnose this further? That would greatly help pinpointing the problem further. Thanks!

Re: Odd sound at start of VM.

PostPosted: 27. Sep 2017, 15:21
by Simple07
OK, I will probably do it tonight once I am home. I 'll keep you updated.

Update:
I performed the test as per the instructions on the link provided, the results are that the sound is fine on the recorded WAV files. I have attached the newer log files again and one small WAV file (size limitations).

I also noticed that the Video is ahead of the Audio by probably half a second during youtube play on the Virtual Machine.

By the way, how to disable this WAV dumping, I tried :
VBoxManage setextradata Win-7X64 "VBoxInternal2/Audio/Debug/Enabled" "false",
No luck, then:
VBoxManage setextradata Win-7X64 "VBoxInternal2/Audio/Debug/Disabled" "true"
But it still creates .WAV files and the ..\AppData\Local\Temp folder is filling up!!

OK, I edited "Win-7X64.vbox" and found and removed the above <ExtraData> statements, the system is no longer creating .WAV files.

Re: Odd sound at start of VM.

PostPosted: 28. Sep 2017, 08:53
by michaln
If you run just 'VBoxManage setextradata Win-7X64 VBoxInternal2/Audio/Debug/Disabled" the extradata key will be deleted. There's no need to edit the configuration files manually.