April 10, 2019 Vignesh Sathiyanantham

Copy and Paste the following command to install this package using PowerShellGet Install-Module -Name VMware.PowerCLI If you are getting any error related to the privilege PS C:\Users\asvig> Install-Module -Name VMware.PowerCLI Install-Module : Administrator rights are required to install modules in ‘C:\Program Files\WindowsPowerShell\Modules’. Log on to the computer with an account that has Administrator rights, and then try again, or install Run with adding -Scope CurrentUser Install-Module -Name VMware.PowerCLI -Scope CurrentUser

January 2, 2019 Vignesh Sathiyanantham

Deploying a virtual machine from a template is an easy task but cloning a virtual machine will maintain its computer name, serial number and the license information and deploying multiple Virtual machines for dev test is also a painful job We can achieve it more easily using vSphere powercli, modify the below script according to your lab details and run it Change the vCenter HostCredentials ( username and password )Number of VM to deployFrom which template you want to create a cloneOS Custom specificationTo which datastore you want to clone the virtual machinesTo which ESXi node you want to attach…

December 1, 2018 Vignesh Sathiyanantham

Uploading files to vCenter server appliance ( VCSA ) using WinSCP ( SFTP / SCP)  While establishing the connection if you are getting error like ? Host is not communicating for more than 15 seconds. Still waiting. Note If the problem repeats, try turning off ‘Optimize connection buffer size’. SSH to VCSA machine (putty) and enable the shell Command> shell.set –enabled TrueCommand> shell It will enter into Appliance shell mode then run the below command to make root user to use bash chsh -s /bin/bash root To revert back to Appliance shell for root chsh -s /bin/appliancesh root

November 26, 2018 Vignesh Sathiyanantham

By default Photon OS comes with DHCP enabled, this is good enough for testing. In some case if you want to set static IP to your PhotonOS VM To get list of interfaces networkctl My network device name is eth0 ls /etc/systemd/network You will get a DHCP configuration file (99-dhcp-en.network in my case), take a backup of that file and create a new file 99-static-en.network root@photon-machine [ ~ ]# vi /etc/systemd/network/99-static-en.network [Match]Name=eth0[Network]Address= Save and restart the service systemd-networkd systemctl restart systemd-networkd If you are getting “Could not load configuration files: Permission denied” error change the permission of the file to 644 chmod 644 /etc/systemd/network/*…

November 26, 2018 Vignesh Sathiyanantham

Install python-pip $ yum install -y python-pip Then install Docker Compose: $ pip install docker-compose To verify a successful Docker Compose installation, run: $ docker-compose version

November 19, 2018 Vignesh Sathiyanantham

Backup applications for the Virtualized environment back up the Virtual Machine at the image level and are not aware of what is going on inside the installed guest operating system. So before you back up your Virtual Machines you should ensure they are quiesced so they are in a consistent state to be backed up. Quiesce is to pause or alter a device or application to achieve a consistent state, usually in preparation for a backup. The quiesce operation is handled inside the guest OS, and for Windows VMs, the Volume Shadow Copy Service (VSS) handles this. If you don’t…

November 16, 2018 Vignesh Sathiyanantham

VMware Virtual Machine snapshots should not be used as a primary backup, Virtual Machine snapshots are good for the shorter period. you can create VM snapshot before applying hotfix and delete after successful patching. When VM snapshots are created the state of the virtual disk at the time the snapshot is taken will be preserved and all writes to the VMDK are redirected to a new delta disk file (The delta disk represents the difference between the current state of the virtual disk and the state that existed at the time the previous snapshot was taken), and the original VMDK…

May 10, 2018 Vignesh Sathiyanantham

With vSphere 6.7 web services SOAP API  includes the creation date of a Virtual Machine and will be persisted with the life-cycle of the VM itself. You can get it from Virtual Machine -> Config -> createDate. Earlier to 6.7, we can track the VM Creation Time using EventManager. We should create an EventFilterSpec to filter the events by Virtual Machine creation or deployed, Registered or Cloned Events. new String[]{“VmCreatedEvent”, “VmBeingDeployedEvent”, “VmRegisteredEvent”, “VmClonedEvent”} Get Virtual Machine Creation Time earlier to vSphere 6.7 Java https://gist.github.com/asvignesh/fd97f4cbc41ac55e5b289c3424c0f09a vSphere Power CLI https://gist.github.com/asvignesh/327169f8456bbd613eebfad3d9768fa8

May 5, 2018 Vignesh Sathiyanantham

I recently had a demand to deploy an OVF (Open Virtualization Format is an open-source standard for packaging and distributing software applications for virtual machines) which is located on Datastore of ESXi Server. When you try to deploy from vSphere web client ( Flash / HTML) you can specify the OVF URL or the location accessible from my computer. Specifying the path from the local computer is simple if browser detects the VMware Client Integration tool. But you cant see the option to deploy from Datastore. How to Deploy an OVF from ESXi Datastore In vSphere, you have an option to…

January 22, 2018 Vignesh Sathiyanantham 1Comment

Recently, An Indiana hospital paid a ransom of $55,000 to get rid of ransomware that had infected its systems and was hindering operations. when attackers breached the network of Hancock Health, a regional hospital in the city of Greenfield, Indiana. Hancock Health CEO Steve Long said the hackers are believed to be in eastern Europe and may have used a type of ransomware called SamSam, SamSam encrypted files and renamed them with the phrase “I’m sorry”, according to a local newspaper who broke the news. The hospital said that despite having backups it opted to pay the ransom demand of…