vagrant box --ubuntu18 打包后,使用box 报错

vagrant box --ubuntu18 打包后,使用box 报错

解决方案:  修改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 报错

原文地址:https://www.cnblogs.com/dafei4/p/12939092.html