Disk Image Info: What is the OS of a Disk Image?

Afternoon, I have three .qcow2 images I have forgotten what OS I installed them with. I thought maybe qemu-img info name.qcow2 would give me this information. Is there any tool that would be able to display what the image’s OS that was installed?

I’m hoping there is, so I would not have to create the VM with the wrong template and redo it after knowing the template is wrong.

Thanks!..

I have never had a need to use it but this might be what you are looking for https://libguestfs.org/

1 Like