hardlink creation in shared folder is failing

Discussions about using Linux guests in VirtualBox.
Post Reply
ejannett
Posts: 2
Joined: 31. Jan 2019, 14:29

hardlink creation in shared folder is failing

Post by ejannett »

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
andyp73
Volunteer
Posts: 1631
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

Post by andyp73 »

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.
ejannett
Posts: 2
Joined: 31. Jan 2019, 14:29

Re: hardlink creation in shared folder is failing

Post by ejannett »

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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: hardlink creation in shared folder is failing

Post by mpack »

If you need extra features then you need to create a proper network share, not a GAs shared folder.
Post Reply