Vagrant – impossible de redémarrer une VM VirtualBox sous MS Windows
Parfois, Vagrant est susceptible et refuse de redémarrer votre VM VirtualBox :
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20150420.1.1'. The latest is version '20150930.0.0'. Run
==> default: `vagrant box update` to update.
==> default: Resuming suspended VM...
==> 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 'restoring, running'. The machine is in the
'saved' 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.
The primary issue for this error is that the provider you're using
is not properly configured. This is very rarely a Vagrant issue.
La commande vagrant up donne le même résultat. Après vérification, la VM VirtualBox est dans un état saved :
$ vagrant status
Current machine states:
default saved (virtualbox)
To resume this VM, simply run `vagrant up`.
Même en passant par l’application VirtualBox, la VM refuse de démarrer.
En cherchant dans les logs de VirtualBox qui se trouvent dans C:\Users\pnom\VirtualBox VMs\vagrant-myproject_default_1429568957449_60098\Logs\VBoxHardening.log, on peut voir cette erreur :
b28.146c: supR3HardenedVmProcessInit: Opening vboxdrv stub... b28.146c: Error opening VBoxDrvStub: STATUS_OBJECT_NAME_NOT_FOUND b28.146c: supR3HardenedWinReadErrorInfoDevice: NtCreateFile -> 0xc0000034 b28.146c: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3) b28.146c: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)
Il semblerait que cette erreur puisse survenir après une mise à jour de MS Windows. Pour la corriger, il faut faire un clic droit sur le fichier C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.inf et choisir Installer. Vous pouvez exécuter à nouveau la commande vagrant up et retravailler dans votre VM.
La prochaine fois que Vagrant refusera de démarrer votre VM, ne foncez pas tête baisser en la recréant. Vérifier les logs de VirtualBox !
https://blog.lecacheur.com/2015/10/08/vagrant-impossible-de-redemarrer-une-vm-virtualbox-sous-ms-windows/https://blog.lecacheur.com/wp-content/uploads/2014/04/Vagrant-839x1024.pnghttps://blog.lecacheur.com/wp-content/uploads/2014/04/Vagrant-150x150.pngDéveloppementLinuxvagrant,virtualbox,windowsParfois, Vagrant est susceptible et refuse de redémarrer votre VM VirtualBox : La commande vagrant up donne le même résultat. Après vérification, la VM VirtualBox est dans un état saved : Même en passant par l'application VirtualBox, la VM refuse de démarrer. En cherchant dans les logs de VirtualBox qui se trouvent...SeBSébastien LECACHEUR23r0@laposte.netAdministratorLe weblogue de SeB

Laisser un commentaire