使用 Virtual Box 和 Vagrant 在 Windows7 中安装 Cypress release edx fullstack
Installing Cypress release edx fullstack in Windows7 using Virtual Box and Vagrant
我正在关注 "Installing, Configuring, and Running the Open edX Platform" 版本(2015 年 10 月 2 日)中的 8.5 Install Open edX Fullstack。
- mkdir 全栈
- cd fullstack
- curl -L https://raw.githubusercontent.com/edx/.......(omitted)
- vagrant 插件安装 vagrant-hostsupdater
- 流浪起来
在 "vagrant up" 步骤中,它 "created" 虚拟框正常,因为它 "appeared" 在我的 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:in
初始化
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
in
addToHosts'
中
随后还有更多这些行......
我正在使用 Windows 7 和最新版本的 Virtual Box 和 Vagrant。
如果您让我知道我可能会尝试解决此错误的任何事情,我将不胜感激。
(债务人)<><
您已经安装了 vagrant-hostsupdater,它试图向 C:/Windows/system32/drivers/etc/hosts
添加条目,但要做到这一点,您必须拥有提升权限。 运行 您的命令提示符为管理员(或 UAC)和 运行 vagrant up
从那里。
我正在关注 "Installing, Configuring, and Running the Open edX Platform" 版本(2015 年 10 月 2 日)中的 8.5 Install Open edX Fullstack。
- mkdir 全栈
- cd fullstack
- curl -L https://raw.githubusercontent.com/edx/.......(omitted)
- vagrant 插件安装 vagrant-hostsupdater
- 流浪起来
在 "vagrant up" 步骤中,它 "created" 虚拟框正常,因为它 "appeared" 在我的 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:in
初始化
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
in
addToHosts'
随后还有更多这些行......
我正在使用 Windows 7 和最新版本的 Virtual Box 和 Vagrant。 如果您让我知道我可能会尝试解决此错误的任何事情,我将不胜感激。
(债务人)<><
您已经安装了 vagrant-hostsupdater,它试图向 C:/Windows/system32/drivers/etc/hosts
添加条目,但要做到这一点,您必须拥有提升权限。 运行 您的命令提示符为管理员(或 UAC)和 运行 vagrant up
从那里。