﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
16822,Default Machine Folder link removed,!bruno,,"hello


I encountered an unexpected behavior during VM creation/removal through the VirtualBox Manager GUI - done some testing and found the manager sometimes remove the Default Machine Folder configured in File / Preferences / General

''1st case'' - there is no existing VM in the GUI - create a new VM then abort during creation (I usually abort at the memory setting) => the VM folder is gone as is the Default Machine Folder - it's ok, cleaning is always a good idea as there is no existing or created VM in the folder, but I think this is linked with my problem below : the 2nd case

''2nd case'' - the Default Machine Folder is a junction (folder hard link in Windows world) - in that case, even if there is other existing and possibly running VM, removing one VM results in the removed VM folder removal (expected) and Default Machine Folder link removal (unexpected) - no harm as only the link is removed, the true folder and all VM folders inside are still there, its only annoying as I need to recreate the link each time a VM is removed or VM creation is aborted


'''how to reproduce the problem'''[[BR]]
1) create a junction : in command line ""mklink /j C:\Users\(your-username)\Documents\VM D:\{test-folder}""[[BR]]
2) set the Default Machine Folder to C:\Users\(your-username)\Documents\VM[[BR]]
3) create VM test-1[[BR]]
4) check C:\Users\(your-username)\Documents\VM\test-1 exists as well as D:\{test-folder}\test-1[[BR]]
5) start creating VM test-2[[BR]]
6) abort test-2 VM creation => C:\Users\(your-username)\Documents\VM link should be gone


my current configuration involve iSCSI disks mounted as folders, reason for the links - hope I made the reproduce steps as simple and straight as possible

feel free to ask if you need more tests or information


regards[[BR]]
Bruno",defect,new,GUI,VirtualBox 5.1.22,,,,all,Windows
