VirtualBox

Changeset 68091 in vbox


Ignore:
Timestamp:
Jul 24, 2017 11:07:27 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117134
Message:

IUnattended: Added more attributes and a detection method, all stubs currently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r68071 r68091  
    37673767  <interface
    37683768    name="IUnattended" extends="$unknown"
    3769     uuid="663fc677-ca00-4a24-b940-8741f76a898a"
     3769    uuid="68d72757-773b-4c13-9956-b5aa0a28e4a7"
    37703770    wsmap="managed"
    37713771    reservedMethods="4" reservedAttributes="16"
     
    37793779      <ol>
    37803780        <li>Call <link to="IMachine::createUnattendedInstaller"/> to create the object</li>
    3781         <li>Set the IUnattended attributes.</li>
     3781        <li>Set the relevant IUnattended attributes.</li>
    37823782        <li>Call <link to="IUnattended::prepare"/> for the object to check the
    37833783            attribute values and create an internal installer instance.</li>
     
    38613861    </attribute>
    38623862
     3863    <attribute name="timeZone" type="wstring">
     3864      <desc>
     3865        The guest time zone specifier.
     3866
     3867        This is unfortunately guest OS specific.
     3868
     3869        Windows XP and earlier takes the index number from this table:
     3870        https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
     3871
     3872        Windows Vista and later takes the time zone string from this table:
     3873        https://technet.microsoft.com/en-us/library/cc749073(v=ws.10).aspx
     3874
     3875        Linux usually takes the TZ string from this table:
     3876        https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
     3877
     3878        The default is currently UTC/GMT, but this may change to be same as
     3879        the host later.
     3880
     3881        TODO: Investigate automatic mapping between linux and the two windows
     3882              time zone formats.
     3883        TODO: Take default from host (this requires mapping).
     3884      </desc>
     3885    </attribute>
     3886
     3887    <attribute name="locale" type="wstring">
     3888      <desc>
     3889        The 5 letter locale identifier, no codesets or such.
     3890
     3891        The format is two lower case language letters (ISO 639-1), underscore ('_'),
     3892        and two upper case country letters (ISO 3166-1 alpha-2).  For instance
     3893        'en_US', 'de_DE', or 'ny_NO'.
     3894
     3895        The default is taken from the host if possible, with 'en_US' as fallback.
     3896      </desc>
     3897    </attribute>
     3898
     3899    <attribute name="country" type="wstring">
     3900      <desc>
     3901        The 2 upper case letter country identifier, ISO 3166-1 alpha-2.
     3902
     3903        This is used for mirrors and such.
     3904
     3905        The default is taken from the host when possible, falling back on
     3906        <link to="IUnattended::locale"/>.
     3907      </desc>
     3908    </attribute>
     3909
     3910    <attribute name="proxy" type="wstring">
     3911      <desc>
     3912        Proxy incantation to pass on to the guest OS installer.
     3913
     3914        This is important to get right if the guest OS installer is of the type
     3915        that goes online to fetch the packages (e.g. debian-*-netinst.iso) or
     3916        to fetch updates during the install process.
     3917
     3918        Format: [schema=]schema://[login@password:]proxy[:port][;...]
     3919
     3920        The default is taken from the host proxy configuration (once implemented).
     3921      </desc>
     3922    </attribute>
     3923
     3924    <attribute name="packageSelectionAdjustments" type="wstring">
     3925      <desc>
     3926        Guest OS specific package selection adjustments.
     3927
     3928        This is a semicolon separated list of keywords, and later maybe guest OS
     3929        package specifiers.  Currently the 'minimal' is the only recognized value,
     3930        and this only works with a selection of linux installers.
     3931      </desc>
     3932    </attribute>
     3933
    38633934    <attribute name="auxiliaryBasePath" type="wstring">
    38643935      <desc>
     
    38763947      <desc>
    38773948        The image index on installation CD/DVD used to install.
     3949
    38783950        Used only with Windows installation CD/DVD:
    38793951        https://technet.microsoft.com/en-us/library/cc766022%28v=ws.10%29.aspx
     
    39243996    </attribute>
    39253997
    3926     <!-- See no point in having this any more.
    3927     <method name="loadSettings">
    3928       <desc>
    3929         Loads attributes from a file.
    3930 
    3931         The internal rule is "attribute = value" like for instance
    3932         "isoPath = /correct/path/to/the/iso".  One line - one parameter.
    3933       </desc>
    3934 
    3935       <param name="filename" type="wstring" dir="in">
    3936         <desc>File path.</desc>
    3937       </param>
    3938     </method>
    3939     -->
     3998    <attribute name="extraInstallKernelParameters" type="wstring">
     3999      <desc>
     4000        Extra kernel arguments passed to the install kernel of some guests.
     4001
     4002        This is currently only picked up by linux guests.  The exact parameters
     4003        are specific to the guest OS being installed of course.
     4004
     4005        After <link to="IUnattended::prepare"/> is called, it can be read to see
     4006        which parameters are being used.
     4007      </desc>
     4008    </attribute>
     4009
     4010    <attribute name="detectedOSTypeId" type="wstring" readonly="yes">
     4011      <desc>
     4012        The detected OS type ID (<link to="IGuestOSType::id"/>).
     4013
     4014        Set by <link to="IUnattended::detectIso"/> or <link to="IUnattended::prepare"/>.
     4015
     4016        Not yet implemented.
     4017      </desc>
     4018    </attribute>
     4019
     4020    <attribute name="detectedOSVersion" type="wstring" readonly="yes">
     4021      <desc>
     4022        The detected OS version string.
     4023
     4024        Set by <link to="IUnattended::detectIso"/> or <link to="IUnattended::prepare"/>.
     4025
     4026        Not yet implemented.
     4027      </desc>
     4028    </attribute>
     4029
     4030    <attribute name="detectedOSFlavor" type="wstring" readonly="yes">
     4031      <desc>
     4032        The detected OS flavor (e.g. server, desktop, etc)
     4033
     4034        Set by <link to="IUnattended::detectIso"/> or <link to="IUnattended::prepare"/>.
     4035
     4036        Not yet implemented.
     4037      </desc>
     4038    </attribute>
     4039
     4040    <attribute name="detectedOSHints" type="wstring" readonly="yes">
     4041      <desc>
     4042        Space separated list of other stuff detected about the OS and the
     4043        installation ISO.
     4044
     4045        Set by <link to="IUnattended::detectIso"/> or <link to="IUnattended::prepare"/>.
     4046
     4047        Not yet implemented.
     4048      </desc>
     4049    </attribute>
     4050
     4051    <method name="detectIsoOS">
     4052      <desc>
     4053        Detects the OS on the ISO given by <link to="IUnattended::isoPath"/> and sets
     4054        <link to="IUnattended::detectedOSTypeId"/>, <link to="IUnattended::detectedOSVersion"/>
     4055        <link to="IUnattended::detectedOSFlavor"/>, and <link to="IUnattended::detectedOSHints"/>.
     4056
     4057        Not yet implemented.
     4058      </desc>
     4059    </method>
    39404060
    39414061    <method name="prepare">
     
    39444064
    39454065        This will instantiate the installer based on the guest type associated
    3946         with the machine (see <link to="IMachine::OSTypeId"/>).
     4066        with the machine (see <link to="IMachine::OSTypeId"/>).  It will also
     4067        perform <link to="IUnattended::detectIsoOS"/> if not yet called on the
     4068        current <link to="IUnattended::isoPath"/> value.
    39474069      </desc>
    39484070    </method>
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette