大飞_dafei

导航

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 报错

posted on 2018-12-03 15:43  大飞_dafei  阅读(109)  评论(0编辑  收藏  举报