#VirtualBox Linux GUEST symlinks under Windows 7 HOST (for an administrator user):
1. Create hidden user:
net user {username} {password}/add
net local group Users {username} /add
- Go to C:\Users
- Open {CurrentUser} folder properties -> Security Tab
- Add {username} with the full control
- Run
cmd
as Administrator,cd %windir%/system32/config/systemprofile
- Run
mklink /j .VirtualBox C:\Users\{currentUser}\.VirtualBox
- Run
cmd
,cd %VBOX_MSI_INSTALL_PATH%
- Run
VBoxManage sharedfolder add {VM_NAME} --name {SHARE_NAME} --hostpath "\\?\C:\SOME_PATH\{SHARE_NAME}" --automount
C:\Program Files\Oracle\VirtualBox>
- Run
cmd
,cd %VBOX_MSI_INSTALL_PATH%
- Run
VBoxManage setextradata {VM_NAME} VBoxInternal2/SharedFoldersEnableSymlinksCreate/{SHARE_NAME} 1
- Run the Local Security Policy (Win+R, type "secpol.msc", confirm UAC). Then navigate to "Local Policies->User Rights Assignment".
- Find the permission called "Create symbolic links" and double-click it. Add your user to the list of objects having this permission. Or you can add the "Users" group. Log off and log on.
runas /user:{username} "%VBOX_MSI_INSTALL_PATH%\VirtualBox.exe --startvm {VM_NAME}
- type
{password}