15

I am trying to install open edx with ubunty 16.04 and I get this error

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

this occurs when using vagrant up

2 Answers2

18

This is typically because you don't have VT-x or AMD-V enabled in your BIOS. Or worse yet, your CPU doesn't support virtualization.

You can test further by installing cpu-checker.

sudo apt-get install cpu-checker

Follow that with.

sudo kvm-ok

The output should be able to tell you what you need.

Keep in mind, vt-x can't be nested, so for instance, say you're trying to run vagrant on a cloud instance, in my experience that wont work. Atleast, for a 64 bit OS. You'll be able to run 32bit, however, that would be a single core and horrible performance.

0

This answer would be helpful for those running Windows and have Ubuntu installed through a Virtual Machine.

I faced this same error recently.

To specifically sort the error:

VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

You need to:

  1. open the VM that has Ubuntu
  2. go to settings
  3. double click on Processors
  4. under Virtualization engine, check Virtualize Intel VT-x/EPT
  5. save the new settings.

Restart the VM and in your terminal for Ubuntu, go to the virtual environment that you were at. To view virtual environments run:

lsvirtualenv

And then run:

workon <name of virtual env>

After that, you can run the command:

vmcloak init --verbose --win7x64 win7x64base --cpus 2 --ramsize 2048

That should fix the issue.

moo
  • 966