VMware

Add more instance on vmware server.2.0

Posted on Updated on

Iam using VMware server2.0 and I need to add more that 10 instance if I add the 11 instance keyfile will be added and nothing displayed on the tree view, delete a running instance to view the add one, here I got a chance to improve it nothing complicate just edit a configuration file.

Location

/etc/vmware/hostd/config.xml

  <!-- <maxFileNum>20</maxFileNum> -->

Default config.xml

<!-- VMware Host Agent configuration file -->

<config>
<!-- current working directory -->
<workingDir>/var/log/vmware/</workingDir>

<!-- location to examine for configuration files that are needed -->
<defaultConfigPath> /etc/vmware/ </defaultConfigPath>

<!-- location for docroot, plugins, libraries, etc. -->
<defaultInstallPath> /usr/lib/vmware/ </defaultInstallPath>

<!-- stdout for hostd process -->
<!-- <stdoutFile>/var/log/vmware/hostd-stdout.txt</stdoutFile> -->

<!-- stderr for hostd process -->
<!-- <stderrFile>/var/log/vmware/hostd-stderr.txt</stderrFile> -->

<!-- Memory death point for hostd -->
<!-- <hostdStopMemInMB> 250 </hostdStopMemInMB> -->

<!-- Memory watermark for hostd -->
<!-- <hostdWarnMemInMB> 180 </hostdWarnMemInMB> -->

<!-- Mode in which hostd runs: defines product type -->
<hostdMode> server </hostdMode>

<!-- Frequency of memory checker -->
<!-- <memoryCheckerTimeInSecs> 30 </memoryCheckerTimeInSecs> -->

<log>
<!-- controls where rolling log files are stored -->
<directory>/var/log/vmware/</directory>

<!-- name of log file -->
<name>hostd</name>

<!-- If true, redirect stderr to stdout. stdout inherits from
parent process. Log() (limited to default log level (see below))
will then be written to stdout. If false, stderr and stdout
are redirected to /dev/null on linux. On win32 this option is
not used.
At runtime, see vimsh internalsvc/redirect_stdout|err
-->
<outputToConsole>true</outputToConsole>

<!-- If true, logs to syslog -->
<outputToSyslog>false</outputToSyslog>

<!-- syslog configuration. Only used if outputToSyslog is true. -->
<syslog>
<!-- syslog identifier to use when logging -->
<ident>Hostd</ident>

<!-- syslog facility to use when logging -->
<facility>local4</facility>
</syslog>

<!-- default size(in bytes) of each log file before rolling over to next -->
<!-- <maxFileSize>5242880</maxFileSize> -->

<!-- default number of log files to rotate amongst -->
<!-- <maxFileNum>10</maxFileNum> -->

<!-- default log level -->
<level>info</level>
</log>

<!-- Log level configuration (Rules are applied in order)
<level id = "0">
<logName> App </logName>
<logLevel> info </logLevel>
<prefix> true </prefix>
</level>
<level id = "1">
<logName> BaseLibs </logName>
<logLevel> quiet </logLevel>
<prefix> false </prefix>
</level>
<level id = "2">
<logName> Vmsvc </logName>
<logLevel> info </logLevel>
<prefix> true </prefix>
</level>
<level id = "3">
<logName> /vmfs/volumes/foo/foo.vmx </logName>
<logLevel> trivia </logLevel>
<prefix> false </prefix>
</level>
-->

<!-- Remove the following node to disable SSL -->
<ssl>
<!-- The server private key file -->
<privateKey>/etc/vmware/ssl/rui.key</privateKey>

<!-- The server side certificate file -->
<certificate>/etc/vmware/ssl/rui.crt</certificate>

<!-- The SSL version to use -->
<!-- <sslVersion>all</sslVersion> -->
</ssl>

<!-- <traceFileDest>/var/log/vmware/hostd/trace.log</traceFileDest> -->

<!-- Directory on the Console OS accessible to the DatastoreBrowser -->
<browsableConsoleDir>/vmimages</browsableConsoleDir>

<!-- Location of vm inventory file on legacy host -->
<!-- <legacyVmInventory>/etc/vmware/vm-list</legacyVmInventory> -->

<!-- Global Foundry config settings (accepts long, string and bool values) -->
<!-- <vix> -->
<!-- <longOpts> -->
<!-- <debugLevel>9</debugLevel> -->
<!-- </longOpts> -->
<!-- <stringOpts> -->
<!-- </stringOpts> -->
<!-- <boolOpts> -->
<!-- </boolOpts> -->
<!-- </vix> -->

