Sunday, 6 January 2013

Correction of Misaligned VM Disk



Hi All,

As we know in real IT world we need the speed and performance while accessing application and files . And  in world of virtual environment of servers we need this more, but there are some flaws come in to the picture while implementing 2003 server in virtual environment Here we will  discuss about the misaligned disk of VM servers and how to correct it...


What is VM Misaligned Disk.


When looking at performance problems traditionally storage is usually the first place many of us would look and for a good reason. In many of the environments these storage problems are caused by misaligned file systems. Why is that? Well fairly simple, misalignment causes overhead. Just look at this diagram:




If you look at the Guest OS and the Array, you will see that in order to read 1 Guest OS cluster the Array needs to read two chunks. With a single VM running on a datastore and your array the impact might not be severe but when you have dozens or hundreds running it will be substantial while it is completely unnecesarry.

How to correct VM Misalignment.

Before you begin:
Log into vCenter and Shut down the VM with misaligned disks.                                                         Rename the server to <server name-old>
  1.Start VMware vCenter Converter Standalone Client ver.5 with Run As administrator
  2.Select Convert Machine



   3. Select source type: VMware Infrastructure virtual machine
   Specify server connection information to vCenter server
 4.    Ignore Security Warning
 5.    Select VM with misaligned disks


6.    Select destination type: VMware Infrastructure virtual machine
Specify VMware Infrastructure server details for vCenter

 7.Ignore Security Warning

 8.  Enter the original server name as destination and put it in the correct folder
 
9. Select destination host and datastore.
NB! The datastore can not be the same as source


  10.  Edit Data to copy

11.      Data copy type: Select volumes to copy and click Advanced ->Destination Layout
 12.  Select Thin provisioning for all disks
Select correct datastore
Select Ignore page file and hibemation file
Select Create optimized partition layout

 13.   Verify and Click Finished to start


 14.     When the job  completed log into vCenter and verify that the new aligned VM is using the same network adapter and connected to the same network label as the original misaligned VM. If not, this has to be corrected before you can power on the new aligned VM.
 15.    Power on the new aligned VM and verify that all disk are aligned
From command prompt run: wmic partition get Index, Name, StartingOffset
Misaligned disk will have StartingOffset 32256
Aligned disk will have StartingOffset 32768 , 1048576 or amy other StartingOffset dividable with 4096

After you finish
When the customer has verified that the new aligned VM is ok, delete the original misaligned VM named <server name-old>.






Tuesday, 4 September 2012

How to Use the Inventory Snapshot for vSphere

 
How to Use the Inventory Snapshot for vSphere by VMware Labs..

Hi All,

After so many days i m updating my blog again which will be really helpful for those who wants to save there vcenter server settings or just planning to deploy there development vCenter enviroment to the Production. Using this tool you can snapshot your dev environment and recreate it on the production server, saving your time of createing cluster and resource pools adding host etc...

"inventory snapshot" is the latest tool from vmware labs is used for this. This free vSphere tool allows you to take a snapshot of an entire vCenter inventory and then reproduce that inventory on the same vCenter server or another vCenter server. Thus, you could reproduce a vCenter cluster on the same vCenter server or another server.


Downloading Inventory snapshot for vSphere.

To use the tool , you would need vSphere 4.1 (including vCenter). With your vSphere infrastructure already up and running, you can download the inventory snapshot here

Unzip the file and place it in an convenient location.

You'll also need the latest version of Java installed AND VMware's PowerCLI.

From the inventory snapshot ZIP file, you can run inventorysnaphsot.bat

Keep in mind that PowerCLI is required because inventory snapshot will be creating a PowerCLI script that you will be modifying and then using to recreate your entire vSphere infrastructure (or a piece of it) on the same or another server.


Using Inventory snapshot

Once you have met the requirements and have Inventory Snapshot ready to use run inventorySnapshot.bat to bring up the UI. In Linux and MacOS, you use the inventorySnapshot.sh shell script to bring up the graphical user interface.

You'll enter your vCenter hostname, username, password, and a path to store all the inventorysnapshot PowerCLI (PS1) snapshot files.

 
                                                  Figure 1 : This will run multiple PowerCLI scripts and brings up this screen:
 
                                                   Figure : 2


Notice the 4 tabs on the top. From here, you can review the actual code that will be used to recreate the vSphere inventory.

