Dan,

Thanks, that's helpful too.

So I try "systemd-detect-virt" on a zLinux and get only get "zvm", which is
a start but not too helpful.

What I'm learning is that /proc/sysinfo (and thus STSI) is arguably a
treasure trove of information, because (along with vmcp) can determine the
hierarchy of hardware and hipervisors as such:

└── systems
    ├── CEC:0FF28
    │   ├── LPAR:VM23
    │   │   └── zVM:VM23
    │   │       ├── SSIcluster:none
    │   │       ├── devices
    │   │       ├── virtualMachine:LNXADM32

I'm hoping dmidecode will provide the equivalent on Lintel.

    -Mike M

On Mon, Mar 26, 2018 at 10:32 AM, Dan Horák <dho...@redhat.com> wrote:

> On Mon, 26 Mar 2018 10:20:18 -0400
> Michael MacIsaac <mike99...@gmail.com> wrote:
>
> > Christian,
> >
> > Thanks, that helps.  I also found "dmidecode" after searching for
> > "systemd-detect-virt".
>
> an advantage of systemd-detect-virt is that it's multi-platform, while
> dmidecode is usable on x86 and aarch64 only
>
> There is also "virt-what" tool. And "lscpu" returns also info about
> hypervisor.
>
>
>                 Dan
>
> > I'll look into them...
> >
> >     -Mike M
> >
> > On Mon, Mar 26, 2018 at 9:52 AM, Christian Borntraeger <
> > borntrae...@de.ibm.com> wrote:
> >
> > > On 03/26/2018 03:38 PM, Michael MacIsaac wrote:
> > > > Thanks to all who replied.
> > > >
> > > > So does anyone know how to query the hipervisor hierarchy, or if
> > > > a Lintel is running on "bare metal"?
> > >
> > > systemd-detect-virt
> > >
> > > should work.
> > >
> > > >
> > > >     -Mike
> > > >
> > > > On Mon, Mar 26, 2018 at 9:17 AM, Christian Borntraeger <
> > > > borntrae...@de.ibm.com> wrote:
> > > >
> > > >> Yes, /proc/sysinfo is a method to expose parts of the STSI
> > > >> instruction
> > > to
> > > >> unpriviledged code.
> > > >> This is very z-specific.
> > > >>
> > > >> On 03/26/2018 02:38 PM, Michael MacIsaac wrote:
> > > >>> Hello list,
> > > >>>
> > > >>> Is /proc/sysinfo a zLinux thing only?
> > > >>>
> > > >>> I got on a Lintel VMWare virtual machine and was surprised to
> > > >>> not see
> > > >> that
> > > >>> file.  If it's not part of Lintel, how do they query their
> > > >>> hipervisor hierarchy?
> > > >>>
> > > >>> Thanks.
> > > >>>
> > > >>> --
> > > >>>      -Mike MacIsaac
> > > >>>
> > > >>> ------------------------------------------------------------
> ----------
> > > >>> For LINUX-390 subscribe / signoff / archive access instructions,
> > > >>> send email to lists...@vm.marist.edu with the message: INFO
> > > >>> LINUX-390
> > > >> or visit
> > > >>> http://www.marist.edu/htbin/wlvindex?LINUX-390
> > > >>> ------------------------------------------------------------
> ----------
> > > >>> For more information on Linux on System z, visit
> > > >>> http://wiki.linuxvm.org/
> > > >>>
> > > >>
> > > >> ------------------------------------------------------------
> ----------
> > > >> For LINUX-390 subscribe / signoff / archive access instructions,
> > > >> send email to lists...@vm.marist.edu with the message: INFO
> > > >> LINUX-390
> > > or
> > > >> visit
> > > >> http://www.marist.edu/htbin/wlvindex?LINUX-390
> > > >> ------------------------------------------------------------
> ----------
> > > >> For more information on Linux on System z, visit
> > > >> http://wiki.linuxvm.org/
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > >      -Mike MacIsaac
> > > >
> > > > ------------------------------------------------------------
> ----------
> > > > For LINUX-390 subscribe / signoff / archive access instructions,
> > > > send email to lists...@vm.marist.edu with the message: INFO
> > > > LINUX-390
> > > or visit
> > > > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > > > ------------------------------------------------------------
> ----------
> > > > For more information on Linux on System z, visit
> > > > http://wiki.linuxvm.org/
> > > >
> > >
> > > ----------------------------------------------------------------------
> > > For LINUX-390 subscribe / signoff / archive access instructions,
> > > send email to lists...@vm.marist.edu with the message: INFO
> > > LINUX-390 or visit
> > > http://www.marist.edu/htbin/wlvindex?LINUX-390
> > > ----------------------------------------------------------------------
> > > For more information on Linux on System z, visit
> > > http://wiki.linuxvm.org/
> > >
> >
> >
> >
> > --
> >      -Mike MacIsaac
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to lists...@vm.marist.edu with the message: INFO LINUX-390
> > or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
> > ----------------------------------------------------------------------
> > For more information on Linux on System z, visit
> > http://wiki.linuxvm.org/
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>



-- 
     -Mike MacIsaac

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to