私のFedora 25システムでKVM
Vagrantで仮想ボックスを使用したいと思います。libvirt
これはすでにFedora 24で動作します。マシンを起動しようとすると、フラグを無視して--provider libvirt
VirtualBoxを使い続けるようです。
$ 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