VMware PowerCLI – Adding RDM Disk’s

David Ring

See also: VMware PowerCLI – Adding VMFS Datastore’s

After creating the required LUN’s on your storage array and mapped the LUN’s to your ESXi hosts then you may use PowerCLI to add these new LUNs as RDM Disk’s to a Virtual Machine.

The first four steps outline how to use PowerCLI to add an individual RDM to a Virtual Machine and the second section provides the script to add multiple RDM volumes to a Virtual Machine(s).

1. Connect to vCenter:
Connect-VIServer -Server “vCenter_IP” -User UserName -Password Password

If you need to retreive the Cluster and Host names:
look up the Cluster Name:
Get-Cluster
look up the Host names in the cluster:
Get-Cluster ‘Cluster Name’ | Get-VMHost | Select Name

2. Retrieve the ConsoleDeviceName(s):
In order to use the New-HardDisk cmdlet we require the ‘ConsoleDeviceName’ parameter associated with each LUN. In this example we will use the Get-SCSILun cmd to return…

View original post 620 more words

vSphere 5.x Storage vMotion does not rename virtual machine files on completing migration

My colleague is have sad me, when somebody will rename inventory name of VM, than do storage vMotion, and below options was enabled on ESXi, storage vMotion are going to rename folder name of VM to same name of inventory. You can set up this option, if you are follow this steps:

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

Moving a managed ESXi/ESX host from one vCenter Server to another vCenter Server

In our environment, we have 3 datacenters. The legacy consist of IBM blade servers with virtual vCenter, and the new consist of Cisco UCS blade servers, with other vCenter. This is virtual same. We guessed that insert IBM servers into vCenter of Cisco servers. I found a vmware KB articel. This is very easy procedure, if they aren’t use vDS.

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

vCenter 6.0 Install Linked Mode

I have 2 site in my lab environment. For eximple HQ site and DR-SITE, and each site have one-one vCenter server. Management will be easy when use this two vCenter servers in linked mode options. You can see two vCenter servers in same management application, WebClient or vSphere Client (thick). Platform Services Controll are going to replicate between two vCenter. I will show  you how able to create linked mode vCenter environment.

Requiments: You need VC1.LAB.LOC, this is a simple embedded deployment vCenter 6.0, nothing special, typical next next finish install.

1 – Insert VMware vSphere 6.0 media into the CD-ROM, or mount ISO, then choose vCenter Install

VC1-2015-03-14-12-26-41

2 – Accept license Agreement

VC1-2015-03-14-12-26-44

3 – On Select deployment type page, you can choose Embedded deployment

VC1-2015-03-14-12-26-49

4 – Type System Network Name (FQDN – Full name)

VC1-2015-03-14-12-26-52

5 – vCenter Single Sign-On you can choose “Join a vCenter Single Sign-On” option

VC1-2015-03-14-12-27-04

VC1-2015-03-14-12-27-11

6 – Create a New Site like DR-SITE

VC1-2015-03-14-12-27-22

7 – Configure vCenter Service Account (You can use AD domain service Account. In this example i select local system admin account)

VC1-2015-03-14-12-27-26

8 – Select database, like embedded vPostgress or full MS SQL 2008 r2 on external or internal server
http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vsphere.install.doc/GUID-2F1D0E79-52C4-4DC2-AF01-11564207FBE1.html

VC1-2015-03-14-12-27-28

9 – Check ports

VC1-2015-03-14-12-27-30

10 – Select destination folders

VC1-2015-03-14-12-27-43

11 – Check the summary

VC1-2015-03-14-12-27-47

12 – Install process

VC1-2015-03-14-12-34-54 VC1-2015-03-14-12-47-22 VC1-2015-03-14-22-22-55

13 – If you did everyfing right, you can see someting like this picture, when you loged in any vCenter server.

VC1-2015-03-14-22-25-05

I hope this article help for you a little bit!

vCenter Server Example Upgrade Paths

How can upgrade vSphere 5.5 to 6.0.0?

http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vsphere.upgrade.doc/GUID-78B9F91E-36BE-4B76-B214-BF8229576C30.html

I upgraded my lab environment the last day, and i share for you any screenshots.

I used my vCenter Servers in Linked Mode options. I couldn’t found how to this scanerio. Maybe somebade else?

My expereince was not bad, my first vCenter Server keep alive after upgrade process 🙂

Now i continou test, and i will report from there!

VC1-2015-03-13-07-53-56 VC1-2015-03-13-07-54-22 VC1-2015-03-13-07-54-37 VC1-2015-03-13-08-01-11 VC1-2015-03-13-08-01-52 VC1-2015-03-13-08-02-13 VC1-2015-03-13-08-02-42 VC1-2015-03-13-08-03-06 VC1-2015-03-13-08-03-48 VC1-2015-03-13-08-05-35 VC1-2015-03-13-08-08-54 VC1-2015-03-13-08-13-00 VC1-2015-03-13-08-26-31 VC1-2015-03-13-08-30-33 VC1-2015-03-13-08-37-13 VC1-2015-03-13-08-42-29 VC1-2015-03-13-09-41-44 VC1-2015-03-13-09-43-45 VC1-2015-03-13-09-44-34 VC1-2015-03-13-09-44-40