在 VMWare VM 中运行 Vagrant [英] Running Vagrant Inside VMWare VM

查看:35
本文介绍了在 VMWare VM 中运行 Vagrant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到这本质上是 OSCeption(操作系统启动),但我认为这对我来说可能最有意义(请告诉我是否有更好的选择,这看起来真的很糟糕).

I realize this is essentially OSCeption (Operating System Inception), but I think it might make the most sense for me (please tell me if there's a better option, this seems really awful).

情况如下:我有一台 Windows 8 机器.我喜欢它 - 它适用于除开发之外的所有事情.对于开发,我一直在使用运行 Ubuntu 的 VMWare 虚拟机.我曾尝试使用 Cygwin,但感觉不太对.

Here's the situation: I have a windows 8 machine. I like it - it works great for everything but development. For development, I've been using a VMWare virtual machine running Ubuntu. I've dabbled with using Cygwin, but it just didn't feel right.

我现在加入了一个他们一直在使用 Vagrant 来管理开发环境的项目,所以我需要能够使用 Vagrant.但是,据我所知,Vagrant 主要用于在一致的环境中运行代码,但不一定用于编写代码.如果我想通过 SSH 将代码写入我的流浪箱中,那么我将不得不重新配置我的首选项,比如我的 .vimrc 文件,而不是为每台机器配置什么.

I'm now joining a project where they've been using Vagrant to manage development environments so I need to be able to use Vagrant. But, from what I've seen, Vagrant is mainly used to run code within a consistent environment, but not necessarily to write it. And if I wanted to write code by SSH'ing into my vagrant boxes, then I would have to re-configure my preferences like my .vimrc file and what not for every machine.

在我的 Ubuntu 虚拟机中安装 Vagrant 有意义吗?我觉得在某些时候虚拟机中的虚拟机会失控并导致问题.有没有更好的方法来做到这一点?

Does it then make sense to install Vagrant within my Ubuntu VirtualMachine? I feel like at some point VMs within VMs will get out of hand and cause problems. Is there any better way to do this?

所以我试了一下 - 正如我所料,我遇到了一些错误.当我尝试启动机器时,我收到以下错误消息:

So I tried it out - as I expected I hit some errors. When I try and boot the machine, I get the following error message:

Failed to open a session for the virtual machine vagranttest_1371583212.

VT-x is not available. (VERR_VMX_NO_VMX).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Console
Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}

看起来我的 vmware 虚拟机无法运行另一个虚拟机.关于执行此操作的最佳方法有什么想法吗?

Looks like my vmware virtual machine can't run another virtual machine. Any ideas on the best way to go about doing this?

推荐答案

我今天遇到了同样的问题.解决方法很简单.

I've run into the same issue today. The solution is quite simple.

  1. 关闭 vmware 虚拟机.
  2. 转到编辑虚拟机设置"
  3. 转到处理器.那里有三个复选框.
  4. 选中第二个复选框(启用 VT-x/AMD-V)
  5. 打开机器电源.

在这个 virtualbox 之后应该可以在 vmware 中工作.

After this virtualbox should work inside vmware.

这篇关于在 VMWare VM 中运行 Vagrant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