Bug 1144137 - virt-inspector fails on Minix 3 guest
Summary: virt-inspector fails on Minix 3 guest
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-18 18:43 UTC by Richard W.M. Jones
Modified: 2021-04-19 10:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
virt-inspector -v -x output (78.19 KB, text/plain)
2014-09-18 18:43 UTC, Richard W.M. Jones
no flags Details

Description Richard W.M. Jones 2014-09-18 18:43:44 UTC
Created attachment 939008 [details]
virt-inspector -v -x output

Description of problem:

Libguestfs fails to inspect Minix 3.  Note that Minix 3 uses
a NetBSD userspace, and libguestfs spots this (however probably
it should be more specialized and know specifically about Minix).

It generally fails because we don't map device names such
as /dev/c0d0p0s1 into libguestfs canonical device names.

Version-Release number of selected component (if applicable):

1.24.5

Steps to Reproduce:
1. virt-inspector -v -x -a minix

See attachment for output.

Additional info:

Reported by Assaf Gordon
https://www.redhat.com/archives/libguestfs/2014-September/msg00115.html

Comment 1 Pino Toscano 2014-09-19 14:43:47 UTC
(In reply to Richard W.M. Jones from comment #0)
> Created attachment 939008 [details]
> virt-inspector -v -x output
> 
> Description of problem:
> 
> Libguestfs fails to inspect Minix 3.  Note that Minix 3 uses
> a NetBSD userspace, and libguestfs spots this (however probably
> it should be more specialized and know specifically about Minix).

Note that since commit aeb879247456c619040d3a01a47a08ffa14c03f7 (so libguestfs >= 1.27.15), the NetBSD detection checks for /netbsd, which of course does not exist on Minix (at least on the provided image). This means that it is no more detected as NetBSD, but as Linux (since it matches the generic checks for it).

Comment 2 Pino Toscano 2014-09-23 08:53:29 UTC
https://github.com/libguestfs/libguestfs/commit/5b65d05d5a31415aaa6f284f73da745e0ee0408a
(part of libguestfs >= 1.27.53) introduces a basic introspection support for Minix, recognising the base OS, its version, and its hostname.

What still can be done is resolving the names of the Minix devices into appliance devices; http://www.minix3.org/manpages/html4/controller.html provides an explanation of them.


Note You need to log in before you can comment on or make changes to this bug.