Call to virStorageVolGetInfo failed: cannot stat file #107
Comments
|
@Freeaqingme can you please show output of
? |
Freeaqingme
commented
Dec 16, 2013
|
That gives me:
|
|
looks like in Vagrantfile you define not existed image |
Freeaqingme
commented
Dec 16, 2013
|
@pronix What do you mean? It tries to look up a (not per se) related .img file that no more exists. If I rename the folder of my Vagrant file, and touch that .img file, I can spawn a new vps. But I shouldn't have to, and it's hard to explain to users. |
|
show please Vagrantfile |
Freeaqingme
commented
Dec 16, 2013
|
This is my Vagrantfile:
|
|
which images you have in /var/lib/libvirt/images/ and are you sure than you use this path for store images(/var/lib/libvirt/images/) ? |
Freeaqingme
commented
Dec 16, 2013
|
The problem is that if the puppet_puppet0.img file isn't in that directory, no single box will start. If I touch that file, it will. Even though I did a full vagrant destroy in my puppet/ directory. Edit: And yes, those paths are correct. |
|
ok. will wait pull request from you. |
Freeaqingme
commented
Dec 16, 2013
|
I'm sorry, but I'm not sure how to fix this... Even after I do vagrant destroy, somewhere a reference to the box stays behind. But I can't locate it. |
|
I have this problem too... Not sure what causes it, but a workaround is to restart libvirtd... |
Freeaqingme
commented
Dec 16, 2013
|
"but a workaround is to restart libvirtd..." You, sir, are awesome! This tip will save me many, many reinstalls ;) |
|
You're welcome, but it would be awesome if we could fix this for GOOD! Restarting libvirtd every 5 minutes is annoying, not practical! On Mon, Dec 16, 2013 at 3:07 PM, Dolf Schimmel notifications@github.comwrote:
|
Freeaqingme
commented
Dec 16, 2013
|
I had been searching on the filesystem for a reference to the deleted volume, but couldn't find any. Turns out I wasn't looking in the right place; the reference is kept in-memory.
Still shows the shouldbe-deleted volume. Removing it seems to fix (needs further testing) the issue of Vagrant not starting any more:
I think that means that this issue now entails two things:
|
|
Indeed it's because it's kept in memory... It could be that something in the code is just "rm"-ing the file as I said above. In any case, I haven't gone source diving, but if someone takes the plunge, I'd sure appreciate it. Cheers |
|
sorry,it is not vagrant issue. |
pronix
closed this
Dec 18, 2013
|
@pronix Not sure why this isn't a vagrant-libvirt issue... It is... |
Freeaqingme
commented
Dec 18, 2013
|
@pronix What is there to configure on libvirt that I could have missed? Libvirt has been installed and works just fine outside of vagrant-libvirt. |
|
something remove your vm images. vagrant-libvirt not responsible for store files |
gjunp
commented
Aug 4, 2014
|
I have this problem too... after I reinstalled the virtualbox,but the "vagrant box list" works |
Freeaqingme commentedDec 16, 2013
Hi folks,
From time to time, when I reboot something it seems a vagrant box dies. Not really big issue since I can simply destroy the vagrant box, and then restart it. Except, I keep getting this all the time:
How should I fix? I'm posting it here because the error says to 'please report this as a bug'.
Thanks.