web-dev-qa-db-ja.com

Vagrantfile設定でGUIを有効にする

Vegrantfileでconfigure.vm.boot_mode = :guiを使用しようとしましたが、次のエラーが発生しました:The following settings shouldn't exist: boot_mode

私が今それを修正した方法は、ベンダー構成(virtualbox)を使用することです:

config.vm.provider "virtualbox" do |v|
    v.gui = true
end

ただし、必要がない場合は、ベンダー固有のものは避けたいと思います。これに代わるベンダーにとらわれない選択肢は何ですか? boot_modeに代わるものはありますか?

27
GuiDocs

vm.boot_modeはVagrant1.1で廃止されましたが、V1構成ブロックで囲むと引き続き使用できます。

Vagrant.configure("1") do |config|
  config.vm.boot_mode = :gui
end

Vagrant.configure("2") do |config|
  # V2 Config...
end
23
Emyl