Archive for the ‘Virtualization’ Category

HOW TO: Tag and Configure a storage device as a Solid State Disk (SSD) in VMware vSphere 5.0 or 5.1 (ESXi 5.0 or ESXi 5.1)

Thursday, November 29th, 2012
In VMware vSphere 5.x (ESXi 5.x) there is a new feature called Host Cache Configuration. This new feature allows the VMware vSphere Administrator to configure the VMware vSphere 5.x (ESXi 5.x) host server to use a cache on a Solid State Disks (SSD) for the virtual machine’s swapfile for better performance, because the SSD has much faster latency than a traditional mechanical disk. This is also known in VMware Administrator circles as Swap to Host Cache or Swap to SSD. Once Host Cache Configuration has been enabled, the virtual machines will be swapping to SSD, but this swapfile is not a true swap file, and the entire virtual machine swap file (.vswp)  is not stored on the SSD.However, not all SSD devices are correctly tagged as SSD. This tutorial shows how to tag a Non-SSD storage device as SSD, if you want to experiment with Host Cache Configuration but do not have a SSD to hand. This is not supported by VMware, tagging a non-SSD as a SSD.

The same procedure can be followed to tag a SSD, correctly, if it’s not recognized by the VMware ESXi server.

With the current fall in prices for consumer SSDs, it can give a real performance boost to a VMware ESXi 5.x server which is short on memory. Consumer SSDs e.g. Kingston SSDNow V+200 Drive Model SVP200S37A/60G are generally cheaper than server memory. We recently purchased this model for £29.99 GBP.

The commands we will be using in this Tutorial, are the esxcli commands, these commands can be executed on the ESXi shell, through the vMA or PowerCLI esxcli remote version. In this tutorial I’ll be logging into the ESXi server, and executing the commands on the ESXi shell.

1. Connect to the VMware vSphere Hypervisor (ESXi) or VMware vSphere vCenter Server

Using the VMware vSphere Client, Login and Connect to the ESXi server, using IP address or hostname of the ESXi server, using root username and password credentials. If you have a VMware vSphere vCenter server, you could also specify IP address or hostname of the vCenter server.

  • Using the VMware vSphere Client, Login and Connect to the ESXi server

Using the VMware vSphere Client, Login and Connect to the ESXi server

2. Check and record the storage device name to be tagged as a SSD

Check there is a VMFS volume already formatted on the storage device, you want to present to the Host ESXi server, as a SSD and record the device name for later in Step 4.

Select Host > Configuration > Storage

  • storage device to configure as SSD

storage device to configure as SSD

In the example above, the local storage device mpx.vmhba1:C0:T0:L0 is a local disk, formatted with the datastore name datastore1 as VMFS5. Record the storage device name mpx.vmhba1:C0:T0:L0.

3. Logon to ESXi console (shell) via PuTTY

Using PuTTY a free telnet and SSH client or another SSH client Login and Connect to the VMware Hypervisor ESXi server, using IP address or hostname of the VMware Hypervisor ESXi server, using root username and password credentials.

  • putty SSH terminal session

putty SSH terminal session

  • logged in as root to ssh terminal session

logged in as root to ssh terminal session

4. Create a new SATP rule

At the console or SSH session type the following commands to create a new SATP rule.

esxcli storage nmp satp rule add --satp VMW_SATP_LOCAL --device mpx.vmhba1:C0:T0:L0 --option=enable_ssd

using the device name recorded in Step 2 above. The console will return a new line. To check the rule has been created correctly type the following commands

esxcli storage nmp satp rule list | grep enable_ssd

the following screenshot should be displayed

  • Confirmation of rule creation

Confirmation of rule creation

confirming the creation of the rule.

5. Claim storage device

At the console or SSH session type the following commands

esxcli storage core claiming reclaim -d mpx.vmhba1:C0:T0:L0

using the device name recorded in Step 2 above.

I have seen the following error messages when trying to claim devices, either restart the server or use the “unclaim” device command.

  • Unable to unclaim path vmhba1:C0:T0:L0 on device mpx.vmhba1:C0:T0:L0. Some paths may be left in an unclaimed state. You will need to claim them manually using the appropriate commands or wait for peri

Unable to unclaim path vmhba1:C0:T0:L0 on device mpx.vmhba1:C0:T0:L0. Some paths may be left in an unclaimed state. You will need to claim them manually using the appropriate commands or wait for peri

you can unclaim the device by specifying the device name.

esxcli storage core claiming unclaim --type device --device device_name

6. Reload the claim rules

I usually reload the claim rules and run the rules using the following commands:

esxcli storage core claimrule load
esxcli storage core claimrule run

7. Confirm device is Tagged as SSD

