aquarium icon indicating copy to clipboard operation
aquarium copied to clipboard

libvirt storage caches stale box images

Open tserong opened this issue 3 years ago • 3 comments

It looks like I didn't quite finish the job in #256. Even though an updated Vagrant box is added, when you vagrant up, somehow the image in libvirt's storage isn't updated to match the new box. No idea what's missing here, but I figured I'd better open an issue immediately so I didn't forget about it :-/

tserong avatar Mar 10 '21 12:03 tserong

Oh FFS, turns out this is an 8 year old issue (see https://github.com/vagrant-libvirt/vagrant-libvirt/issues/85)

tserong avatar Mar 23 '21 09:03 tserong

The manual solution is to remove the volume from libvirt with something like virsh vol-delete --pool default aquarium_vagrant_box_image_0.img

tserong avatar Mar 23 '21 09:03 tserong

If you're seeing something like:

$ virsh vol-delete --pool default aquarium_vagrant_box_image_0.img 
error: failed to get pool 'default'
error: Storage pool not found: no storage pool with matching name 'default'

it might be worth trying:

$ sudo virsh vol-delete --pool default aquarium_vagrant_box_image_0.img

s0nea avatar Apr 14 '21 07:04 s0nea