VirtualBox

Opened 6 years ago

Last modified 5 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)

VBox_Setup_lock.zip (54.0 KB ) - added by boxer01 6 years ago.
logs with hardening issue

Download all attachments as: .zip

Change History (4)

by boxer01, 6 years ago

Attachment: VBox_Setup_lock.zip added

logs with hardening issue

comment:1 by Socratis, 6 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 boxer01, 6 years ago

Let me explain this, step by step, with some probably unnecessary comments.

  1. 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.
  1. 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.
  1. 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.
  1. After this you should try to eject the USB drive, but this wouldn’t be possible, because it is locked.
  1. 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.
  1. 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 boxer01, 5 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.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use