<vmacore>
<pluginBaseDir>/usr/lib/vmware/hostd/</pluginBaseDir>
<!-- default thread pool configuration for Posix impl -->
<threadPool>
<IoMin>2</IoMin>
<IoMax>200</IoMax>
<TaskMin>2</TaskMin>
<TaskMax>20</TaskMax>
<MaxThreads>50</MaxThreads>
<MaxFdsPerThread> 2048 </MaxFdsPerThread>
<NumKeepAlive>8</NumKeepAlive>
<ThreadCheckTimeSecs>600</ThreadCheckTimeSecs>
<ThreadStackSizeKb>256</ThreadStackSizeKb>
</threadPool>
<ssl>
<doVersionCheck> false </doVersionCheck>
<libraryPath>/usr/lib/vmware/</libraryPath>
</ssl>

<vmdb>
<!-- maximum number of VMDB connections allowed -->
<!-- <maxConnectionCount>100</maxConnectionCount> -->
</vmdb>

<!-- enable plugin loading -->
<loadPlugins> true </loadPlugins>

<!-- enable/disable the dynamic loading of plugins -->
<loadDynamicPlugins> false </loadDynamicPlugins>

<!-- should the RefTracker be enabled? -->
<!-- <useRefTracker>false</useRefTracker> -->

<!-- Enable/disable the stack tracer -->
<!-- <useStackTracer>false</useStackTracer> -->
</vmacore>

<plugins>
<vimsvc>
<path>libvimsvc.so</path>

<!-- default administrator principal -->
<!-- <defaultPrincipal>root</defaultPrincipal> -->

<!-- default file used to persist ACL data -->
<!-- <authorization>/etc/vmware/hostd/authorization.xml</authorization> -->

<!-- default setting for performing authorization checks -->
<enableAuthCheck>true</enableAuthCheck>

<!-- default setting for where vmware-hostd-ticket directory is created -->
<!-- <localTicketParentDir>/var/run</localTicketParentDir> -->

<!-- default setting for life time of a local ticket -->
<!-- <localTicketLifeSecs>10</localTicketLifeSecs> -->

<!-- default setting for maximum number of times a ticket can be used -->
<!-- <localTicketMaxUse>1</localTicketMaxUse> -->

<!-- time to retain tasks after they complete -->
<!-- <taskRetentionInMins> 10 </taskRetentionInMins> -->

<!-- cleanup interval time between task reaping -->
<!-- <taskCleanupIntervalInMins> 1 </taskCleanupIntervalInMins> -->

<!-- maximum number of events to store -->
<!-- <maxEvents>1000</maxEvents> -->

<!-- development build default setting for license mockup -->
<licenseMockup>true</licenseMockup>

<!-- cloning of objects by i18nFilter -->
<!-- <i18nCloneDisabled> true </i18nCloneDisabled> -->
<license>
<!-- location of the read-write flexlm configuration file -->
<!-- <config> /etc/vmware/license.cfg </config> -->
</license>
<userManager>
<!-- Max time in seconds to wait for a subcommand to complete -->
<!-- <subcommandWait> 10 </subcommandWait> -->
</userManager>

</vimsvc>
<hostsvc>
<path>libhostsvc.so</path>

<datastore>
<!-- default datastore inventory-->
<!-- <inventory>/etc/vmware/hostd/datastores.xml</inventory> -->

<!-- default datastore refresh interval in minutes -->
<!-- use 0 to disable the auto refresh -->
<!-- <refreshInterval>0</refreshInterval> -->
</datastore>

<mockup>
<!-- turns mockup impl on/off -->
<enabled>false</enabled>

<!-- default filepath for host info -->
<filepath>/etc/vmware/hostd/mockup-linux.vha</filepath>
</mockup>

<!-- default location of the hostsvc config file -->
<!-- <config>/etc/vmware/hostd/hostsvc.xml</config> -->

<!-- default location of the resource pool config file -->
<!-- <pools>/etc/vmware/hostd/pools.xml</pools> -->

<!-- default location of the host service list -->
<services>/etc/vmware/service/</services>

<storage>
<!-- storage data synchronization policy-->

<!-- policy: invalidate on configuration change (default) -->
<!-- <syncpolicy>invalid_change</syncpolicy> -->

<!-- policy: always fetch data when queried -->
<!-- <syncpolicy>fetch_always</syncpolicy> -->

<!-- policy: fetch data on configuration change -->
<!-- <syncpolicy>fetch_change</syncpolicy> -->
</storage>

