symbolic links on shared folder: Ubuntu Host and Guest

Discussions about using Linux guests in VirtualBox.
chnaideur
Posts: 1
Joined: 1. May 2012, 02:01

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by chnaideur »

Ah, I had hoped 4.1.14 would solve this issue, but no luck on my side
vestigal
Posts: 2
Joined: 1. May 2012, 01:26

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by vestigal »

My problem ended up being an issue on my machine, not VirtualBox.
tpearsall
Posts: 2
Joined: 11. May 2012, 15:34

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by tpearsall »

Jumping on the Me Too bandwagon with 4.1.8 and Ubuntu guest.
studgeek
Posts: 1
Joined: 16. May 2012, 00:42

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by studgeek »

The ongoing ticket on links seems to be ticket 818 (I am new forum user so I can't post the actual path for the ticket), but there is no recent traffic on it about the regression in 4.1.8.

FYI, I am seeing the same problem in 4.1.4 in Ubuntu 12.04 guest on Windows XP host.

d
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by Perryg »

siukeung
Posts: 1
Joined: 3. Aug 2012, 10:01

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by siukeung »

I got a solution in Win7.
Go to Virtualbox.exe to set properties, select "Run this program as an administrator".
now, it can create symbolic links.
scott.deagan
Posts: 5
Joined: 29. Jun 2011, 11:02
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu Server

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by scott.deagan »

@siukeung: I tried running VirtualBox.exe as administrator, but this does not solve the problem for me on Windows 7 host with Ubuntu Server 13.04 guest (VirtualBox version 4.2.12).
tcox13
Posts: 2
Joined: 28. Oct 2013, 17:29

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by tcox13 »

Run as Administrator did not work for me. As a matter of fact, VirtualBox failed to start at all, with the error message "Failed to create the VirtualBox COM object".

I tracked the "Read-only file system" error to the fact that I was trying to copy files that were Linux links. Since Windows does not support Linux style links, the copy was not allowed. But the "Read-only file system" error message was misleading. Tracking the link to the file I REALLY wanted on the Ubuntu virtual file system, and copying THAT file to the target Windows folder worked without errors.
Vacilando
Posts: 2
Joined: 1. Jun 2014, 21:43

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by Vacilando »

Same problem on Win8 host and Ubuntu 12.04 guest :-(
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by Perryg »

Everyone wants to complain but no one reads the link.
peci1
Posts: 2
Joined: 5. Jun 2014, 16:05
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu

Re: symbolic links on shared folder: Ubuntu Host and Guest

Post by peci1 »

If your user is of the Administrator type (rather than a Standard account), there's no way to run VB with symlinks working without the UAC prompt.

If you have a Standard user account (or if you are willing to switch your account to Standard and create a separate Admin account), the solution exists. You will, however, need admin privileges to accomplish several of the steps (not necesarrily for your user account).
  • 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. You can check the success by running in console:

    Code: Select all

     whoami /priv
    . If you see the privilege SeCreateSymbolicLinkPrivilege enabled, you've done well.
  • Make sure your user has proper access to the shared folder on host system.
  • Execute

    Code: Select all

    VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1
    in a console from the C:\Program Files\VirtualBox folder. Don't forget to substitute VM_NAME with the name of your VM and SHARE_NAME with the name of the shared folder (as it appears in the VM settings).
  • You're done.
If you happen to own one of the "lesser" version of windows (e.g. 7 Home), you don't have the "secpol.msc" utility. Search StackOverflow for "How do I grant SeCreateSymbolicLink on Windows Vista Home edition" to get help.
Post Reply