0

我正在关注“安装、配置和运行 Open edX 平台”版本(2015 年 10 月 2 日)中的 8.5 安装 Open edX Fullstack。

在“vagrant up”步骤中,它“创建”了虚拟框,因为它“出现”在我的 Oracle VM Vitural Box 管理器上。但是,“vagrant up”步骤在打印以下消息时继续运行。最终,它破坏了虚拟机并退出。

==> default: Attempting graceful shutdown of VM... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 4.2.0 default: VirtualBox Version: 5.0 ==> default: Checking for host entries ==> default: adding to (C:/Windows/system32/drivers/etc/hosts) : 192.168.33.10 preview.localhost # VAGRANT: 8f87a49f1 aae27b0a96e16269847ad4 (default) / d270d099-e1a7-44d0-b95c-8e2581568495 ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... C:/Users/user/.vagrant.d/gems/gems/vagrant-hostsupdater-0.0.11/lib/vagrant-hostsupdater/HostsUpdater.rb:82:ininitiali e':权限被拒绝 - C:/Windows/system32/drivers/etc/hosts (Errno::EACCES) 来自 C:/Users/user/.vagrant.d/gems/gems/vagrant-hostsupdater-0.0.11/ lib/vagrant-hostsupdater/HostsUpdater.rb:82 在open' from C:/Users/user/.vagrant.d/gems/gems/vagrant-hostsupdater-0.0.11/lib/vagrant-hostsupdater/HostsUpdater.rb:82 inaddToHosts'

并且更多的这些线跟随....

我正在使用 Windows 7 和最新版本的 Virtual Box 和 Vagrant。如果您让我知道我可能会尝试解决此错误的任何事情,我将不胜感激。

(债务人)<><

4

1 回答 1

1

您已经安装了尝试添加条目的 vagrant-hostsupdater,C:/Windows/system32/drivers/etc/hosts但要做到这一点,您必须具有提升的权限。以管理员(或 UAC)身份运行命令提示符并vagrant up从那里运行。

于 2015-10-11T15:49:37.833 回答