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

查看:26
本文介绍了设置 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.

问题:

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

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

参考:如何在 Ubuntu VrtualBox 中运行meteor 应用程序并在 Windows 主机上使用编辑器进行编辑?

他描述了我现在遇到的同样问题:

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.

但是..同样的问题.每次meteor 尝试编写符号链接时都会出现以下错误:

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 ?

推荐答案

猜你用的是4.0以后的Virtualbox版本,请:

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

VirtualBox 从 4.0 开始为共享文件夹启用符号,这是 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 共享文件夹也支持符号链接(symlinks),满足以下条件:

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天全站免登陆