Vagrantはlibvirtを指定しましたが、VirtualBoxを使用しようとします。

Vagrantはlibvirtを指定しましたが、VirtualBoxを使用しようとします。

私のFedora 25システムでKVMVagrantで仮想ボックスを使用したいと思います。libvirtこれはすでにFedora 24で動作します。マシンを起動しようとすると、フラグを無視して--provider libvirtVirtualBoxを使い続けるようです。

$ vagrant up --provider libvirt
The provider 'virtualbox' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:

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.

KVMを使用するにはどうすればよいですか?


私のVagrantfileものは次のとおりです。

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/xenial64"

  config.vm.provision "shell", inline: <<-SHELL
    sudo apt-get update
    sudo apt-get install devscripts
  SHELL
end

ベストアンサー1

問題は私が言っていないことです。私は過去にこのプロジェクトでVirtualBoxを使用したことがあります。したがって、.vagrantフォルダにはいくつかの残留物があります。今、Vagrantは私が最後に使用したプロバイダを正しく使用し、マシンの状態が失われるので変更されません。

フォルダを削除した.vagrantのは正しいことで、Vagrantはそれをダウンロードしようとしましたlibvirt。しかし、Atlasにはもう画像がないようだったので、その画像を変換するにはlibvirtプラグインが必要でした。mutate

おすすめ記事