I've enabled Drag & Drop in Virtualbox, and I tried dragging a small file from host to guest (both are win7).

I get this dialog:

enter image description here

And it stays at 0% forever.

How can I fix this and make Drag and Drop work?


Ok, after restarting the VM, and also killing and restarting Explorer, drag&drop was working again. I have no idea why it stopped working or why the restart helped.


Make a new file with a *.ps1 extension, and save the following PowerShell script to that file. Then when this issue occurs, click cancel(the red X), then run the script, and try the copy again. Script obtained from this answer:

echo "Trying to restart VBoxClient"

$vbox_process = Get-Process VBoxTray
Write-verbose $vbox_process
$procID = $vbox_process.id

if ($procID  -gt 0)
    $cmdline = (Get-WMIObject Win32_Process -Filter "Handle=$procID").CommandLine
    Write-Verbose $cmdline

    Write-Verbose "Stopping VBoxTray"
    Write-Verbose "VBoxTray stopped"

    Write-Verbose "Starting VBoxTray"
    Start-Process -FilePath $cmdline.Split(' ')[0]
    echo "VBoxTray Restarted. All Done"
} else {    
    Write-Warning 'Could not find existing vboxTray process. Launching direct?'
    Start-Process -FilePath "C:\Windows\System32\VBoxTray.exe"     
  • Also when this happens I've noticed that the handle on the file trying to be dropped isn't properly closed, so you might have to using something like process explorer to close the handle to that file. – gattsbr Mar 25 at 16:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.