Page 1 of 1
Audio for headless Windows 7 VM
Posted: 18. Jun 2014, 23:14
by BartZorn
Hello,
I have a Windows 7 VM for which sound works fine. However, when I start this VM headless, sound seems to be disabled. Is there a way to enable sound?
Tech info: Host is Windows 2008 R2, VirtualBox 4.3.12. Guest is Windows 7 x64 Professional. Both host and guest have all updates installed.
Any ideas?
TIA,
Bart Zorn
Re: Audio for headless Windows 7 VM
Posted: 19. Jun 2014, 11:42
by BartZorn
Further experimenting has shown that it depends on how I start the headless machine.
When I start the machine from the GUI, with the Shift key pressed, Audio works. When I start the machine with a script using vboxmanage, it also works.
But when I start that same script using the Task Scheduler, the machine starts up, but Audio does not work.
So I have to assume that this is not a VirtualBox problem, but a Windows Task Scheduler problem. However, somebody hopefully has some suggestions?
TIA,
Bart
Re: Audio for headless Windows 7 VM
Posted: 19. Jun 2014, 17:05
by noteirak
Do you run your schedule task under a regular user and have you enabled the "interact with desktop"?
Re: Audio for headless Windows 7 VM
Posted: 29. Jun 2014, 12:32
by BartZorn
Sorry I did not reply earlier.
I run the task as an ordinary user, which is a member of the Administrators group.
I could not find where to specify if the task is allowed to interact with the desktop.
Regards,
Bart
Re: Audio for headless Windows 7 VM
Posted: 29. Jun 2014, 19:51
by noteirak
I'm confusing with Services for the desktop interaction. If you can't allow that, I am not sure you can do what you want. Maybe others will have clues about this.
Re: Audio for headless Windows 7 VM
Posted: 30. Jun 2014, 09:08
by BartZorn
Thanks for your reply.
Although I don't understand why, I have a feeling that there is a link between the desktop and the availability of sound, at least in Windows 2008 R2.
I will explore further and I hope someone else is also interested!
Bart
Re: Audio for headless Windows 7 VM
Posted: 30. Jun 2014, 11:12
by noteirak
There is definitely a link. that's why I mention the "interact with desktop" part.