Thanks Martin, I'll take a look at hvctl if it can be used in my program to detect ldom environment.
Subject: Re: [ldoms-discuss] Is It a Guest Domain From: [email protected] Date: Tue, 10 Aug 2010 13:37:30 +0200 CC: [email protected] To: [email protected] On a T-Series box a stand-alone system technically speaking is a control domain that does not control anything else (but it would be the one to do the job once you configure other guest) That said, yes, the hvctl device is also present on a stand alone T class system. RgdsMartin On Aug 10, 2010, at 12:21 PM, JoeBilish wrote:Hi Martin, Thanks for your answer. Does "hvctl" device exist in a stand-alone system? We need to detect the stand-alone system also. No, we just want to know if the program is running within a guest domain. Subject: Re: [ldoms-discuss] Is It a Guest Domain From: [email protected] Date: Tue, 10 Aug 2010 12:06:35 +0200 CC: [email protected] To: [email protected] 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? RegardsMartin 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 <Grafik1.gif> 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 <green-for-email-sig_0.gif>Oracle is committed to developing practices and products that help protect the environment 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 Oracle is committed to developing practices and products that help protect the environment
<<attachment: Grafik1.gif>>
<<attachment: green-for-email-sig_0.gif>>
_______________________________________________ ldoms-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/ldoms-discuss
