vagrant up したときにVirtualBoxを探しているように見え、エラーとなってしまいます。
D:\Vagrant\precise64>vagrant up --provider=hyperv
Bringing machine 'default' up with 'hyperv' provider...
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.
VAGRANT_LOG=debug vagrant up でデバッグログを出力させるようにして、ログを確認するとエラーになっている原因が推測できました。DEBUG base: Windows, checking for VBoxManage on PATH first とあるようにWinodwsだとデフォルトで VBoxManage のパスをチェックするようです。このパスが存在しないことが原因でエラーになっていると考えられます。<br>
よって、Oracle VirtualBox を再度インストールすることで vagrant up --provider=hyperv で起動させることができました。
D:\Vagrant\precise64>VAGRANT_LOG=debug vagrant up --provider=hyperv
INFO interface: info: Bringing machine 'default' up with 'hyperv' provider...
Bringing machine 'default' up with 'hyperv' provider...
INFO batch_action: Enabling parallelization by default.
INFO batch_action: Disabling parallelization because provider doesn't support it: hyperv
INFO batch_action: Batch action will parallelize: false
INFO batch_action: Starting action: #<Vagrant::Machine:0x0000000005238980> up {:destroy_on_error=>true, :install_provider=>false, :parallel=>true, :provision_ignore_sentinel=>false, :provision_types=>nil}
INFO machine: Calling action: up on provider Hyper-V (new)
DEBUG environment: Attempting to acquire process-lock: machine-action-65facac4d5faa720c79dfc299d95a150
DEBUG environment: Attempting to acquire process-lock: dotlock
INFO environment: Acquired process lock: dotlock
INFO environment: Released process lock: dotlock
INFO environment: Acquired process lock: machine-action-65facac4d5faa720c79dfc299d95a150
INFO interface: Machine: action ["up", "start", {:target=>:default}]
INFO runner: Preparing hooks for middleware sequence...
DEBUG base: Windows, checking for VBoxManage on PATH first
INFO base: VBoxManage path: VBoxManage
INFO environment: Released process lock: machine-action-65facac4d5faa720c79dfc299d95a150
INFO environment: Running hook: environment_unload
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: environment_unload #<Vagrant::Action::Builder:0x00000000052ec8e0>
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<Vagrant::Errors::VirtualBoxNotDetected: Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.>
ERROR vagrant: Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.
ERROR vagrant: C:/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/providers/virtualbox/driver/meta.rb:51:in `rescue in block in initialize'
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。