Use the following command at the console, to check if the device has successfully been tagged as a SSD

esxcli storage core device list --device=mpx.vmhba1:C0:T0:L0

The following output will be displayed for the device.

  • local device tagged as SSD

local device tagged as SSD

Check the output states “Is SSD: true”

You have successfully configured and tagged a local device as a SSD. If you now repeat Step 2 above, you will see the device now states SSD.

  • storage device to configure or tagged as SSD

storage device to configure or tagged as SSD

In my next Article, I show you how to configure Host Cache Configuration.

Further reading can be found here in the VMware
vSphere 5 Documentation Center :- Tag Devices as SSD

Altaro giving all Hyper-V admins 50 free licenses of their desktop backup solution – End December 24th

Thursday, November 29th, 2012

I’ve blogged about the fabulous product earlier, see here https://andysworld.org.uk/2012/08/24/fantastic-altaro-hyper-v-backup-for-windows-2012-because-andy-says-so/

but those nice guys at Altaro are giving away 50 free licenses of their desktop backup solution – End December 24th

Altaro giving all Hyper-V admins 50 free licenses of their desktop backup solution – End December 24th

Altaro, developers of Altaro Hyper-V Backup, are giving something back this holiday season and are giving every Microsoft Hyper-V admin 50 licenses of their desktop backup software, that’s up to $2,000 worth of software.

There’s no catch! All you need to do is send them a screenshot of Hyper-V that proves that you use Hyper-V and they will send you the licenses which you can use on your own machines or give out to friends, family or colleagues, to use at work or home.

The giveaway ends on Dec 24th 2012.

To claim your 50 licenses check out

http://www.altaro.com/hyper-v/50-free-pc-backup-licenses-for-all-hyper-v-admins

To check out their Hyper-V portal check out http://www.altaro.com/hyper-v/

For more info about Altaro Hyper-V Backup check out http://www.altaro.com/hyper-v-backup/?LP=Xmas

New Project, so new Desktop Computer! So meet my new Processor!

Monday, November 12th, 2012

I’ve got a new project to complete, more on that over the next coming months (secret squirrel stuff! cannot say any more at present) , so it’s time to build a new desktop computer, it’s been a while the last desktop computer I purchased was in 2007, and that was an Dell XPS 720 H2C, which had an Intel Core 2 Extreme Processor QX6850.

It’s rather strange building a physical computer, because I deal alot with the virtual.

The processor on the new Desktop computer has an Intel Core i7 990X Extreme Edition (Gulftown)  processor. It has 6 Cores and 12 Threads.

When VMware Snapshots go wrong – Snapshot Hell!

Friday, October 12th, 2012

this is the worst case of Snapshot Hell, I’ve ever seen! It’s not the largest snapshot, the total is only approx 83GB in snapshots, but the number of snapshot files!

A Total of 79 snapshots per virtual machine disk, see screenshots (I’ve obscured the server name for privacy!)

According to this VMware Knowledge Base article the maximum number of snapshots is 32 in a snapshot chain.

snapshop1snapshop2snapshop3

HOW TO: “Live Migrate” VMware Virtual Machines between ESX/ESXi hosts and/or datastores for FREE without licenses for vMotion or Storage vMotion

Monday, September 24th, 2012
Migrate VMs between hosts and/or datastores for FREE without vMotion/Storage vMotion or Shared Storage

Not all organisation have access to VMware’s vMotion or VMware’s Storage vMotion technology because of budgetry constraints. I’ve written this article because it’s a question which appears on Experts Exchange at least every few weeks, and now there is an easy solution to the problem.

Scenario 1
First implementation of VMware vSphere Essentials without shared storage, later the organisation purchases shared storage (iSCSI or Fibre Channel SAN or NFS NAS), and then needs to migrate existing virtual machines with little downtime to the shared storage platform.

Scenario 2
Organisation purchases a second newer replacement VMware vSphere host, needs to migrate existing virtual machines with little downtime to new VMware vSphere host.

Traditionally we would use ESXi/ESX Backup and Restore techniques, VMware vCenter Converter Standalone 5.0, or Datastore browser to clone or copy see my previous Experts Exchange articles below, to address the above scenarios, (remember here that VMware’s vMotion or VMware’s Storage vMotion is NOT available, because it’s not available in our licensed version of VMware vSphere).

VMware ESX/ESXi Backup Guide

HOW TO: Clone or Copy a virtual machine in VMware vSphere Hypervisor ESX/ESXi 4.x or ESXi 5.0

HOW TO: Improve the transfer rate of a Physical to Virtual (P2V), Virtual to Virtual Conversion (V2V) using VMware vCenter Converter Standalone 5.0

