2016-08-23 2 views
2

Я пытаюсь получить коробку OSX (идеально El Capitan), установленную под бродягой. Моей операционной системой является El Capitan 10.11.6 (15G31).Как я могу запустить OSX El Capitan Box под Vagrant?

Вот что я пытался до сих пор

vagrant init 
vagrant box add jhcook/osx-elcapitan-10.11 
# edit vagrant init such that config.vm.box = "jhcook/osx-elcapitan-10.11" 
vagrant up 

Однако, я получаю следующее сообщение об ошибке:

Bringing machine 'default' up with 'virtualbox' provider... 
==> default: Importing base box 'jhcook/osx-elcapitan-10.11'... 
==> default: Matching MAC address for NAT networking... 
==> default: Checking if box 'jhcook/osx-elcapitan-10.11' is up to date... 
==> default: Setting the name of the VM: ratatouille_default_1471905801413_58611 
==> default: Clearing any previously set network interfaces... 
==> default: Preparing network interfaces based on configuration... 
    default: Adapter 1: nat 
==> default: Forwarding ports... 
    default: 22 (guest) => 2222 (host) (adapter 1) 
==> default: Running 'pre-boot' VM customizations... 
==> default: Booting VM... 
There was an error while executing `VBoxManage`, a CLI used by Vagrant 
for controlling VirtualBox. The command and stderr is shown below. 

Command: ["startvm", "e1aafdeb-650b-4b94-89cf-4ef39e22e7f6", "--type", "headless"] 

Stderr: VBoxManage: error: Implementation of the USB 2.0 controller not found! 
VBoxManage: error: Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings. 
VBoxManage: error: Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND) 
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole 

Что я делаю неправильно?

Как отключить поддержку USB 2.0?

Редактировать: Те, кто голосует за закрытие, не могли бы вы рассказать мне, в чем проблема? Я рад исправить это.

+0

Have Вы устали фиксируя ошибку? «Поскольку состояние контроллера USB 2.0 является частью состояния сохраненной виртуальной машины, не удается запустить виртуальную машину. Чтобы устранить эту проблему, установите« Oracle VM VirtualBox Extension Pack »или отключите поддержку USB 2.0 в настройках виртуальной машины». –

ответ

3

Хорошо, все было очень просто. Я делаю это для неопытности с Вагрантом с моей стороны.

Добавление следующих строк в Vagrant.configure(2) do |config| блока решило проблему (спасибо @TomMillard):

# disable USB 2.0 
    config.vm.provider "virtualbox" do |vb| 
     vb.customize ["modifyvm", :id, "--usb", "off"] 
     vb.customize ["modifyvm", :id, "--usbehci", "off"] 
    end 
Смежные вопросы