vagrant box --ubuntu18 打包後,使用box 報錯

大飛_dafei發表於2018-12-03

 

解決方案:  修改vagrantfile

  config.vm.provider "virtualbox" do |v|
    #v.memory = 4096
    #v.cpus = 4
    # Basebox ubuntu/xenial64 comes with following Vagrantfile config and causes https://github.com/joelhandwell/ubuntu_vagrant_boxes/issues/1
    # vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
    # vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "ubuntu-xenial-16.04-cloudimg-console.log") ]
    # following config will address the issue
    v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
end

參考地址:  ubuntu_vagrant_boxes 使用自己的box 報錯

相關文章