October 31, 2017 asvignesh
  First stop the AWS EC2 Instance Create the EBS snapshot of the volume which you want to encrypt Copy the EBS snapshot which you created in the previous step to same availability zone and check the Encryption check box Create the new EBS volume from the encrypted EBS snapshot Now the newly created EBS volume is Encrypted Detach the root volume and attach the new Encrypted volume with the same device name ( /dev/sda1 )
September 8, 2015 asvignesh 2Comment
Recently My client have been having some issues with the vSphere web client plugins, they were getting #1009 error often Initially i googled and try to find the solution and root cause, many blogs are suggesting disable the installed plugins and try again. Later i read somewhere ( forget the link) , clearing cache would help This issue is because of the cached objects and it happened when you are navigating through the inventory in the vSphere 6.0, usually this error message pops up, you have to refresh your full web page Error 1009, click yes…
August 27, 2015 asvignesh
You can write the power shell modules through scripts (Script Modules) or through c# code (Binary modules) Script modules can have any valid PS code and save as .psm1 Binary modules can be any assembly that contain cmdlet classes (.dll) the assembly would be imported to powershell and use the commands In this post am writing about the how to create a Binary PowerShell module Open Visual Studio 2012 New Project -> Class Library In order to get the powershell runspace inside the programming language and to create the powershell commands we must add reference of “System.management.automation” dll The DLL…
August 8, 2015 asvignesh
I’ve been developing an automation scripts to provision and expand VMFS Datastore. Expand not Extent… I increased the storage volume size and need to increase the size of VMFS datastore without affording the downtime Here is the VIjava / YAVI Java code for expanding the datastore https://gist.github.com/cd02090562b8cf2ee0e3   [[Amazon_Link_Text]]
May 28, 2015 asvignesh
When i was working on a WIX, i encountered some issue in installing the application  (REST based webservice), my service is not started and later identified that the port number which i set in the application is already used by another application To identify whether the port is in use, i used the Socket Class in Java, which is an endpoint for communication between two machines but i used for local machine to validate specified port public Socket(String host, int port) throws UnknownHostException, IOException https://gist.github.com/c830a8f4c94fa17d68a8 if the host is null it will set the host as loopback address
May 27, 2015 asvignesh
When I write blogs which explains something using code snippet, i used to add the code directly and blockquote it later i find some plugins which will render the code in the readable format with syntax highlighting, later i used to add code snippet in GIST and embed in post using some plugins, recently i got a chance to read this post  Which lets you to embed the GIST code in your blog post without any additional plugins with simple steps Login to WP_admin In WordPress admin console Goto Appearance > Editor > Select the current theme and click on functions.php Paste the below code snippet to your WordPress…
May 24, 2015 asvignesh 1Comment
Usually we register the dll to the Global Assembly Cache a.k.a GAC using the Visual Studio developer console Gacutil or earlier to Windows server 2012 you can simply drag and drop to the Windows Assembly folder With the Windows server 2012 drag and drop the file to the assembly folder will no longer work In this scenario developer can use Powershell To add DLL to the Global Assembly Cache Run the powershell PS C:\Users\Vignesh> [System.Reflection.Assembly]::Load(“System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”) GAC    Version        Location —    ——-        ——– True   v4.0.30319     C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50… PS C:\Users\Vignesh> $publish = New-Object System.EnterpriseServices.Internal.Publish PS C:\Users\Vignesh> $publish.GacInstall(“C:\Users\Vignesh\bin\asvignesh.dll”); To remove DLL from the Global Assembly Cache (Unregister) Run…
May 22, 2015 asvignesh
VSS hardware provider can be initiate and test using DiskShadow Commands Open the Powershell and Enter Diskshadow PS C:\Users\Administrator> diskshadow Microsoft DiskShadow version 1.0 Copyright (C) 2013 Microsoft Corporation On computer: WIN-VigneshDev, 5/22/2015 12:06:35 AM DISKSHADOW> List the Hardware Providers DISKSHADOW> list providers * ProviderID: {74600e39-7dc5-4567-a03b-f091d6c7b092} Type: [2] VSS_PROV_SOFTWARE Name: Hyper-V IC Software Shadow Copy Provider Version: 1.0.0.0 CLSID: {3e02620c-e180-44f3-b154-2473646e4cb8} * ProviderID: {89300202-3cec-4981-9171-19f59559e0f2} Type: [4] VSS_PROV_FILESHARE Name: Microsoft File Share Shadow Copy provider Version: 1.0.0.1 CLSID: {fce59da7-7bac-40da-8d21-3e7311ba51cd} * ProviderID: {b57190af-4567-4dd0-ad8d51abd60b20d5 Type: [3] VSS_PROV_HARDWARE Name: Vignesh Test Provider Version: 6.2.9200.16384 * ProviderID: {b5946137-7b9f-4925-af80-51abd60b20d5} Type: [1] VSS_PROV_SYSTEM Name: Microsoft Software Shadow Copy…
January 6, 2015 asvignesh
Inconsistent Backup The oldest type of backup probably not consistent. The process of taking the backup was so simple, backup application starts at the beginning of a file structure and copies all of the data until it reaches the end, resulting in a backup (Inconsistent). The reason which can make this backup inconsistent is that if any user added/modified after a backup but before it completed that would result in an inconsistent backup; the files in the backup are not consistent. Mainly the volumes which have Random read and random writes application like databases these types of backups do not…
April 14, 2014 asvignesh 2Comment
VMware Vcenter 5.1 and before the default behaviour was to allow all domain admins to login and administrate your ESXi hosts. Once the 5.5 vCenter installed if you try and connect using a domain account you will get the error :The vSphere Client could not connect to “FQDN / IP”. You do not have permission to login to the server: FQDN / IP   To get domain credentials to work you need to login to the VMware vSphere Web Client and setup the relevant permissions. So how to login to vCenter using web client if domain users are not allowed?…
February 18, 2014 asvignesh 1Comment
The OVF in vSphere is not just about deployment and packaging. There is also a runtime part, namely the OVF environment. This is a feature that has been around since the early days of vSphere 4.x, if not earlier which provides a mechanism to retrieve some of this information as well as custom properties. The OVF feature provides users with the capability to pass in any type of metadata information such as application start up parameters, network configuration, password management, etc. directly into the guestOS for flexible guest customization. In this post, i will show how to fetch the runtime…
April 14, 2013 asvignesh
Lots of web servers are running in LAMP stack, as ubuntu is easy to install and configure and many advantages people prefer ubuntu server,  Ubuntu server is completely command based , you need to do all the operation using the ubuntu Terminal… For the Ubuntu Desktop users who are not very good in ubuntu commands Here is the solution to use server like desktop in amazon EC2 instance. Create a new ubuntu server instance in amazon EC2 Make sure the AWS security group has port 22 open for your Instance IP address you are using. ( for SSH access )…
February 29, 2016 asvignesh
Shadow Copies  are possible for almost all volumes and not “all volumes”. There are few cases which the shadow copy may not work Enough Space The shadow storage volume must contain enough free space. At the very minimum you need at least 300 MB or so, for a single shadow copy, for multiple shadow copies, the space can increase more depending on the I/O usage. You can always run the command VSSADMIN LIST SHADOWSTORAGE to see how much space is used for the existing shadow copies. Only Fixed Drives Only fixed drives are supported. You cannot enable Shadow Copy on removable,…
February 9, 2016 asvignesh
Setup a Virtual Host on WAMP Most developers do work locally, Like them i work locally, test then deploy to staging / production. Sometime i used to work on WAMP stack too… in this case creating virtual hosts is better option V-Hosts makes URL cleaner, no need of much modifications in case of CMS let’s setup a virtual host in WAMP. Open your Apache configuration Default Location : C:\wamp\bin\apache\apache2.4.9\conf Search for “Virtual hosts” Uncomment the Include line if it is commented Virtual Host Config File Include Now update the Virtual host config file Sample vHost config <VirtualHost *:80>…