On the Host Info tab, you will configure the username and password for each ESXi server as passwords are not captured as part of the inventory snapshot.

                                                   Figure : 3

                                                    Figure 4

Finally, you'll create your PowerCLI script which will be used to recreate the inventory (and is modified based on the choices you selected here).

                                        Figure 5


That script should be called something like createInventory.PasswordModified.PS1. Now, connect to the new vCenter server where you want to recreate the captured inventory. With PowerCLI, you'll do this with Connect-VIServer.

Once connected, run the new script and you'll be able to recreate your vSphere infrastructure.

Now you can deploy your vcenter Environment in just some keystrokes.  :-) 

Tuesday, 19 June 2012

Change the SID and computer name of a virtual machine

Hi Guys,

Today i am going to introduce a new and interesting scenario, where all teh Vmware &  Wintel Administrator feel uncomfortable to work with Cloned Virtual MAchines.

Like  you clone a vm in minutes to test something, but find that the SID remains the same. A simple utility exists that enables you to quickly change the SID and the computer name of a cloned virtual machine.
1. The utility is called NewSID v4.10 and is available for download free of charge.
Figure A
2. Next, Run the command prompt and run the auto option (switch A) to create a new SID and rename the computer. It takes a few minutes for the process to complete and the computer to reboot (Figure B). When you log in to the computer again, the SID is brand new and the computer automatically renamed.

With the command newsid.exe /a [newcomputername]


Figure B

 Now Check your computer Information by going to computer properties. Vola.
you did the Change Of your computer name and SID.

Wednesday, 1 February 2012

Description of vSphere, Vcenter Server, VMware Hypervisor & vSphere Client etc...



Hi guys,

I know you are lil bit confused why I written down all those name started from Latter “V”. Well Today I m going to differenciate all those things  so you will not confused next time, As I do when I started working with VMware… Hope this will be a interesting topic for you….So read Carefully….

1.     Vsphere 5.0 : This is a complete package of Vmware Hypervisor ESXi (OS) + vSphere Client(Management Point)..

    And other things you can understand better by below scenario....



Scenario : 1 - ESXi Server Ready..But no way to administer it. No Management Point..


Solution :Vmware vSphere Client installed and now it's ready to manage the ESX server and there VM.

Scenario : 2 - Multiple ESXi Server are ready but how to manage them along for Vmotion, Distributed Power Management (DPM), Distributed Resource Scheduler (DRS), High Availability (HA) etc..

Solution : VMware vCenter Server installed on a single machine as a Linked point and now we can manage multiple ESXi Server via Vmware vSphere Client ...

If you find reading this helpful and cleared your doubts than comment and if still have any doubts den query me. will try out to clear your doubts more clearly...Thanks..


R




Tuesday, 31 January 2012

Physical to virtual Coversion (P2V)

Hi All,


Today we will learn " how to migrate from Physical to Virtual or P2V migration."As we know that in today's world, Virtualization is need of every organization.. As we know while using VMware we can run up to 255 virtual machine in a single box .. So everyone is now run there servers or machine's in a single box and migrating there existing machine's in to virtual.. So here i m telling you how to migrate from physical to virtual environment with ease....


First of all you need to download and install the VMware Converter . There are so many features of it .



VMware Converter is designed to do the following:
  • convert local and remote physical servers with NO DOWNTIME
  • convert many P2V conversions at the same time with a centralized console
  • convert third party VMs to VMware. For example- MS Virtual PC, MS Virtual Server, Backup Exec LiveState, & Ghost.
  • Clone and backup physical machines to virtual machines as part of a DR plan.

When VMware converter installed your vSphere is ready to migrate the Physical machine's in to Virtual.


Step 1 -Right click on vSphere Server  & click on  “Select import machine…”

Step 2 -Fill the target’s info like: IP, Username, Password, OS type.

Step 3- Leave the default click yes.”It will install vCenter converter agent temorarily on remore source machine and automatically uninstall it after successful completion of migration.”
Step 4- It will start deploying agent on Source machine..

Step 5- Select a ESXi server to receive new VM,  Select a shared datastore..
Step 6- Finish converting options then click next, we can increase volumes on target

Step 7 : - Now it will show you the configuration overview of the VM you are going to import.


