VM has become 'inaccessible' - Vagrant no

2019-03-09 08:22发布

For some reason this morning when I run 'vagrant up' I get the following error (this has worked absolutely fine for over a year)

Your VM has become "inaccessible". Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly recover from. Please open VirtualBox and clear out your inaccessible virtual machines or find a way to fix them.

I could try removing my existing .vagrant folder and doing a vagrant up but that will take forever on our very slow internet speeds - can anyone suggest how to fix this quickly?

9条回答
看我几分像从前
2楼-- · 2019-03-09 08:34

VirtualBox Manager will likely give you a bit more useful information, for example in my case it reported that the .vbox file did not exist.

After taking a look the problem was indeed that the file didn't exist - something had renamed it to x.vbox-tmp (shutting the PC down with the VM still running maybe?)

I copied the x.vbox-prev file to x.vbox and tried booting the VM again and everything worked fine.

查看更多
Fickle 薄情
3楼-- · 2019-03-09 08:36

this works for me:

In my "C:\Users{user}\VirtualBox VMs{vm-id}" folder are two files

  • {vm-id}.vbox-prev
  • {vm-id}.vbox-tmp

Renaming from "{vm-id}.vbox-tmp" to "{vm-id}.vbox" solved my problem and i can call "vagrant up"

查看更多
等我变得足够好
4楼-- · 2019-03-09 08:40

Nothing here worked for me.

  1. I deleted (or renamed see first comment) all files from

C:\Users[YourNameHere].VirtualBox

  1. Run vagrant again:

    vagrant up

Now it's up.

查看更多
迷人小祖宗
5楼-- · 2019-03-09 08:41

I had to rename [vm-id].vbox-tmp (on VirtualBox VMs) to [vm-id].vbox. After that, without delete the .vagrant folder, I could run vagrant up and it worked very well.

查看更多
一纸荒年 Trace。
6楼-- · 2019-03-09 08:42

You can simply delete the .vagrant folder from your project folder and run vagrant up again.

查看更多
老娘就宠你
7楼-- · 2019-03-09 08:49

My problem was the same, but the fix was quite different... my VMs are stored on a network drive, accessible by NFS share. The remote drive had failed to come up after a reboot, so the VMs weren't accessible. Took me a while to realise the reason, and meantime hunted all over SO without a solution.

Then I realised, facepalmed, mounted the paths, and it all worked.

So in a nutshell, it was a path issue.

I felt I should include it here in case it helps someone in the same boat.

查看更多
登录 后发表回答