Opened 7 years ago
Last modified 6 years ago
#17455 new defect
Host USB is locked after shared folders were added
Reported by: | boxer01 | Owned by: | |
---|---|---|---|
Component: | shared folders | Version: | VirtualBox 5.2.4 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Windows |
Description
I have a USB Stick with Windows 10 Installation files on it. If this stick is attached and I added some folders in the VM, I simply can’t eject it in the host Windows, because it is constantly locked. Even if I add some folders not on the USB drive. After I used a Process Explorer I could see, that there is a handle to the setup.exe on the USB. I attached the logs, because there one can see, that this is hardening issue. The only way to solve it right now is either kill the handle or close VM. This started way back, as hardening was added.
Attachments (1)
Change History (4)
by , 7 years ago
Attachment: | VBox_Setup_lock.zip added |
---|
comment:1 by , 7 years ago
I'm not quite sure I understand the process that you followed to get to the error. Can you repeat a step-by-step guide so I can see if I can replicate your error?
comment:2 by , 7 years ago
Let me explain this, step by step, with some probably unnecessary comments.
- You need some media, I use a USB Drive, with Windows 10 installation files on it. Probably you don’t need all files, the “setup.exe” and maybe “autorun.inf” in the root of the drive would be enough. Right now it is a 1709 version, but I think this also would happen with 1703 and 1607 version.
- Now we have some VM started, in my case Windows host with Windows guest, but I don't think that the guest system is important here.
- Let us insert the drive into the host machine and let the host Windows recognize it. In my case it’s drive D. Now add some share folders to the VM. I did it with a folder from my E drive, which is a second partition of my SSD.
- After this you should try to eject the USB drive, but this wouldn’t be possible, because it is locked.
- Now you can shutdown the VM, so the drive would be released. Or you can use Process Explorer to find the handle to some file on the USB drive. It is "setup.exe“ of the Windows installation. After this you can kill the handle and remove the drive.
- If you take a look at the normal and hardening logs, you will see some hardening error during the call of the folder selection dialog. Immediately is “setup.exe” locked, even before some folder was selected and OK was pressed. So I think this is some error in resource handling. This is an explanation why there are some unreleased handles after some hardening errors.
comment:3 by , 6 years ago
The both systems (guest and host) are Windows 10 1809 now. I tested 5.2.24 and 6.0.2 versions of the Virtual Box itself. The issue is still here as it was a year ago. If the logs from current version are needed I can do it, but I think that they would look just the same in this aspect.
logs with hardening issue