Step 8 : -Status show in Tasks & events panel, wait for 100% complete.


Finally you got your physical machine in Virtual Box.. But dont forget to remove the physical machine from the network to avoid name or IP Confliction...Have a good day techies...



Thursday, 26 January 2012

Introduction & Installation of VMware ESXi 5


         Vmware
ESXi 5

qESXi Installation Requirements
qWhat Happened to ESX Server ?
qInstalling Vmware ESXi 5
qESXi Initial Configuration
qInstalling the vSphere Client

Vmware ESXi

Runs directly on your hardware
It is “the operating system”
Talks directly to your hardware including NIC and storage controller

Requirements :
64-Bit CPU with Inter VT or AMD-v enable
2098 MB of RAM is the minimum but likely you’ll want 8GB+
Gig-E or 10 Gig-Ethernet controller

What happened to ESX Server ? Is it obsolete..

ESX Server ha been deprecated/discontinued

qRedhat Linux-based service console required more frequent updates and had a larger attack surface
qMaintaining two platforms didn’t make senses
qTook longer to install and boot
qUsed more resources

  ESXi type-1 hypervisor
qThinner
qLess updates
qMore Secure
qStill has a very thin local CLI
qLoads and installs super-fast
qPerforms all the advanced features of ESX

Download by  Vmware Website..

  You can download the Vmware vSphere & other tools from vmware official website. http://www.vmware.com/download
ESXi Image (Including Vmware Tools )  Size : 321 MB
ESXi Offline Bundle(Auto Deploy Feat.)  Size : 318 MB
Vmware vCenter Server and Modules  Size :  2.2 GB
Vmware vSphere Client  Size : 304 MB

Installation of VMware ESXi 5  Server

1. Burn ISO file to CD and put in drive
2.Make sure VT is enabled in sever BIOS
3.Boot the CD
4.Answer installation questions, reboot, and you are ready to use ESXi 5
5.Perform Initial configuration (Recommended)
6.Connect with vSphere Client  
                                  
                                          (Video : How to Install ESXi 5.0 Server)
You can take reference from this video..

Initial configuration  of VMware ESXi 5  Server
1. Login with F2 and root password
2.Configure IP address, SM, DG, DNS servers, Hostname, and domain
3.Add to your DNS name
4.Add to vCenter by DNS name
5.Optional:
Configure NTP on the ESXi Server
Connect ESXi server to SAN
Cofigure lockdown mode
Enable tech support mode and remote tech support mode
Note : New in ESXi 5, the root password is set at installation time.

      (Video Added : How to configure ESXi after installation)


Installing the vSphere Client
Available in either a windows version or a new web-based version
Only Windows version offers 100% of features today
vSphere Client is now downloaded from VMware .com
vSphere Client is also found on vCEnter installation media
Hardware requirements to run the Windows vSphere Client are low
Windows version requires that you install the .NET client
Web-based version requires that you install Adobe Flash

(Video Added : How to install vSphere Client)
Thanks for Watching .....                                   

Tuesday, 24 January 2012

Hypervisor & there types.

Hypervisor & There Types

Hi guys,

Today I m telling about “Hypervisor & types of Hypervisor”. Most of the times we get confused in hypervisor and Hyper-v(Microsoft Proprietry) and thinks that both are same. But it becomes easy to understand after reading this article. Hope it will be useful to you..


Hypervisor

A hypervisor is a thin virtualization platform that allows multiple operating systems to run on a computer at the same time.
The hypervisor manages the virtual machine’s access to physical resources.

Hypervisor’s are currently classified as two types:

Type -1 : Bare metal Hypervisor  (Ex: VMware ESX Server 4 )
Type -2 : Hosted Hypervisor  (Ex: Microsoft Virtual Server 2005 R2)


Type -1 

Bare Metal Hyper visor
Bare metal OS Virtualization platforms install the hypervisor directly on to the hardware.
·         VMware ESX
·         Microsoft Hyper-V
·         Citrix Xenserver


Type -2

Hosted Hypervisor

Host-based OS virtualization platforms require the hypervisor to run on the installation of an underlying host operating system like windows Server 2003, Linux or MACOSX.
·         Vmware Server, workstation & Fusion
·         Microsoft Virtual server 2005 R@, Virtual PC
·         Parallels
I hope guy you enjoy reading this..Thanks..