Closed roelvanduijnhoven closed 11 years ago
Can you start the machine manually (from the GUI)? This error message is usually indicative of VIrtualBox issues.
There are 3 image listed in VirtualBox. One works fine (32 bit); the other two (both 64 bit) will not start. Error message:
Het is niet gelukt een sessie te openen voor virtuele machine vagrant-test_default_1378574376. VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED).
Resultaat Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}
After I tried this I manually removed all three images and added a new precise32 box again. Now it works again..
You need to modify your BIOS to enable VT-x features on your motherboard.
I recently received the same error using both 1.3.1 and 1.2.7 (different message, but the same error). I tried to uninstall Hyper-V (required for the windows phone emulator) and made sure that VT-X also was enabled in BIOS and then it worked.
The error VERR_VMX_MSR_LOCKED_OR_DISABLED means that you either don't have VT-X enabled or that an application or service is running and blocking/using VT-X. Try to stop the application/services that uses it and see.
Is there something I can set in the definition of a VeeWee box to ensure I can run that VM on the machine I run Vagrant on? (A CentOS virtual machine). I am having the same error The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again.
On ubuntu I did "sudo modprobe vboxnetflt" it worked!
sudo dpkg-reconfigure virtualbox-dkms sudo dpkg-reconfigure virtualbox
this is what i did, and it works..
Same error for Windows 8, any help?
Is VT-x/hardware virtualization required to start a vm?
$ VBoxManage startvm test_project_default_1387217556617_76540 --type headless
Waiting for VM “test_project_default_1387217556617_76540” to power on…
VBoxManage: error: VT-x is not available. (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component Console, interface IConsole
Run into the same thing with vagrant up
as well.
Sorry to ask here, I know this is a VirtualBox question, but hopefully someone will be able to answer.
Update: Looks like it is not always required: https://www.virtualbox.org/manual/ch10.html#hwvirt And this seems to be a way to disable? http://aminsblog.wordpress.com/2012/05/27/vt-x-is-not-available-ve/
@rakm VT-x is required for 64-bit VMs. But either way you'll have a really bad time without it (really slow).
Ok, will keep that in mind. Thanks @mitchellh
FYI I started having this problem recently after Vagrant working fine for months. The only thing that changed is (drum roll...) upgrading to OSX Mavericks. Would that have anything to to w/ anything? I'm using the latest Vagrant, latest VirtualBox, and I downloaded the precise32 box file from scratch, and I still get this dumb error.
I'm getting the same error.
Source:
https://github.com/mcandre/hello-vagrant
Trace:
C:\Users\andrew\Desktop\src\hello-vagrant>vagrant destroy & vagrant up
Are you sure you want to destroy the 'default' VM? [y/N] y
[default] Destroying VM and associated drives...
[default] Running cleanup tasks for 'puppet' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
DL is deprecated, please use Fiddle
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.
If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.
System:
C:\Users\andrew\Desktop\src\hello-vagrant>specs vagrant virtualbox chocolatey os
Specs:
specs 0.8
https://github.com/mcandre/specs#readme
vagrant --version
Vagrant 1.4.3
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" --version
4.3.6r91406
chocolatey version
found : 0.9.8.23
name : chocolatey
latestCompare : 000000000000.000000000009.000000000008.000000000023
verMessage : Latest version installed
latest : 0.9.8.23
foundCompare : 000000000000.000000000009.000000000008.000000000023
Reading environment variables from registry. Please wait... Done.
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 8.1 Pro
OS Version: 6.3.9600 N/A Build 9600
I'm running Windows inside VMware Fusion 6.0 on Mac OS X 10.9.1 Mavericks on a Haswell MacBook Air, if that matters.
I had the same error.. Just removed Hyper-V on my Windows 8.1 machine and now it works! :)
Also: it does appear that the latest version of VirtualBox (4.3.8) fixed the issue and it runs fine w/ Vagrant again. Huzzah!
You need to modify your BIOS to enable VT-x features on your motherboard.
@mitchellh You rock.
I have the same issue, on Virtual Box 4.3.10_Ubuntu r93012 on Linux Mint 17.
Same thing here: Windows 7x64 Virtualbox: VirtualBox-4.3.14-95030 Vagrant: 1.6.3 VT-x enabled
but how do you start virtualbox from the gui? I can't find this anywhere on the internet, and none of the recommendations for starting it in the command line work.
Hi guys.
I had the same problem today. I had VirtualBox 4.3.14 installed. I downgraded to VirtualBox 4.3.12 and it just worked. Hope this helps the next poor and frustrated soul who passes by...
x2. I was very confused about all this talk of the GUI because with version 4.3.14 I wasn't even able to see the gui for some reason. Anyways, I tried 4.3.12 and it worked, and I am now able to see the gui.
@Brade I got the same error message, except for the VM state (aborted). And apparently, started after upgrading to the latest releases of OSX (Mavericks), Vagrant (1.6.3.) and VirtualBox (4.3.14):
The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'aborted' state.
It was working fine with older releases of Vagrant and VirtualBox on Mavericks (although I needed to restart VirtualBox before issuing the vagrant up
command).
When starting the VM using the VirtualBox GUI, everything was working fine. Also, setting v.gui = true
on the Vagrantfile and starting the VM in the CLI worked too.
After looking the VirtualBox logs, I found this:
OpenGL Error: Render SPU: Couldn't get a double-buffered, RGB visual with Z!
The solution was to disable the 3D acceleration, using modifyvm
:
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
end
Also related to #2720.
Same error for windows 8.1 , Then I installed the windows7, But it still appears this stupid mistake.
I can confirm that this is a VirtualBox error. Since upgrading to 4.3.14 all my boxes including old ones have started to fail with that similar message and became unbootable either via the GUI or vagrant. Vt-x is enabled. After downgrading to VB 4.3.12 everything is back to normal, the boxes both 64 and 32 bit work without a problem and Vt-x is active in the VirtualBox settings for the machines. Although not sure what is causing the issue, downgrading clearly fixes it for me. Hope that helps others
Host is 64 bit Windows 7
Hello.
I was receiving this error on OSx 10.9.4 too! just updated virtual box to 4.3.14 r95030 and it was solved.
Thanks,
Hi,
I had the same error (Win7 64bit) when running Virtual Box 4.3.14 r95030 (was working ok yesterday).
Checking for updates told me I had the latest version, so I just downloaded and installed version 4.3.16 from the website and its working again.
Hope it helps.
Win7 64bit, update to VirtualBox 4.3.16 & enabling VT-x helped did it for me.
Disable USB controller
I had the same problem using Vagrant 1.6.5 and Virtual Box 4.3.14 r95030 on OSX 10.9.5. Upgrade to Virtual Box 4.3.18r96516 solved the problem for me.
montoya-azul has a point, if you have a USB-2 controller in your VM config, try disabling it.
Starting the GUI on linux just means typing 'virtualbox' in a terminal.
Enabling Intel Virtualization Technology in BIOS fixed the problem.
I just had the same problem, I hope that installing the new version of virtualbox would solve the problem.
Please, I continue with problem!
Win8 64bit, VirtualBox 4.3.20 & enabling VT-x don't work for me. Any suggestions?
I resolved this issue by changing CPUs to 1 and disable vtx from vbox setting. You can not disable Vtx if CPUs > 1
I had the same issue, updating Virtual Box fixed the issue for me - version 4.3.20
@eriksencostsa 's solution worked for me: vb.customize ["modifyvm", :id, "--accelerate3d", "off"]
I was using OSX Yosemite host, CentOS 5.5 Guest
test
@roelvanduijnhoven You said
https://github.com/mitchellh/vagrant/issues/2157#issuecomment-24017403
After I tried this I manually removed all three images and added a new precise32 box again. Now it works again..
can you tell us the exact line you added in your Vagrantfile?
Actually I didn't have to change the box in the vagrantfile, I really had to restart my Computer and enable virtualization in my BIOS settings, then everything worked fine.
No clue anymore @rubo77. More than a year ago!
Is anyone here familiar with how to port forward your vagrant VM so that you can successfully fire up OpenBazaar on it?
I keep thinking I have it right but I keep getting these errors every time.
If you are using VirtualBox, install Extension Pack might be help.
updating to el capitan killed it! thanks for the tips! booting into the gui yielded "Kernel driver not installed (rc=-1908)". googling that error led to several forums indicating that virtualbox has kernel hooks that were incompatible after the OS update. reinstalling virtualbox solved the issue!
I also updated from vagrant 4.3.1 to 5 and everything works swimmingly :+1:
Same problem occured when I tried to specify 'config.vm.network "private_network", type: "dhcp"' setting. I solved that issue by loading kernel modules for the virtual box:
# modprobe vboxnetflt
# modprobe vboxpci
# modprobe vboxnetadp
Don't forget to check whether they were truly loaded by
lsmod | grep vbox
I am working with Vagrant 1.7.4 and Virtual Box 5.0.10 , but when I do vagrant up with git bash I get the following error,
How do I resolve this ?
TL;DR Go to "VirtualBox Host-Only Network Properties" and disable and then enable "VirtualBox NDIS6 Bridged Networking Driver".
I just got started with Vagrant under Windows 10, and immediately run into this issue. Following comments above, I tried to start the vagrant's machine manually in VirtualBox GUI, but it failed with the error message "Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND)." Researching on the latter input, I found this mysterious solution http://stackoverflow.com/a/33733454/1008341
Windows: 10, Virtual Box,: 5.0.10, Vagrant: 1.7.4... Solution
Went to the C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv directory, right clicked on VBoxDrv.inf and selected Install. I then went back to my console and typed 'sc start vboxdrv'.
How to go to VirtualBox Host-Only Network Properties?
At the moment I can no longer
vagrant up
from an initialVagrentfile
using boxprecise64
(but alsoprecise32
). The strange thing is that it did work before (just after I installed it).The output of running
VAGRANT_LOG=info vagrant up
is found in this gist: https://gist.github.com/roelvanduijnhoven/6477492I have no clue what is going wrong!
The error I get is: