Skip navigation
1 2 Previous Next

Darshana's Blog

23 posts

connect-viserver vcentername

$vmname=read-host -Prompt "ENter the VM Name"

 

if (get-vm $vmname -erroraction SilentlyContinue)

    {

    $vdisk=get-vm $vmname |Get-VMHardDiskDrive

 

 

    $allvms=get-vm

       

 

        foreach ($allvm in $allvms)

            {

            if ($allvm.name -ne $vmname)

                {

                $vmdiskpath=get-vm $allvm |get-harddisk

                    foreach($disk in $vdisk)

                        {

                        if ($vmdiskpath.filename -eq $disk.filename)

                            {

                            $msg="There is a VMDKS sharing with "

                            $msg2=$allvm.name

                            $fullmsg=$msg+$msg2

                            Write-Host $fullmsg -ForegroundColor DarkGreen

                            }

                        }

                }

 

            }

    }

    else

    {

    Write-Host "VM is not available in the vCenter, please check the vm name"

    }

connect-viserver vcenter01 -user administrator@vsphere.local -password VMware1!

Write-host "No of VMs to deploy"

$noofvms=Read-host

write-host "Enter the naming convention"

$vmaname=read-host

for($count=0;$count -le ($noofvms-1);$noofvms++)

{

new-vm -name ($vmname+$count) -vmhost (get-cluster cluser01|get-vmhost|get-random) -disksizemb 100 -portgroup vlan100

}

VCAP 6-Deployment-HA Cluster - YouTube

 

I have recorded this video for those who following vCAP -deployment. This includes HA cluster configuration with some advanced settings

dja234 Enthusiast
vExpert

Manage vCenter appliance

Posted by dja234 Sep 3, 2017

Hi,

 

I'm preparing for VCAP deployment and I have done step by step guide using Microsoft Onenote. Some of the practicals are still pending. but 60% are completed.Some times it may be help you for your exam.

 

VCAP-6-Deployment | VMware,Microsoft Knowledge Sharing Portal