Error VT-x not available for Vagrant machine inside Virtualbox

后端 未结 7 769
无人共我
无人共我 2020-12-13 02:36

I have an Ubuntu Virtual machine that is configured to have VT-x enabled, 6 Processors, and 25 GB RAM.

Inside that virtual machine I am trying to start a vagrant mac

7条回答
  •  北海茫月
    2020-12-13 03:08

    You can only use one virtual CPU without VT-x. Thus, the error message stating that VT-x isn't enabled is caused by the following line:

    vb.customize ["modifyvm", :id, "--cpus", "2"]

    Replacing it with the following works (Vagrant has a shorthand for setting the CPU count):

    vb.cpus = 1

    NOTE: You can only run 32-bit VMs inside another VM.

提交回复
热议问题