บทความ

กำลังแสดงโพสต์จาก มกราคม, 2018

แก้ปัญหาเมื่อ Vagrant VM ที่ทำงานอยู่ หาย!!

เคยกันมั้ยครับ อยู่ๆ Vagrant VM หายไปดื่อๆ ระหว่างทำงาน Develop environment ที่ setup ไว้หายไป ต้องเสียเวลาลง LAMP ใหม่ เหตุการณ์นี้ผมก็เจอบ่อยๆ เหมือนกัน เรามาดูวิธีแก้ไขกันดีกว่า โดยการแก้ปัญหานี้ก็มีคนที่ได้บอกวิธีไว้แล้ว ใน GitHub อันนี้เป็นวิธีเต็มๆ I figured out my own workaround: Go to C:\Users\VirtualBox VMs Open up the .vbox for the good VM. Start the VM inside VirtualBox, and then shut it down. It should now be listed via "VBoxManage list vms". Copy the UUID inside the {}s. In the project directory, run this command: echo -n > .vagrant/machines/default/virtualbox/id e.g., echo -n b5e14d9a-f416-4f2f-a989-aa4698b3613b > .vagrant/machines/default/virtualbox/id Now "vagrant up" should work as normal, but it may fail with: default: Warning: Connection timeout. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. Retrying... default: Warning: Authentication failure. R