HOW TO:  P2V, V2V for FREE – VMware vCenter Converter Standalone 5.0

Software Technology has improved and using Veeam Quick Migration, we can migrate Live VMs between hosts and datastores for FREE!

In the latest version of Veeam Backup Free Edition, there is a new function called Quick Migration. Veeam Backup Free Edition is the same download as Veeam Backup and Replication v6.1, but a Veeam license is not applied at installation time.

The Quick Migration utility in Veeam Backup Free Edition lets you migrate a live VM to any host or datastore—even if you don’t use clusters or shared storage.

Quick Migration leverages native VMware technology, as well as exclusive Veeam technology, to accommodate any migration scenario, including:

Migrating a VM from a local datastore to shared storage
Migrating a VM between 2 separate hosts and datastores

With Quick Migration’s point-and-click interface, you can easily move a live VM from any source to any destination, even if vMotion and vStorage Motion are not available. And with Veeam’s SmartSwitch technology, downtime is reduced to mere seconds.

Source
http://www.veeam.com/free-vmware-esxi-backup.html

In the following steps, I will demonstrate, how a Live virtual machine can be migrated from a Local Datastore attached to a VMware vSphere ESXi host, to an iSCSI LUN on a SAN and different VMware vSphere ESXi host. – this demonstrates a vMotion (migrate from one host to another host) and Storage vMotion. (from one datastore to new datastore) – using Veeam Quick Migration.

Prerequisites

1. VMware vCenter Server for Windows or VMware vCenter Appliance installed and configured with one or more VMware vSphere ESXi/ESX hosts. So you would need to have purchased at least VMware vSphere Essentials.

2. Veeam Backup Free Edition for VMware and Hyper-V installed on a virtual or physical server. We often install Veeam Backup and Replication v6.1 (same product) on a Microsoft Windows Server 2008 R2, with 2 vCPU and 8GB RAM. I’m not going to document the installation of Veeam Backup Free Edition, because it is simply, point and click; download the software, extract the software from the ZIP archive, Run the setup program, and Click Next…Next…Next…Finish.

1

Start Veeam Backup & Replication

Click the Veeam Backup & Replication icon to start the backup application.

  • Click the Veeam Backup & Replication icon

Click the Veeam Backup & Replication icon

The application will start and display the following banner
  • Veeam Backup & Replication startup banner

Veeam Backup & Replication startup banner

the following configuration screen will be displayed
  • Configuration Screen

Configuration Screen

2

Add VMware vSphere vCenter Server

Before using Veeam Backup Free Edition, you must register your virtual infrastructure. To start this process, Click the Add Server button in the ribbon, the following Add Server Dialogue box will be displayed.

  • Add Server

Add Server

Select VMware vSphere, the following dialogue box will be displayed, add the DNS name or IP Address of your VMware vCenter Server. We always prefer to use DNS names, and to ensure that DNS is working correctly.
  • Enter DNS Name or IP Address

Enter DNS Name or IP Address

in this tutorial the vCenter Server for Windows we will be using is called cyrus-vcenter1.cyrus-consultants.co.uk. Enter the FQDN of the vCenter Server and Click Next
  • Enter vCenter Server DNS Name

Enter vCenter Server DNS Name

Enter an Administrator account and password which has access to vCenter Server, followed by Next.
  • Enter Administrator username and password

Enter Administrator username and password

the following dialogue boxes will appear in turn
  • Detecting server type

Detecting server type

  • Saving server to configuration

Saving server to configuration

after a few seconds the final Summary dialogue appears, confirming Successful addition of the vCenter Server. Click Finish.
  • Successful Configuration

Successful Configuration

Click the “+” sign next to VMware vSphere, and expand, this will show the list of Virtual Machines registered on VMware vSphere vCenter.
  • Show Virtual Machines registered on vCenter Server

Show Virtual Machines registered on vCenter Server

3

Using the Veeam QuickMigration function

In this tutorial, we will Quick Migrate a Live virtual machine called “Cyrus Time NTP Appliance“, although this is a small virtual machine appliance it’s very important because this single appliance is responsible for providing correct time synchronisation for all servers, workstations, routers, switches and printers in our offices.

This virtual machine is currently hosted on an VMware vSphere Hypervisor ESXi 5.0 host called – esxdev005.cyrus-consultants.co.uk, and is stored on the hosts local datastore called esxdev005_local_vmfs5.

  • Virtual Machine to be Quick Migrated

Virtual Machine to be Quick Migrated

and in this tutorial we will Quick Migrate the Live virtual machine to a host called – esxdev004.cyrus-consultants.co.uk and a shared storage iSCSI LUN, formatted VMFS5 datastore called lun26_filer03. This is an iSCSI LUN, on a NetApp filer.