<rsrc>
<!-- Refresh interval (in seconds) for root resource pool capacity -->
<!-- <refreshInterval>60</refreshInterval> -->
</rsrc>
<vmfs2upgrade>
<!-- <undoattempts>15</undoattempts> -->
<!-- <timeoutmsec>2000</timeoutmsec> -->
</vmfs2upgrade>

<!-- Controls to enable/disable expressions in the datastore filter -->
<!-- <datastoresystem> -->
<!-- <diskfilter> -->
<!-- <NoUsbDisks>true</NoUsbDisks> -->
<!-- <UsedAsVmRdm>true</UsedAsVmRdm> -->
<!-- </diskfilter> -->
<!-- </datastoresystem> -->

<!-- Controls to enable/disable expressions in the SCSI LUN filter -->
<!-- <scsilunfilter> -->
<!-- <NoUsbDisks>true</NoUsbDisks> -->
<!-- </scsilunfilter> -->

<!-- Controls to enable/disable expressions in the RDM filter -->
<!-- <rdmfilter> -->
<!-- <RdmCapable>true</RdmCapable> -->
<!-- </rdmfilter> -->
<!-- <maxVms> 512 </maxVms> -->
<NetmapFile> /etc/vmware/netmap.conf </NetmapFile>
</hostsvc>
<vmsvc>
<path>libvmsvc.so</path>

<!--
Check for version mismatches against the vmkernel.
This is disabled by default for developers but for all other
users, they must keep their vmkernels upto date.
-->
<checkVersionMismatch> false </checkVersionMismatch>
<!-- <vmDirectory> /home/vmware </vmDirectory> -->
<!-- <maxSnapshotDepth> 32 </maxSnapshotDepth> -->

<!-- Configuration options for quiesced snapshots -->
<quiescedSnap>
<!-- Default pre-freeze command -->
<!-- <preCmd>/usr/sbin/pre-freeze-script</preCmd> -->
<!-- Default post-thaw command -->
<!-- <postCmd>/usr/sbin/post-thaw-script</postCmd> -->

<!-- Pre-freeze command to run on Windows guests -->
<!-- <winPreCmd>C:\Windows\pre-freeze-script.bat</winPreCmd> -->
<!-- Post-thaw command to run on Windows guests -->
<!-- <winPostCmd>C:\Windows\post-thaw-script.bat</winPostCmd> -->

<!-- How long (in seconds) can the VM be frozen? -->
<!-- Valid values are 0 to 3600 -->
<!-- <timeout>15</timeout> -->
</quiescedSnap>

<!-- The maximum number of virtual disks allowed on this host -->
<!-- <maxDisksPerVirtualMachine> 120 </maxDisksPerVirtualMachine> -->

<!-- The timer interval for task updates in microseconds -->
<!-- <taskTimerInterval> 1000000 </taskTimerInterval> -->

<!-- Default user context to use to perform VM operations -->
<!-- <datastorePrincipal>root</datastorePrincipal> -->

<!-- Time interval (in seconds) for VM refresh periodic callback -->
<!-- <vmRefreshInterval>20</vmRefreshInterval> -->

<!-- Virtual machine VMotion parameters -->
<vmotion>
<!-- Timeout for VMotion prepare operation (milliseconds) -->
<!-- <prepareTimeout> 30000 </prepareTimeout> -->

<!-- Timeout for VMotion source initiate operation (milliseconds) -->
<!-- <srcInitiateTimeout> 30000 </srcInitiateTimeout> -->

<!-- Timeout for VMotion destination ID population (milliseconds) -->
<!-- <dstIdTimeout> 120000 </dstIdTimeout> -->
</vmotion>
<!-- <defaultPowerOffType> soft </defaultPowerOffType> -->
<!-- <defaultSuspendType> hard </defaultSuspendType> -->
<!-- <defaultResetType> hard </defaultResetType> -->
<!-- <enableMockup> false </enableMockup> -->
<!-- <numFoundryThreads> 1 </numFoundryThreads> -->
<!-- <validateVMId> false </validateVMId> -->
<!-- <heartbeatCheckTimeInSecs> 20 </heartbeatCheckTimeInSecs> -->
<!-- <heartbeatRedAlert> 0.40 </heartbeatRedAlert> -->
<!-- <heartbeatYellowAlert> 0.80 </heartbeatYellowAlert> -->

<!-- Setting to enable/disable activation of change tracking -->
<!-- when upgrading a virtual machine's HW version to HW7 or newer -->
<!-- or when adding a new disk to a HW7 or newer VM. -->
<!-- <useChangeTracking> true </useChangeTracking> -->

