VirtualBox

Opened 9 years ago

Closed 7 years ago

#14434 closed defect (fixed)

VirtualBox on Windows10 creates symlinks as backslashes => Fixed in SVN

Reported by: kouik Owned by:
Component: other Version: VirtualBox 5.0.0
Keywords: vbox, links, symlinks, ubuntu Cc:
Guest type: Windows Host type: Linux

Description

Hi,

Running Windows 10 Home edition, vagrant 1.7.4, vbox 5.0.1, and an Ubuntu14.04 64bits box.

Just noticed the following behavior : When logged in on the VM as vagrant user, i cannot create a symlink, it will create a symlink using backslashes instead of forward slashes.

See commands below.

vagrant@vvv:/srv/www/wordpress-default/wp-content$ ln -s /srv/wpca-plugins plugins
vagrant@vvv:/srv/www/wordpress-default/wp-content$ ls -al                       total 13
drwxrwxr-x 1 www-data vagrant 4096 Aug 13 12:23 .
drwxrwxr-x 1 www-data vagrant 4096 Aug 13 12:20 ..
-rwxrwxr-- 1 www-data vagrant   28 Aug 13 12:03 index.php
drwxrwxr-x 1 www-data vagrant 4096 Aug 13 12:04 languages
lrwxrwxr-- 1 www-data vagrant    0 Aug 13 12:23 plugins -> \srv\wpca-plugins
lrwxrwxr-- 1 www-data vagrant    0 Aug 13 12:07 themes -> \srv\wpca-themes
drwxrwxr-x 1 www-data vagrant    0 Aug 13 12:04 upgrade
vagrant@vvv:/srv/www/wordpress-default/wp-content$ cd plugins
-bash: cd: plugins: No such file or directory
vagrant@vvv:/srv/www/wordpress-default/wp-content$ cd \srv\wpca-plugins
-bash: cd: srvwpca-plugins: No such file or directory
vagrant@vvv:/srv/www/wordpress-default/wp-content$ cd /srv/wpca-plugins
vagrant@vvv:/srv/wpca-plugins$ ls -al
total 136

Attachments (1)

VBox.log (110.6 KB ) - added by AndyBren 9 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by sunlover, 9 years ago

Please get a debug log:

  • start the VM
  • execute on the host

VBoxManage debugvm VMNAME log --release "+shared_folders.e.l2,-shared_folders.restrict"

  • create a symlink in the guest

ln -s /srv/vboxtest vboxtest-link

  • shutdown the VM and attach VBox.log file to the ticket

comment:2 by Frank Mehnert, 9 years ago

Actually the latest Windows test build (>= 102224) which can be found here contains a fix. No update of the Guest Additions is required. Please confirm!

comment:3 by AndyBren, 9 years ago

I'm using the latest production version of Windows 10 Pro (fully updated) with VirtualBox 5.0.2. My VM is Ubuntu 14.04.3 64-bit server being launched using Vagrant.

The same configuration (i.e. same type of VM instantiated using my Vagrant+Ansible scripts) worked fine on Windows 8.1.

Will attach log as per instructions (refer to lines 1033 and 1045 for two failed ln -s attempts).

by AndyBren, 9 years ago

Attachment: VBox.log added

comment:4 by AndyBren, 9 years ago

I've just tested the latest test build 5.0.3-102322 and this is now RESOLVED for me.

comment:5 by Frank Mehnert, 9 years ago

Thank you for the confirmation!

comment:6 by Frank Mehnert, 9 years ago

Summary: VirtualBox on Windows10 creates symlinks as backslashesVirtualBox on Windows10 creates symlinks as backslashes => Fixed in SVN

comment:7 by gggeek, 9 years ago

I've just tested the latest test build 5.0.3-102322 and this is not fixed for me :-(

Win 8.1 64 host - vagrant 1.7.4 (but I tested starting the VM directly from VBox as well) - ubuntu trusty 64 guest

Running "VBoxManage getextradata VMNAME enumerate", I see that the 2 shares (pointing to the same folder on the host) do have set SharedFoldersEnableSymlinksCreate to 1.

Running VBox 5.0.2, I got bad symlinks created in the guest (paths were using backslash as separator).

Running 5.0.3-102322, I get:

ln: failed to create symbolic link ‘something’: Protocol error

comment:8 by Frank Mehnert, 9 years ago

gggeek, please attach a VBox.log file from such a VM session to this ticket.

comment:9 by sunlover, 9 years ago

gggeek, which command produced the error?

comment:10 by Frank Mehnert, 9 years ago

Fix is part of VBox 5.0.4.

comment:11 by sunlover, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use