Cannot disable VT-x in VirtualBox

12,196

I think you copied the two commands from a blog that automatically turned a "-" character (U+002D HYPHEN-MINUS) into a "–" character (U+2013 EN DASH).

You must use "-" rather than "–".

Here are the corrected commands:

VBoxManage modifyvm <VM_NAME> --hwvirtex off
VBoxManage modifyvm <VM_NAME> --vtxvpid off
Share:
12,196

Related videos on Youtube

Aleksandr Blekh
Author by

Aleksandr Blekh

Management and IT Consultant, information systems researcher, data scientist, aspiring educator and entrepreneur. Newly minted Ph.D. in Information Systems - recently defended my dissertation on open source software success factors. I am interested in product management, software engineering, open source software ecosystem (obviously!), open data, open (reproducible) research, data science, statistics (especially SEM), R, artificial intelligence, startups and venture capital, knowledge sharing, management science, information architecture, education and medicine, among other topics. Additionally, I have earned M.S. in Computer Information Systems and B.S. in EE (microelectronics and semiconductor devices). I have 20+ years of IT experience, mostly as a software developer and consultant. I speak Russian, English and a little Romanian.

Updated on September 18, 2022

Comments

  • Aleksandr Blekh
    Aleksandr Blekh over 1 year

    Recently I was asked to deploy a scientific software packaged as a VirtualBox image (OVA format). I prepared the environment (Debian 7) - installed required packages, enabled DKMS, imported the image - however, when I tried to start the VM, I got the following message:

    Error: failed to start machine. Error message: VT-x is not available (VERR_VMX_NO_VMX)
    

    I did some reading and realized that the problem lies in the fact that my Debian environment is running as a Hyper-V VM (I have no control over that), which doesn't support hardware-enabled "stacked" virtualization. So, I decided to turn the VT-x mode off by using the following commands:

    VBoxManage modifyvm <VM_NAME> –-hwvirtex off
    VBoxManage modifyvm <VM_NAME> –-vtxvpid off
    

    Unfortunately, for both commands, I'm getting the following error messages:

    VBoxManage: error: Unknown option: -–hwvirtex
    VBoxManage: error: Unknown option: -–vtxvpid
    

    I have also tried to turn off hwvirtexclusive, but to no avail. Your advice will be much appreciated.

    • Daniel B
      Daniel B almost 8 years
      Is it perhaps a 64-bit guest OS?
    • Aleksandr Blekh
      Aleksandr Blekh almost 8 years
      @DanielB: Yes, Debian is 64-bit. Any workarounds for this case?
    • Daniel B
      Daniel B almost 8 years
      No. Convert it to a Hyper-V VM (could work) or get a different appliance.
    • Aleksandr Blekh
      Aleksandr Blekh almost 8 years
      @DanielB: Thank you very much (+1). Unfortunately, it is impossible in this case, but I will think of an acceptable solution.
  • Aleksandr Blekh
    Aleksandr Blekh almost 8 years
    Wow, great catch (+1 and accepted)! Thank you so much! However, even after running the fixed the commands (which were successful), an attempt to start VM fails with the same error message (1st message in my question). It seems that @Daniel B is correct in that the problem is that the outer guest VM is 64-bit. He just confirmed in the comment above.
  • Deltik
    Deltik almost 8 years
    @AleksandrBlekh: Yeah, VirtualBox nested virtualization doesn't support 64-bit operating systems. Consider using QEMU, which does support emulating a 64-bit operating system without VT-x. This answer just addresses the fact that your "-" turned into a "–".
  • Aleksandr Blekh
    Aleksandr Blekh almost 8 years
    Thank you for additional info and advice. Your answer perfectly addresses my question, hence upvote and accept. I appreciate your help.
  • Aleksandr Blekh
    Aleksandr Blekh almost 8 years
    I have a couple of quick questions, if you don't mind. 1. Should I expect any problems from trying to run QEMU in a Hyper-V VM? 2. Is QEMU independent from KVM - why it's often mentioned as QEMU/KVM? 3. Is importing OVA image into QEMU ([wiki.hackzine.org/sysadmin/kvm-import-ova.html](like this)) losing some info about the target VM (requested RAM, etc.)?
  • Deltik
    Deltik almost 8 years
    @AleksandrBlekh: Those questions should be asked in a separate post, as comments aren't for extended discussion and extra questions. If you make a new post, let me know and I'll be happy to write a proper answer. Otherwise, I encourage you to research QEMU and see what it is capable of.
  • Aleksandr Blekh
    Aleksandr Blekh almost 8 years
    All right. Sounds good.