</vmsvc>
<vcsvc>
<path>libvcsvc.so</path>
<!-- VMotion parameters -->
<vmotion>
<!-- Location of the VMotion journal; either an absolute -->
<!-- path or relative to the default log path -->
<!-- <journalDir> journal </journalDir> -->

<!-- Source-side VMotion timeout (milliseconds) -->
<!-- <srcBeginTimeout> 240000 </srcBeginTimeout> -->

<!-- Destination-side VMotion timeout (milliseconds) -->
<!-- <dstBeginTimeout> 60000 </dstBeginTimeout> -->
</vmotion>

<!-- AgentManager parameters -->
<agentMgr>
<!-- Timeout (in seconds) for the upgrade command -->
<!-- <timeout> 360 </timeout> -->

<!-- Name of the upgrade directory (relative to a provided tmpdir) -->
<!-- <upgradeDir> ha-agentmgr </upgradeDir> -->

<!-- upgradeKey is a path to a file containing an public key -->
<!-- <upgradeKey>/etc/vmware/hostd/key.pub</upgradeKey> -->

<!-- Path to shell -->
<!-- <shellPath>/bin/sh</shellPath> -->

</agentMgr>
</vcsvc>
<supportsvc>
<path>libsupportsvc.so</path>

<!-- Schedule auto collection of stats for all powered on VMs -->
<!-- <autoCollect>true</autoCollect> -->

<!-- The directory to log the stats in -->
<!-- <autoCollectDirName>/tmp</autoCollectDirName> -->

<!-- The timer interval for auto stats collection in seconds -->
<!-- <autoCollectTimerInterval>10</autoCollectTimerInterval> -->
</supportsvc>
<solo>
<path>libsolo.so</path>

<!-- The file containing the list of environment description files -->
<environments>/etc/vmware/hostd/environments.xml</environments>

<!-- The file containing the virtual machine inventory -->
<!-- <vmInventory>/etc/vmware/hostd/vmInventory.xml</vmInventory> -->

<!-- The file containing the AutoStart settings -->
<!-- <vmAutoStart>/etc/vmware/hostd/vmAutoStart.xml</vmAutoStart> -->

<!-- The file containing the resource pool and VM resource settings -->
<!-- <resources>/etc/vmware/hostd/resources.xml</resources> -->

<!-- The file containing the hardware info mockup -->
<hwInfo>/etc/vmware/hostd/hwInfo.xml</hwInfo>

<!-- Whether to use the real network list or just use mockups -->
<!-- <loadRealNetworks> true </loadRealNetworks> -->

<!-- Whether to use the real pciPassthru list or just use mockups -->
<!-- <loadRealPciPassthru> true </loadRealPciPassthru> -->

<!-- Whether to use the real datastore list or just use mockups -->
<!-- <loadRealDatastores> true </loadRealDatastores> -->

<!-- Whether to use the real rdm list or the mockup list. -->
<!-- <loadRealRdmInfo> true </loadRealRdmInfo> -->

<!-- Whether to use the real device (cd,flp,serial,||,sound) -->
<!-- list or the mockup. -->
<!-- <loadRealHwInfo> true </loadRealHwInfo> -->

<!-- Controls to enable/disable expressions in the RDM filter -->
<!-- <rdmfilter> -->
<!-- Only show disks that are attached to shared storage. -->
<!-- <HbaIsShared>true</HbaIsShared> -->

<!-- Only show disks that are not an extent of a VMFS volume. -->
<!-- <UsedByVmfs>true</UsedByVmfs> -->

<!-- Only show disks that are not already used as an RDM target. -->
<!-- <UsedAsVmRdm>true</UsedAsVmRdm> -->
<!-- </rdmfilter> -->

<!-- Whether to use the real rdm list or the mockup list. -->
<!-- <loadRealPassthroughInfo> true </loadRealPassthroughInfo> -->

<!-- Whether to populate usb info from the mockup list. -->
<!-- <loadRealUsbInfo> true </loadRealUsbInfo> -->

<!-- Disable Resource Pool Initialization -->
<!-- <disableResourcePoolInit> false </disableResourcePoolInit> -->

<!-- Soap port. Also turns on proxy forwarding to a TCP port -->
<soapPort> 8307 </soapPort>

<!-- Secure Soap port for accecpting SSL tunneling from proxy -->
<!-- If disabled, SSL tunneling is done over a named pipe. -->
<!-- <secureSoapPort> 8306 </secureSoapPort> -->

