terrywang / vagrantboxes

Handcrafted Arch Linux Vagrant base box with :heart:
250 stars 29 forks source link

Unable to boot up from Arch Linux box image #8

Closed seekshiva closed 9 years ago

seekshiva commented 9 years ago

When I did vagrant up on the archlinux box, I got the following error:

==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
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.

Manually starting the powered off instance from VirtualBox gives me the following error:

Failed to open session for the virtual machine arch_default_xxx

Implementation of the USB 2.0 controller not found! Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings (VERR_NOT_FOUND).

Is the USB 2.0 controller required by default to run this VM? Or is there something wrong with my config?

Cheers!

mattyjones commented 9 years ago

I had to enable the USB controller and then it worked fine for me, no issues

terrywang commented 9 years ago

@seekshiva Thank you for reporting the issue.

Root cause: In VirtualBox the Pointing Device of the VM was set to "USB Tablet" which relies on USB Controller and USB 2.0 (EHCI) Controller. Unchecking them will NOT work as it will be considered invalid settings detected and roll back to previous settings on saving.

USB controllers need to be disabled as a general rule when making Vagrant base boxes. My negligence.

A new build will be made available soon to address this issue.

@mattyjones Thanks for the quick update.

seekshiva commented 9 years ago

@mattyjones Thanks! That worked for me

@terrywang Thanks for explaining the cause. I look forward to the revised build with the fix. I don't mind installing the extension pack, but it would be an overhead while getting people on-boarded to my project. Its great to know that the extension pack requirement was only a mistake.

Thanks for the prompt reply! :+1:

seekshiva commented 9 years ago

Thanks @terrywang !

hallatech commented 9 years ago

Hi Terry,

Just following the instructions to startup ol6: https://github.com/terrywang/vagrantboxes/blob/master/oraclelinux-6-x86_64.md

On vagrant up I got the same issue as above. Had to shutdown and disable USB controller from VB menu, before vagrant up worked successfully. Does this box need a fix too?

Thanks :)

terrywang commented 9 years ago

@hallatech Thanks for reporting.

The issue should have been fixed in the last refresh of all Oracle Linux base boxes. Try to download the updated box and see if the issue persists. If so, update here again and I'll look into it.

hallatech commented 9 years ago

@terrywang Tried again to remove and re-add the box, init and bring up and its the same. I'm using latest versions of Vagrant and VBox. Thanks

terrywang commented 9 years ago

@hallatech Verified, I'll push a refreshed build shortly for all affected base boxes ;-D

hallatech commented 9 years ago

Awesome thank you! :)