You better check for the existence of the "hvctl" device. It is only present in the control domain, if it's not there you are running inside a non-control domain.

Or are you looking for guest that only have virtual I/O access?

Regards
Martin


On Aug 10, 2010, at 11:54 AM, JoeBilish wrote:

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

  



Martin Müller | Principal Sales Consultant
Phone:  +49  2102 4511 740  | Mobile: +49 172 861 8483 | Fax: +49 2102 499516
Oracle Hardware Presales

ORACLE Deutschland B.V. & Co. KG | Brandenburgerstr. 2  | 40880 Ratingen 

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Rijnzathe 6, 3454PV De Meern, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven

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

Reply via email to