<!-- Whether to enable secure Soap adapter -->
<enableSecureSoap> false </enableSecureSoap>

<!-- 64 bit support -->
<!-- <support64bit> true </support64bit> -->

<!-- VmdbAuthd -->
<vmdbAuthd>
<cfgName>vmware-hostd</cfgName>
<socketName>hostd-vmdb</socketName>
</vmdbAuthd>

<!-- Vmdb port -->
<!-- <vmdbPort> 9005 </vmdbPort> -->

<!-- Enable Vmomi tracing -->
<!-- <traceVmomi> true </traceVmomi> -->

<!-- The log level at which to output vmomi tracing -->
<!-- <traceAt> info </traceAt> -->

<!-- Whether to only trace faults in the return -->
<!-- <traceFaultsOnly> true </traceFaultsOnly> -->

<!-- Cause segv -->
<!-- <causeSegv> false </causeSegv> -->

<!-- Cause exception -->
<!-- <causeException> false </causeException> -->

<loglevels>
<module>
<name> disklib </name>
<level> 3 </level>
</module>
<!-- <module> -->
<!-- <name> baz </name> -->
<!-- <level> 2 </level> -->
<!-- <extension> bar </extension> -->
<!-- </module> -->
</loglevels>

<!-- web server settings -->
<webServer>
<!-- <port>9080</port> -->
<docRoot> /usr/lib/vmware/hostd/docroot/</docRoot>
</webServer>

<!-- Enable managed object browser -->
<!-- <enableMob>true</enableMob> -->

<!-- periodic keep alive logging -->
<!-- <runTimerTest> false </runTimerTest> -->
<!-- <runTimerIntervalInSecs> 3 </runTimerIntervalInSecs> -->
</solo>

<!-- Reverse HTTP Proxy service -->
<proxysvc>
<path>libproxysvc.so</path>

<!-- default location of the proxysvc config file -->
<config>/etc/vmware/hostd/proxy.xml</config>

</proxysvc>

<statssvc>
<path>libstatssvc.so</path>
<enableMockup>false</enableMockup>

<!-- Directory to store stats related files in -->
<!-- <depotDir> /var/lib/vmware/hostd/stats/ </depotDir> -->

<!-- Name of the StatsDepot -->
<!-- <depotName> hostAgentStats </depotName> -->

<!-- Max number of stats to purge in one shot -->
<!-- <maxStatsPurged> 1000 </maxStatsPurged> -->

<!-- Real time stats collection interval -->
<!-- <collectionInterval> 20 </collectionInterval> -->

<!-- Enable historical stats collection -->
<!-- <historicalStatsEnabled> true </historicalStatsEnabled> -->

</statssvc>

<partitionsvc>
<path>libpartitionsvc.so</path>
<enabled>false</enabled>
</partitionsvc>

<internalsvc>
<path>libinternalsvc.so</path>
</internalsvc>

<!-- The nfc service -->
<nfcsvc>
<path>libnfcsvc.so</path>
<enabled>true</enabled>
</nfcsvc>

<snmpsvc>
<enabled> false </enabled>
<path>libsnmpsvc.so</path>
<!-- configFile> /etc/vmware/snmp.xml </configFile> -->
<!-- <tracePackets> true </tracePackets> -->
</snmpsvc>

<blklistsvc>
<path>libblklistsvc.so</path>
<enabled>false</enabled>
<!-- <leaseTimeoutSecs> 13 </leaseTimeoutSecs> -->
<!-- <wblEnabled> true </wblEnabled> -->
</blklistsvc>

<cimsvc>
<path>libcimsvc.so</path>
<enabled>false</enabled>
</cimsvc>

<directorysvc>
<path>libdirectorysvc.so</path>
<enabled>false</enabled>
</directorysvc>

<vdisksvc>
<path>libvdisksvc.so</path>
<enabled>false</enabled>
</vdisksvc>

<httpnfcsvc>
<path>libhttpnfcsvc.so</path>
<enabled>false</enabled>
</httpnfcsvc>

<ovfmgrsvc>
<path>libovfmgrsvc.so</path>
<enabled>false</enabled>
</ovfmgrsvc>

</plugins>

<!--Locale preferences-->
<!--InstallPath - this is the location of the locale files-->
<!--DefaultLocale - this is the preferred default locale -->
<locale>
<InstallPath>/usr/lib/vmware/hostd/locale/</InstallPath>
<DefaultLocale>en_US</DefaultLocale>
</locale>

</config>
Advertisements