Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
EthanLXGu opened this issue Jul 24, 2018 · 11 comments
Closed

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

EthanLXGu opened this issue Jul 24, 2018 · 11 comments

Comments

@EthanLXGu
Copy link

EthanLXGu commented Jul 24, 2018

Please note that the Vagrant issue tracker is in priority reserved for bug reports and enhancements. For general usage questions, please use the Vagrant mailing list:
https://groups.google.com/forum/#!forum/vagrant-up. Thank you!

Tip: Before submitting your issue, don't hesitate to remove the above introductory text, possible empty sections (e.g. References), and this tip.

Vagrant version

Vagrant 2.1.2

Host operating system

Centos7 cloud platform.

Guest operating system

Centos7

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
  # The most common configuration options are documented and commented below.
  # For a complete reference, please see the online documentation at
  # https://docs.vagrantup.com.

  # Every Vagrant development environment requires a box. You can search for
  # boxes at https://vagrantcloud.com/search.
  config.vm.box = "hashicorp/precise64"

  # Disable automatic box update checking. If you disable this, then
  # boxes will only be checked for updates when the user runs
  # `vagrant box outdated`. This is not recommended.
  # config.vm.box_check_update = false

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine. In the example below,
  # accessing "localhost:8080" will access port 80 on the guest machine.
  # NOTE: This will enable public access to the opened port
  # config.vm.network "forwarded_port", guest: 80, host: 8080

  # Create a forwarded port mapping which allows access to a specific port
  # within the machine from a port on the host machine and only allow access
  # via 127.0.0.1 to disable public access
  # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"

  # Create a private network, which allows host-only access to the machine
  # using a specific IP.
  # config.vm.network "private_network", ip: "192.168.33.10"

  # Create a public network, which generally matched to bridged network.
  # Bridged networks make the machine appear as another physical device on
  # your network.
  # config.vm.network "public_network"

  # Share an additional folder to the guest VM. The first argument is
  # the path on the host to the actual folder. The second argument is
  # the path on the guest to mount the folder. And the optional third
  # argument is a set of non-required options.
  # config.vm.synced_folder "../data", "/vagrant_data"

  # Provider-specific configuration so you can fine-tune various
  # backing providers for Vagrant. These expose provider-specific options.
  # Example for VirtualBox:
  #
  # config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
  # end
  #
  # View the documentation for the provider you are using for more
  # information on available options.

  # Enable provisioning with a shell script. Additional provisioners such as
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  # documentation for more information about their specific syntax and use.
  # config.vm.provision "shell", inline: <<-SHELL
  #   apt-get update
  #   apt-get install -y apache2
  # SHELL
end

Please note, if you are using Homestead or a different Vagrantfile format, we
may be unable to assist with your issue. Try to reproduce the issue using a
vanilla Vagrantfile first.

Debug output

Provide a link to a GitHub Gist containing the complete debug output:
https://www.vagrantup.com/docs/other/debugging.html. The debug output should
be very long. Do NOT paste the debug output in the issue, just paste the
link to the Gist.

Expected behavior

Vagrant up should start this vm

Actual behavior

There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "b4293ed5-0a7a-4fb2-bd62-23d47fe87557", "--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

Steps to reproduce

References

Are there any other GitHub issues (open or closed) that should be linked here?
For example:

@ZoranStojsavljevic
Copy link

ZoranStojsavljevic commented Jul 24, 2018

Hello Ethan,

You should stop in your host's BIOS, and enable two settings in CMOS:
[1] VT-x ENABLE
[2] VT-d ENABLE

Best Regards,
Zoran

@EthanLXGu
Copy link
Author

@ZoranStojsavljevic Hi, Thanks for your reply. actually, i plan to use vagrant in the cloud platform of centos7 system, i think for this cloud platform, it is not a real machine.. how to enable the BIOS setting? Is it possible?

@ZoranStojsavljevic
Copy link

ZoranStojsavljevic commented Jul 24, 2018 via email

@briancain
Copy link
Member

@EthanLXGu - I believe the only cloud that supports enabling VT-X right now is GCE? There are instructions here if that's what you're using centos-7 on: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances

Otherwise, you won't be able to bring up VMs if VT-X is disabled. I'll go ahead and close this issue, but if you want further help enabling VT-X or finding another solution feel free to email the Vagrant mailing list. Thanks!

@apoorva-shah
Copy link

apoorva-shah commented Oct 14, 2018

Hello,

I have Ubuntu 16.04, 32 bit system.

Steps:
cd /var/www/html/vagrant-demo
vagrant init vagrant init hashicorp/precise64
vagrant up

On vagrant up i got error:


Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:

  https://www.virtualbox.org/manual/ch04.html#sharedfolders

This option can be disabled globally with an environment variable:

  VAGRANT_DISABLE_VBOXSYMLINKCREATE=1

or on a per folder basis within the Vagrantfile:

  config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "d87dac9a-7239-4cbc-964b-a7459b05aabd", "--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

vagrant-up-error

Can you please guide?

Thanks,
Apoorva Shah

@briancain
Copy link
Member

@apoorva-shah - you need to go into your bios and enabled virtualization.

@apoorva-shah
Copy link

Hello @briancain ,
I did not see option in BIOS to enable virtualization. Can you please guide me?
I have core2 duo, 32 bit, ubuntu 16.04 LTS.

Thanks,
Apoorva Shah

@apoorva-shah
Copy link

Hello @briancain ,
I did not see option in BIOS to enable virtualization. May be i missed something? Can you please guide me?
I have core2 duo, 32 bit, ubuntu 16.04 LTS.

Thanks,
Apoorva Shah

@cyrilthank
Copy link

cyrilthank commented Sep 24, 2019

@EthanLXGu - I believe the only cloud that supports enabling VT-X right now is GCE? There are instructions here if that's what you're using centos-7 on: https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances
Otherwise, you won't be able to bring up VMs if VT-X is disabled. I'll go ahead and close this issue, but if you want further help enabling VT-X or finding another solution feel free to email the Vagrant mailing list. Thanks!

Just wanted to ask if there are any changes to this ever since
in terms of additional cloud vendors supporting this
for example just wanted to ask feedback on this
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nested-virtualization

@ghost
Copy link

ghost commented Jan 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants