hardlink creation in shared folder is failing

Discussions about using Linux guests in VirtualBox.

hardlink creation in shared folder is failing

Postby ejannett » 31. Jan 2019, 14:39

Hi,

running
VirtualBox 6.0.4 r128413 on Mac (Mojave:10.14.2)
one VM running Oracle Linux 7.6 uek5

I've use the "VBoxManage setextradata VM_NAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME 1"
trick to be able to make symlinks
I've added one local directory ad shared folder to the VM

It seem still impossible to create hard link 'Operation not permitted' error is raised

#touch source
#ln source target
ln: failed to create hard link ‘target’ => ‘source’: Operation not permitted



Any hints would be appreciated
regards
EJ
ejannett
 
Posts: 2
Joined: 31. Jan 2019, 14:29

Re: hardlink creation in shared folder is failing

Postby andyp73 » 31. Jan 2019, 15:20

The shared folders provide a minimal file system to allow exchange of files between the host and guest. With the VBoxManage command you have used you can now create symbolic links (ln -s) but hard links (ln) are not supported.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
andyp73
Volunteer
 
Posts: 1642
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: hardlink creation in shared folder is failing

Postby ejannett » 31. Jan 2019, 16:17

Hi,

Thank you for quick reply.
That's too bad . I am (trying to) using the VirtualBox VM as Linux Dev env on top of my Mac system.
What's I am particular blocked by for now is RPM creation as rpmbuild use hardlink.

Thanks anyway
regards
EJ
ejannett
 
Posts: 2
Joined: 31. Jan 2019, 14:29

Re: hardlink creation in shared folder is failing

Postby mpack » 31. Jan 2019, 16:41

If you need extra features then you need to create a proper network share, not a GAs shared folder.
mpack
Site Moderator
 
Posts: 30713
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 17 guests