Right Click the Virtual Machine to be QuickMigrated and select Quick Migration

  • Select the Virtual Machine

Select the Virtual Machine

the following screen confirms the virtual machine you would like to Quick Migrate, Click Next to confirm
  • Confirm virtual machine for quick migration

Confirm virtual machine for quick migration

Select Destination host, resource pool, VM folder and datastore. In this tutorial the screeenshot shows the selection we have selected, followed by Next.
  • Select Destination host, resource pool, VM folder and datastore.

Select Destination host, resource pool, VM folder and datastore.

The next screen asks which proxy to use, with the Free Edition, there is only one Backup Proxy installed on the default server, so select Automatic, and click Next. In the licensed version of Veeam Backup & Replication, multiple Backup Proxys can increase transfer times.
  • Select Backup Proxy – leave as Automatic

Select Backup Proxy - leave as Automatic

The following diaglogue boxes appears that
  • Checks the possibility of migration

Checks the possibility of migration

this ensures ESX/ESXi hosts are reachable, datastores, and networks are correct.

A confirmation screen is displayed which summarises the Migration, Click Finish to start the Quick Migration. You can also select that the source VM is deleted after a successful migration. (tick box)

  • Ready for Quick Migration

Ready for Quick Migration

The Quick Migration in Progress
  • Quick Migration in Progress

Quick Migration in Progress

Quick Migration Completed successfully
  • Quick Migration Completed successfully

Quick Migration Completed successfully

The following screenshot shows the Quick Migrated machine, on the correct host and datastore.
  • Quick Migrated Virtual Machine

Quick Migrated Virtual Machine

Finally, on inspection in the vSphere Client, you will find, you have a backup of the original VM called <vm name>_migrated and the migrated virtual machine on the host and datastore selected.

  • Quick Migrated Virtual Machines

Quick Migrated Virtual Machines

BUT, both VMs are Suspended, so just issue a Power-On Request to your original VM to resume service! (that’s CTRL+B)

I suspect there is a little bugget here with VMware vSphere Client because both VMs are suspended and should have Pause Symbols, but there is a Pause Symbol missing from the Migrated VM, I suspect it’s not refreshing after being Registered with vCenter Server, if you watch carefully, you will see a Pause symbol shortly after a Power-On is issued, and then changes to a Green Powered On Symbol.

In this tutorial article we have shown How To Migrate a Live Virtual Machine from an ESX/ESXi host, to another ESXi/ESX host, and migrate from local storage to shared storage for FREE using the Quick Migrate function in the latest version of Veeam Backup Free Edition.

Try it today, it’s free, and much easier than alternative methods.

Fantastic – Altaro Hyper-V Backup for Windows 2012 – because Andy! says so!

Friday, August 24th, 2012

Just a quick blog, about this fantastic Backup Software, now with Beta software you always expect some issue, does not work, you’ll spend many hours trying to get it to operate.

But I was so impressed within 120 seconds, from installation, it had installed, detected I was using Cluster Hyper-V 2012, installed two agents onto the Hyper-V Nodes in the Cluster, and started to Backup to a NAS with no issues!

and this is BETA! I cannot wait for the full version and release!

Download Link > http://www.altaro.com/hyper-v-backup/contest-download.php

Thumbs up Guys!, Well Done, puts many other software houses to shame, that have Hyper-V Backup Applications, do I have to name them!?

windows-2012-cluster1windows-2012-cluster2windows-2012-cluster3windows-2012-cluster4

Building End – User Computing Solutions with VMware View

Friday, August 3rd, 2012

screen-shot-2012-08-02-at-15-46-51

Barry Coombs and Mike Laverick’s new book Building End – User Computing Solutions with VMware View has just been published. It’s available here as an eBook.

I was fortunate enough as one of the VMware vExperts in the Community to proof read the book before publication. You can see my name in print on Page 6!

Needless to say, it’s an excellent book, and should be on all VMware View Admin Bookshelves!

This copy of Windows is not activated.

Sunday, July 22nd, 2012

Been changing some VMware hardware, on some Windows Servers hosted on VMware vSphere, and this error popped up!

Virtual hardware on virtual servers of course!

activated1

VMware vEXPERT 2012 New Logo

Saturday, June 2nd, 2012

what more can I say here it is:-

vmw-logo-vexpert_2012_k

I’m a VMware vExpert 2012 for the second year #vExpert

Sunday, April 15th, 2012

No email as yet, but I’ve just heard via twitter, my name appears on the vExpert 2012 title holders have been announced in this document published today

Announcing vExpert 2012 title holders

VMware vExpert 2011