Virtual Machine inaccessible(Unknown)

Posted: February 8, 2016 in Uncategorized

If virtual machine is disconnected from ESXI due to vmx file lock, follow the below steps to fix the issue.

Note:

Note down the ESXI IP, VM hostname, Ip address & .vmx & .vmdk file path before starting the activity.

Step:1

Remove the VM from the inventory. Select VM ==> Right click and remove VM from inventory.

Inventory

Step:2

Browse the datastore where the .vmx file is located. Right click .vmx file and try adding to the inventory.

If still issue is not resolved. Need to find the lock and it needs to be removed.

Step:3

Login to ESXI and locate the process ID using below command.

1) esxcli vm process list

Output will be as below.

EG (Output:
VM
World ID: 3338106
Process ID: 0
VMX Cartel ID: 3338103
UUID: 42 00 2c c6 2b d6 17 af-15 58 75 b6 2c 26 f6 10
Display Name: VM
Config File: /vmfs/volumes/531edada-36119f2e-0012-14feb5caca3b/VM/VM.vmx)

Command to kill the process

2) esxcli vm process kill -t (type) -w (world id)

type – soft
hard
force

Step:4

Login to esxi and enter the datasore path as below.

(EG) /vmfs/volumes/531edada-36119f2e-0012-14feb5caca3b/virtual machine #

and run the below command to find the NIC which holds the lock.

#vmkfstools -D  VMname.vmx

vmx

From above screenshot we can find the lock owner. Here NIC 549f351f04c6 holds the lock.

Step:4

Run the below command to to check the stale process which holds the lock

#lsof | grep VMname

pK - Copy

Step:5

Run the command ” kill -9 process Id ” to kill the process.

(EG) kill -9 20425216

Step:7

Browse the datastore where the .vmx file is located. Now right click .vmx file and add VM to the inventory.

VM’s can also be registered using below command

vim-cmd solo/registervm (datastore path)

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=10051                 click

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1014165             click

Advertisements

ESXI Syslog Configuration

Posted: February 6, 2016 in Uncategorized

                                                         Enabling Syslog on ESXi Host

Follow the below steps to enable syslog on ESXi Host

Step-1

Configure the syslog server IP with port number in syslog. global.loghost  under  Configuration ==> Advanced settings ==> Syslog ==> global

Eg: tcp://172.25.145.215:514

syslog1

Step-2

Enable syslog firewall  under Configuration ==> Security Profile ==> Properties

syslog2

Step-3

Login to the ESXI host through putty and run the below commands

esxcli system syslog reload

esxcli network firewall refresh

Step-4

To check the connectivity use the below command

nc -z 172.25.145.215 514

Syslog3

http://rainbow.chard.org/2012/04/04/esxi-5-0-remote-syslog/     Click

This article is very useful to regenerate the AWstats.

To regenerate the stats. The AW stat logs needs to be created with the help of  IIS logs. Follow the steps to recreate the stats.

Have a check whether Perl is installed and go to the AW stats path and run the command in the path “C:\Program Files\HSphere\3rdparty\AWStats>”

awstats.pl -config=ireferplumbers.co -update -logfile=”E:\hslogfiles\W3SVC641\ex091217.log”

run below command to update the stats in AW stats path.

awstats.pl -config=ireferplumbers.com -update

Script to run the log file in AWStats:

red.bat:
———-

“C:\Program Files\HSphere\3rdparty\AWStats\awstats.pl” -config=ireferplumbers.com -update -logfile=”E:\hslogfiles\W3SVC641\%1″

Test.bat:
———–

for /f %%a IN (‘dir /b “E:\hslogfiles\W3SVC641″‘) do call “C:\Program Files\HSphere\3rdparty\AWStats\red.bat” %%a

How to get rid of proxy:

Posted: August 18, 2010 in Uncategorized
Tags: , ,

If you cannot access the websites like orkut and some of the entertainment sites from your office. Dont  worry about it, because it may be blocked in the proxy by system admins.  Here is the way to bypass the proxy.

Tor Browser is one for the tool used to access the sites you want. Here you no need to Install.  Just download the EXE and start browsing your favorite site.

Use the following link to download the TOREXE

http://www.torproject.org/torbrowser/     Click

After downloading extract the .EXE file and open the folder Tor Browser as below.

Now click the  icon ‘Start Tor Browser’ for login to the Tor network.

Now the browser will open and you can access your favorite sites.

Dotnet Nuke

Posted: July 27, 2010 in Uncategorized
Tags: , ,

DNN Installation procedure:

DNN is used to build highly interactive, dynamic web sites .  Professional edition of  DNN is licensed and Community Edition is a free one. Use the following steps to install the DNN for websites to run under asp applications.

  • Download the setup folder to install DNN from the link below.

http://www.dotnetnuke.com/Development/Downloads/CommunityEditionDownload/tabid/1369/Default.aspx    Click

http://www.dotnetnuke.com/tabid/125/default.aspx     Click

  • Extract the DotNetNuke folder under the root folder of the domain and create it as a virtual directory.
  • Assign the modify permission for network services, IUSR and ASPNET.
  • Create the MSSQL database and put the connect string in web.config file.

Connect string for mssql database in web.config file:

<add name=”SiteSqlServer” connectionString=”Server=(local);Database=DotNetNuke;uid=;pwd=;” providerName=”System.Data.SqlClient” />

  • Access the following URL in the browser to start the installation.

http://Domainname.com/dotnetnuke

  • Now proceed and complete the installation.

Installation Doc:

http://info.dotnetnuke.com/rs/dotnetnuke/images/DotNetNuke_Installation_Instructions_052609.pdf     Click

Webalizer Stats

Posted: July 25, 2010 in Uncategorized
Tags: ,

Webalizer regenerate:

If the statistics are not generating for a particular domain. Follow the following steps to regenerate the stats.

Before regenerating stats, place the log files of the dates that need stats to be updated into the logs folder of the domain.

Take log files from hslogfiles and put into the path ( account folder\logs\domain folder )

  • Go to “hostslist.txt” locate the domain.
  • Take backup of the hostslist.txt or rename it as hostslist.txt.bak
  • Put an entry for the particular domain for which the stat is missing in the host file as provided by EG.
  • Delete the data’s other than the domains data.

EG: Example

(Account folder E:\hshome\Account folder\logs\domain.com\ E:\hshome\Account folder\domain.com\webalizer domain.com)

==>Then double click the “Webalizer.exe”. Files will be executed (should
not skip)

That’s it. webalizer stats will be created for that domain

If you have to configure silver light application to run on IIS. Need to add the MIME type to enable it in IIS. Other wise silver light will not be supported on IIS web server.

This can be accomplished by adding following MIME type in IIS

.xap application/x-silverlight-app

Steps for adding MIME type in IIS.

Go to IIS==>Right click IIS at the root ==> Click MIME types ==> Click New ==> A tab will open

Here you need to add the extension

Extension: .xap

Mimetype: application/x-silverlight-app

And Click Ok to finish.

Thats it. Now silver light applications can be run on IIS.

These extensions can also be added to enable silver light.

  • .xbap application/x-ms-xbap
  • xaml application/xaml+xml

http://geekswithblogs.net/frankw/archive/2008/04/10/configure-iis-to-host-silverlight-applications.aspx Click

http://learn.iis.net/page.aspx/262/silverlight/ Click

————————————————————————————————————————