Discussion:
ID global zone from sub-zone
(too old to reply)
Gary
2014-11-04 16:32:38 UTC
Permalink
Is there a way to identify the host system (global zone) from a
sub-zone?

The only way I've figured out so far is to look for the same MAC address

in arp tables.

Thanks,
--Gary
Casper H.S. Dik
2014-11-04 16:42:23 UTC
Permalink
Post by Gary
Is there a way to identify the host system (global zone) from a
sub-zone?
The only way I've figured out so far is to look for the same MAC address
in arp tables.
No. And looking for the same MAC address will not work in exclusive
IP stacks, I would think.

Casper
Heinz Müller
2014-11-04 19:34:08 UTC
Permalink
Post by Gary
Is there a way to identify the host system (global zone) from a
sub-zone?
The only way I've figured out so far is to look for the same MAC address
in arp tables.
Thanks,
--Gary
How about virtinfo ?
Gary
2014-11-05 14:06:17 UTC
Permalink
Nice thought, but running it in a sub-zone results in:
# virtinfo
virtinfo can only be run from the global zone
Post by Heinz Müller
Post by Gary
Is there a way to identify the host system (global zone) from a
sub-zone?
The only way I've figured out so far is to look for the same MAC address
in arp tables.
Thanks,
--Gary
How about virtinfo ?
Casper H.S. Dik
2014-11-05 15:40:13 UTC
Permalink
Post by Gary
# virtinfo
virtinfo can only be run from the global zone
That is no longer true in Solaris 11.2:
kernel-zone$ virtinfo
NAME CLASS
kernel-zone current
non-global-zone supported

non-global-zone$ virtinfo
NAME CLASS
non-global-zone current

bare-metal$ virtinfo
NAME CLASS
non-global-zone supported
kernel-zone supported

Casper
Heinz Müller
2014-11-05 17:55:26 UTC
Permalink
Post by Gary
# virtinfo
virtinfo can only be run from the global zone
Post by Heinz Müller
Post by Gary
Is there a way to identify the host system (global zone) from a
sub-zone?
The only way I've figured out so far is to look for the same MAC address
in arp tables.
Thanks,
--Gary
How about virtinfo ?
Did you give it a try?

virtinfo -a
Gary
2014-11-06 02:50:45 UTC
Permalink
Yes, I got:

virtinfo can only be run from the global zone

Casper H.S. Dick indicated it works in Solaris 11.1, but I'm currently
stuck with 10.
Post by Heinz Müller
Post by Gary
# virtinfo
virtinfo can only be run from the global zone
Post by Heinz Müller
Post by Gary
Is there a way to identify the host system (global zone) from a
sub-zone?
The only way I've figured out so far is to look for the same MAC address
in arp tables.
Thanks,
--Gary
How about virtinfo ?
Did you give it a try?
virtinfo -a
Loading...