onlyfang / VBoxVmService

Windows Service to run VirtualBox VMs automatically
328 stars 47 forks source link

VirtualBox reports VERR_ACCESS_DENIED on disk image #60

Open HunterZ opened 3 years ago

HunterZ commented 3 years ago

A VM that I'm able to launch just fine via the GUI won't launch via VBoxVmService. I get the following in the VirtualBox log:

00:09:00.785820          Launched VM: 58197648 pid: 2808 (0xaf8) frontend: headless name: Synchronet BBS
00:09:03.386216          ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={ad47ad09-787b-44ab-b343-a082a3f2dfb1} aComponent={MediumWrap} aText={Could not open the medium '\\quad\VMs\VirtualBox\sbbs\sbbs.vdi'.
00:09:03.386224          VD: error VERR_ACCESS_DENIED opening image file '\\quad\VMs\VirtualBox\sbbs\sbbs.vdi' (VERR_ACCESS_DENIED)}, preserve=true  aResultDetail=0
00:09:03.386989          Saving settings file "C:\Users\Ben\VirtualBox VMs\sbbs\sbbs.vbox" with version "1.14-windows"
onlyfang commented 3 years ago

You are using some shared folder on another server. I suspect this might be related to access issue. The share might not be ready when the service starts or not accessible by the user service runs as.