Ask Your Question

Manually insert an image

asked 2015-01-12 12:11:19 -0500

patrickt33 gravatar image

I'll try to keep this short. We had a running instance of openstack that was pretty unstable. I forget the distro, it doesn't matter. While I was told I could nuke everything, I did copy off of a couple of qcow2 images just in case. Well, now someone is asking for one of them, but I can't get it to boot. Note that this wasn't a snapshot, it was just straight copy of the instance from directory where openstack stores the running images. The error I get is "nova image is unacceptable fmt=qcow2". After some googling, it appears to be missing the backing file. I've tried multiple times to try to convert the image, but with no success. Is there a way to just manually insert the image into the matrix, and just manipulate the DB backend to make openstack aware of it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-13 13:04:45 -0500

alop gravatar image

You're most likely out of luck here. If you copied the disk file from /var/lib/nova/instances/{UUID}, you got the COW clone of the original image, missing the backing file. If you need the actual VM that was running, it's likely gone. Long story short, if you need to migrate a VM, take a snapshot, and copy the snapshot file out of glance.

edit flag offensive delete link more


That's what I was afraid of. Can you even mount it somehow to recover data?

patrickt33 gravatar imagepatrickt33 ( 2015-01-14 07:53:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-12 12:11:19 -0500

Seen: 336 times

Last updated: Jan 13 '15