由于这个问题,我最近升级到了 virtualbox 5.2.4 和 vagrant 2.0.1 。从那以后,我一直无法运行我的任何流浪盒子(一些 ubuntu,一些 centos)。运行 vagrant up 时出现以下错误:
执行时出错
VBoxManage,这是 Vagrant 用于控制 VirtualBox 的 CLI。命令和标准错误如下所示。命令:["startvm", "ef47d1fc-4ed1-42cb-b564-09bc2bb43296", "--type", "headless"]
Stderr:VBoxManage:错误:虚拟机“ishbook-centos”在启动期间意外终止,退出代码为 1 (0x1) VBoxManage:错误:详细信息:代码 NS_ERROR_FAILURE (0x80004005),组件 MachineWrap,接口 IMachine
当我刚跑vboxmanage不--type headless,我得到一个弹出说运行/sbin/vboxconfig。
RTR3InitEx 失败,rc=-1912 (rc=-1912)
VirtualBox 内核模块与此版本的 VirtualBox 不匹配。VirtualBox 的安装显然没有成功。执行
'/sbin/vboxconfig'
可能会纠正这一点。确保不要混合使用 VirtualBox 的 OSE 版本和 PUEL 版本。
其中:supR3HardenedMainInitRuntime 内容:4 VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - 安装的支持驱动程序与用户的版本不匹配。
即使运行sudo /sbin/vboxconfig多次也没有运气。
我已经尝试多次重新安装 virtualbox 和扩展包,并重新安装 linux-headers 和 dkms,如在与此类似的问题的答案中所见,但没有任何效果。有任何想法吗?
编辑:刚在 5.1 上试过,但还是同样的错误,5.0 只是挂了我的电脑
如何安装 Vagrant 1.0.6。在 Ubuntu 12.04 上已经手动安装了 VirtualBox 4.2.6?我所有已知的方法都失败了:
dpkg --install vagrant_x86_64.deb给我的错误Vagrant not installed. Use apt-get install vagrant使用后vagrant up。apt-get install vagrant想要删除(!)我的手动 VirtualBox 安装。该怎么办?
有没有办法安装比存储库中更新的版本?
Ubuntu 目前安装 vagrant 1.4.3,但我至少需要 1.5
每周左右,一个新版本的官方Ubuntu Trusty x64 Vagrant 虚拟基础框出现在 Hashicorp Atlas 上:https ://atlas.hashicorp.com/ubuntu/boxes/trusty64
据推测,为了可重复的一致性,这一切都是自动化的。
我知道有关于如何一般的博客帖子一个流浪底盒可以建,但我更感兴趣的是如何这些箱子都建立。我希望,就像我遇到的 Ubuntu 生态系统的其他部分一样,构建这些盒子的过程都是公开的开源。
更新:
我对 Ubuntu 操作系统安装过程中选择的选项以及在打包盒子之前所做的任何安装后更改特别感兴趣。
使用 Vagrant、Packer 或其他工具将机器打包成一个盒子的细节就不那么重要了。
Vagrant是一个为开发人员构建和管理虚拟机的工具。它有一个Ubuntu入门指南,其中包含一些看起来很可疑的建议,例如
$ sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby # wtf???
Run Code Online (Sandbox Code Playgroud)
或者从源代码而不是从 Ubuntu 包安装 RubyGems,然后gem install用于安装 vagrant 本身。
只是按照这些说明我感觉不舒服。可能有 PPA 吗?是否有为 Ubuntu 打包的替代工具?
我们是两个运行 Vagrant VM 且安装了 Ubuntu 12.04 的开发人员。运行./gradlew以执行我们的构建脚本对我来说很好,但是当他运行相同的命令时,他收到错误:: No such file or directory.
我已经用谷歌搜索到了最大值,但所有解决方案都与在 64 位系统上运行 32 位可执行文件有关,但我们正在运行 32 位 Ubuntu。由于我们在从配置脚本创建 VM 后立即执行此操作,因此机器应该是相同的。我能想到的唯一区别是外部的,他从 Windows 运行 Vagrant,而我从 OS X 运行它。
有任何想法吗?
我在 Windows 7 上的 VirtualBox VM 中运行 Xubuntu 14.04。在 VM 内部,我想使用 Vagrant 作为我的开发环境的一部分。Vagrant 设置成功执行,直到它希望 VM(在 VM 内部)启动。几分钟后,它因超时而失败。然后运行vagrant ssh失败,ssh_exchange_identification: read: Connection reset by peer.
我在 SO、SF 和 here 上发现了几个提到此错误的问题,但似乎没有一个与我的情况相符。
如果你们中的一个人知道问题是什么,我会很高兴,如果你知道如何解决它,我会很高兴!
我正在尝试使用 ubunty 16.04 安装 open edx,但出现此错误
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "c60f0594-d584-4e0b-b863-2801168e641e", "--type", "headless"]
Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
Run Code Online (Sandbox Code Playgroud)
使用 vagrant up 时会发生这种情况
他们都在解决同样的问题吗?或者它们是针对两组不同的问题?如果是这样,我最好使用 vagrant,还有什么更好的使用 juju?
我使用来自http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-i386-vagrant-disk1.box 的13.04 的 Vagrant 映像来创建一个新的虚拟机并尝试连接到它使用 ssh。然而,SSH 总是立即断开连接,甚至没有进入它尝试进行身份验证的阶段。
我在 VirtualBox GUI 中打开了虚拟机并查看了 SSH 日志文件 (auth.log)。它充满了这样的行:
Jul 25 17:57:02 vagrant-ubuntu-raring-32 sshd[898]: error: Could not load host key: /etc/ssh/ssh_host_rsa_key
Jul 25 17:57:02 vagrant-ubuntu-raring-32 sshd[898]: error: Could not load host key: /etc/ssh/ssh_host_dsa_key
Jul 25 17:57:02 vagrant-ubuntu-raring-32 sshd[898]: error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Jul 25 17:57:02 vagrant-ubuntu-raring-32 sshd[898]: fatal: No supported key exchange algorithms [preauth]
Run Code Online (Sandbox Code Playgroud)
通过执行以下命令解决了问题:
sudo ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa
sudo ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t …Run Code Online (Sandbox Code Playgroud)