Lien direct vers les résolutions d’erreurs
Stopper proprement une VM
$ vagrant halt <name or UUID>
Démarrer une VM
vagrant up <name or UUID>
List all available virtual machines
$ VBoxManage list vms
List all running available virtual machines
$ VBoxManage list runningvms
Stop (power off) a running a VM
$ vboxmanage controlvm dicom-portail poweroff
Delete a VM
$ vboxmanage unregistervm <name or UUID> --delete
Résolution d’erreurs
POUR TOUS LES PBMS DE MERDE AVEC LA VAGRANT QUI EXISTE DEJA QUI EST EN STILL RUNNING OU POWER OFF ET QU’ON PEUT PAS DESTROY:
$ vagrant reload <nom>
ou
$ vagrant provision <nom>
Chemins à connaître
- Chemin vers les VMs Virtual Box:
C:\Users\flang\VirtualBox VMs
.
- Chemin vers les Vagrant:
C:\Users\<utilisateur_windows>\.vagrant.d
.
vagrant up > « Warning: Authentication failure. Retrying… «
Solution #1
à savoir: mettre à jour Virtual Box peut aider en cas de mise à jour de Windows.
Problème: du jour au lendemain, la commande vagrant up
me pète une erreur Warning: Authentication failure. Retrying….
Via l’outil CMD (invite de commandes) de Windows exécuté en tant qu’administrateur, se rendre à la racine du dossier à partir duquel vous exécutez votre commande vagrant up
et taper une première fois:
Une fois que le message d’erreur « Warning: Authentication failure. Retrying… « aura avorté la tentative de « up », taper les commandes suivantes:
|
vagrant ssh password: vagrant wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -O ~/.ssh/authorized_keys chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys chown -R vagrant:vagrant ~/.ssh exit |
Ensuite, exécuter la commande vagrant halt
, puis relancer un vagrant up
.
Solution #2 (pas testée)
Pour ton soucis de authentification :
- Sur ta vagrant fait :
vagrant ssh
- Log toi
- Tape ceci :
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key" > .ssh/authorized_keys
- puis tu sors de ta vagrant
- et tu fais un
vagrant reload
Cela corrige le problème sur les vagrant ou j’ai eu le soucis.
Vagrant was unable to mount VirtualBox shared folders; /sbin/mount.vboxsf: mounting failed with the error: No such device
Erreur complète:
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem « vboxsf » is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
/sbin/mount.vboxsf: mounting failed with the error: No such device
Solution trouvée ici (/sbin/mount.vboxsf: mounting failed with the error: No such device): j’ai downgradé ma version de Virtual Box à la version 5.2.22 (j’utilisais la version 6.0.0).
Failed to restart apache2.service: Unit apache2.service failed to load: No such file or directory.
Solution: installer apache2 à la main dans le Vagrant.
|
vagrant ssh password: vagrant sudo apt-get install apache2 exit |