New in libguestfs 1.12: display operating system icon from virt-inspector

In this series of posts I’ll be looking at what’s new in the forthcoming release of libguestfs 1.12.

For many operating system types, virt-inspector can now provide an OS icon/logo. The icon is actually grabbed from inside the virtual machine during inspection. It’s done this way to avoid trademark issues.

You can display the icon from the XML using a great little tool called XML Starlet. Here’s how:

# virt-inspector -d FedoraGuest > fedora.xml
# xmlstarlet sel -t -v '//icon' < fedora.xml |
    base64 -i -d |
    display -

Partly related to this: there’s a new display command in guestfish, which lets you display icons and images from any guest:

# guestfish --ro -i -d FedoraRawhidex64
><fs> display /usr/share/icons/hicolor/256x256/apps/fedora-logo-icon.png
About these ads

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s