设置Virtualbox 4.3以在来宾上使用符号链接的正确方法(用于流星) [英] Correct way to setup Virtualbox 4.3 to use symlinks on guest (for meteor)

查看:91
本文介绍了设置Virtualbox 4.3以在来宾上使用符号链接的正确方法(用于流星)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows 8并安装了Virtualbox,因此可以访问Linux(Ubuntu)系统.

I use Windows 8 and installed Virtualbox so i can access to a Linux (Ubuntu) System.

我仍然要做最多的工作-因此,现在我有一个可以使用Ubuntu 14.04 LTS的Virtualbox.

The most i still did to do this - so at this moment i have a working Virtualbox with Ubuntu 14.04 LTS.

就我而言,我需要带有Linux的Virtualbox来使用流星.

In my case i need this Virtualbox with Linux for meteor.

问题:

流星使用nodejs,所以我需要具有符号链接访问权限(我认为它的符号链接-我读了一些关于它的链接)

meteor uses nodejs and so i need to have symlinks access (i think its symlinks - i read a few about it)

参考:他描述了我现在遇到的相同问题:

He describes the same problem i have now:

Error: EROFS, read-only file system '/media/sf_Shared/Dropbox/dev_uhurajr/chat/.meteor/local/.build320446.build/programs/server/npm/logging/main/node_modules'

因此,我尝试通过以下方式在主机(Windows)上启用符号链接:

So i tried to enabled Symlinks on my host (windows) this way:

VBoxManage setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1

参考: http://www.ahtik .com/blog/fixing-your-virtualbox-shared-folder-symlink-error/

这很好!当我检查我的VM的额外数据时,字段SharedFoldersEnableSymlinksCreate在1

This works fine! When i check the extradata for my VM the field SharedFoldersEnableSymlinksCreate is on 1

我为2个文件夹设置了该值. Windows上的共享文件夹,以及我的Linux VM上的共享文件夹的名称.

I set this value for 2 folders. The shared folder on Windows and also the name of the shared folder on my Linux VM.

但是..同样的问题.每当流星尝试编写符号链接时,都会发生以下错误:

But .. the same problem. The following error occurs everytime meteor tries to write symlinks:

Error: UNKNOWN, unknown error '/media/Projekte/test/.meteor/local/.build320446.build/programs/server/npm/logging/main/node_modules'

那么什么是使它正常工作的正确方法呢?

So whats the right way to get this working ?

推荐答案

假设您使用的是Virtualbox 4.0之后的版本,请:

Guessing you were using Virtualbox version after 4.0, please:

  1. 启用符号链接VBoxManage.exe setextradata YOUR_VM VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOUR_SHARED_FOLDER 1
  2. 在Windows上以管理员身份运行VirtualBox.

用您自己的值替换YOUR_VMYOUR_SHARED_FOLDER.您可以通过VBoxManage.exe getextradata YOUR_VM enumerate

Replace the YOUR_VM and YOUR_SHARED_FOLDER with your own value. You can check the value via VBoxManage.exe getextradata YOUR_VM enumerate

自4.0以来,VirtualBox已为共享文件夹启用符号,这是Windows权限阻止了您.您既可以为用户启用权限,也可以简单地以管理员身份运行VirtualBox.

VirtualBox enabled symbolic for shared folder since 4.0, it's Windows permissions blocking you. You can either enable the permission for user or simply run VirtualBox as an administrator.

请参考 Virtualbox文档:

文档已更新,请参阅文档共享文件夹:

Doc updated, please refer to the doc Shared Folders:

从4.0版开始,在以下情况下,VirtualBox共享文件夹还支持符号链接(符号链接):

Starting with version 4.0, VirtualBox shared folders also support symbolic links (symlinks), under the following conditions:

主机操作系统必须支持符号链接(例如,需要Mac,Linux或Solaris主机).

The host operating system must support symlinks (i.e. a Mac, Linux or Solaris host is required).

当前只有Linux和Solaris Guest Additions支持符号链接.

Currently only Linux and Solaris Guest Additions support symlinks.

这篇关于设置Virtualbox 4.3以在来宾上使用符号链接的正确方法(用于流星)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