Hi All,

Our program is required to detect if it's running inside a guest domain for 
license purpose.
And I find some useful informations at 
http://hub.opensolaris.org/bin/download/Community+Group+ldoms/files/introtoldoms3usenix.pdf

According to that document, we can check the device under /etc/path_to_inst to 
detect a guest domain.
Then my method is:

if  there is "channel-devices" 
then
          return guest_domain.
else
  if all the "network" are "virtual-devices"
         return guest_domain
  then

does this make sense?  Is this enough  to say this is a guest domain? Any 
things wrong here you can see?

Thanks.
                                          
_______________________________________________
ldoms-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss

Reply via email to