博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vagrant 启动时报错failed to create the raw output file
阅读量:7065 次
发布时间:2019-06-28

本文共 1231 字,大约阅读时间需要 4 分钟。

  hot3.png

为了同步家和公司的vagrant box,免不了经常要导入导出box。

然后我手贱换了宿主机上Vagrantfile所在的文件名,然后virtualbox就报错了。

here was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: ["startvm", "6333f19c-adb9-4bfb-a72d-0c3aecc4d9f7", "--type", "headless"]Stderr: VBoxManage.exe: error: RawFile#0 failed to create the raw output file D:/code/oss/vbox/u16/ubuntu-xenial-16.04-cloudimg-console.log (VERR_PATH_NOT_FOUND)VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

 幸好在github上找到了解决方法:

https://github.com/joelhandwell/ubuntu_vagrant_boxes/issues/1

在Vagrantfile加virtualbox的配置

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

 

转载于:https://my.oschina.net/chan17/blog/1785293

你可能感兴趣的文章
AIP(Azure 信息保护)之一:启用与激活服务
查看>>
一步步学WebSocket(3)WebSocket协议格式
查看>>
linux更新内核
查看>>
通过mdadm命令调用内核MD模块实现软Raid
查看>>
为RemoteApp的登录用户(域用户)添加输入法的方法
查看>>
分享Open-E DSS V7 应用系列十篇!
查看>>
分享Silverlight/Windows8/WPF/WP7/HTML5一周学习导读(5月6日-5月12日)
查看>>
javascript框架概览备忘
查看>>
产品与技术(人员)间的职责关系
查看>>
企业云桌面-13-为企业新建组织单位
查看>>
SystemCenter2012SP1实践(5)SCVMM管理HyperV
查看>>
Ext JS添加子组件的误区
查看>>
微软私有云分享(R2)27维护窗口的使用
查看>>
Mac 平台下功能强大的Shimo软件使用指南
查看>>
永远不要对一个外行聊你的专业
查看>>
MySQL学习四部曲
查看>>
SCCM 2012 R2实战系列之一:SQL安装
查看>>
windows下安装memcached
查看>>
08R2-12R2基于访问权限的文件枚举
查看>>
Gartner:网络信息安全投入依然不在中国政企客户优先投入之列
查看>>