On Wed, Aug 8, 2018 at 2:52 AM Hari Prasanth Loganathan <hariprasanth.l@msystechnologies.com> wrote:
Hi Nir,

Thanks for your response.

I tried for linux iso files and I am able to get the OS with version like below,

[root@ovirtadmin iso]# iso-info ubuntu-18.04-desktop-amd64.iso
iso-info version 0.92 x86_64-redhat-linux-gnu
Copyright (c) 2003-2005, 2007-2008, 2011-2013 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
ISO 9660 image: ubuntu-18.04-desktop-amd64.iso
Preparer    : XORRISO-1.2.4 2012.07.20.130001, LIBISOBURN-1.2.4, LIBISOFS-1.2.4, LIBBURN-1.2.4
Volume      : Ubuntu 18.04 LTS amd64
Joliet Level: 3

The creator of his iso file cares about users...
 
But when I try for windows, I didn't get the OS and version,

iso-info -d -i windows.iso
iso-info version 0.92 x86_64-redhat-linux-gnu
Copyright (c) 2003-2005, 2007-2008, 2011-2013 R. Bernstein
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
__________________________________
ISO 9660 image: windows.iso 
Application : CDIMAGE 2.54 (01/01/2005 TM)
Preparer    : MICROSOFT CORPORATION, ONE MICROSOFT WAY, REDMOND WA 98052, (425) 882-8080
Publisher   : MICROSOFT CORPORATION
Volume      : GSP1RMCPRXFRER_EN_DVD
Volume Set  : GSP1RMCPRXFRER_EN_DVD
No Joliet extensions

The creator of this iso clearly does not :-)
 


Is there a tool which tells us like 'windows 7', 'windows 10' like that?

I don't have any idea.

Nir
 


On Wed, Aug 8, 2018 at 3:32 AM, Nir Soffer <nsoffer@redhat.com> wrote:
On Tue, Aug 7, 2018 at 1:59 PM Hari Prasanth Loganathan <hariprasanth.l@msystechnologies.com> wrote:
Hi Team,

I have few ISO images, Is there a utility in oVirt which tells us which image version it is (like windows / linux version)?

What do you mean by "image version"?

I think we keep only the image name - either the file name on ISO domain, or the
disk alias/description when you upload ISO to data domain.

There are standard tools for ISO files, maybe one of them can help?

Here is for example isoinfo (provided by genisoimage package)

$ isoinfo -d -i Fedora-Server-dvd-x86_64-28-1.1.iso 
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: Fedora-S-dvd-x86_64-28
Volume set id: 
Publisher id: 
Data preparer id: 
Application id: GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE (C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM
Copyright File id: 
Abstract File id: 
Bibliographic File id: 
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 1417496
El Torito VD version 1 found, boot catalog is in sector 499
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found
Eltorito validation header:
    Hid 1
    Arch 0 (x86)
    ID ''
    Key 55 AA
    Eltorito defaultboot header:
        Bootid 88 (bootable)
        Boot media 0 (No Emulation Boot)
        Load segment 0
        Sys type 0
        Nsect 4
        Bootoff 48C5B 298075

If you think oVirt should provide such info in the UI or via the SDK, please open
bug describing the use case.

Nir


DISCLAIMER - MSysTechnologies LLC

This email message, contents and its attachments may contain confidential, proprietary or legally privileged information and is intended solely for the use of the individual or entity to whom it is actually intended. If you have erroneously received this message, please permanently delete it immediately and notify the sender. If you are not the intended recipient of the email message,you are notified strictly not to disseminate,distribute or copy this e-mail.E-mail transmission cannot be guaranteed to be secure or error-free as Information could be intercepted, corrupted, lost, destroyed, incomplete or contain viruses and MSysTechnologies LLC accepts no liability for the contents and integrity of this mail or for any damage caused by the limitations of the e-mail transmission.