For the PDF off vmware go to the following link: http://www.vmware.com/files/pdf/practical_guide_bcdr_vmb.pdf
Or download it local: [wpdm_file id=”16″]
For the PDF off vmware go to the following link: http://www.vmware.com/files/pdf/practical_guide_bcdr_vmb.pdf
Or download it local: [wpdm_file id=”16″]
This issue occurs when the Console tab is being viewed on 10 or more virtual machines in under 30 seconds.
This issue occurs when the number of session tickets exceeds the the amount of default concurrent connections that vpxd allows. To workaround this issue, increase the Session Ticket maximum value to 1024. To increase the Session Ticket maximum value:
VMware KB: 1020496
Searching for disk alignments off the windows 2003 servers on VMware ESX i found a CLI script which can automate the search. The original site: http://ict-freak.nl/2009/12/15/powercli-check-partition-alignment-windows-vms-only/
Script:
$myCol = @()
$vms = get-vm | where {$_.PowerState -eq "PoweredOn" -and `
$_.Guest.OSFullName -match "Microsoft Windows*" } | Sort Name
foreach($vm in $vms){
$wmi = get-wmiobject -class "Win32_DiskPartition" `
-namespace "root\CIMV2" -ComputerName $vm
foreach ($objItem in $wmi){
$Details = "" | Select-Object VMName, Partition, Status
if ($objItem.StartingOffset -eq "65536"){
$Details.VMName = $objItem.SystemName
$Details.Partition = $objItem.Name
$Details.Status = "Partition aligned"
}
else{
$Details.VMName = $objItem.SystemName
$Details.Partition = $objItem.Name
$Details.Status = "Partition NOT aligned"
}
$myCol += $Details
}
}
$myCol | Export-Csv -NoTypeInformation "C:\PartitionAlignment.csv"
#$myCol | Export-Clixml "C:\PartitionAlignment.xml"
Searching for way’s to create easy backup’s of a few virtual machines, i came on the website gestalt it (http://gestaltit.com/all/tech/virtualization/simon/vmware-backup-powercli-script/).
On this website there is a script which will create a snapshot of a VM, then clone it (thin provisioned) and finally remove the snapshot off the original VM.
Backup Script
# Import Backup CSV
$backupinfo = Import-Csv C:\scripts\mybackups.csv
#Set Date format for clone names
$date = Get-Date -Format "yyyyMMdd"
#Set Date format for emails
$time = (Get-Date -f "HH:MM")
#Connect to vCenter
Connect-VIServer ""
foreach ($customer in $backupinfo)
{
$vm = Get-VM $customer.MasterVM
#Send Start Email
C:\scripts\backupstartedemail.ps1
# Create new snapshot for clone
$cloneSnap = $vm | New-Snapshot -Name "Clone Snapshot"
# Get managed object view
$vmView = $vm | Get-View
# Get folder managed object reference
$cloneFolder = $vmView.parent
# Build clone specification
$cloneSpec = new-object Vmware.Vim.VirtualMachineCloneSpec
$cloneSpec.Snapshot = $vmView.Snapshot.CurrentSnapshot
# Make linked disk specification
$cloneSpec.Location = new-object Vmware.Vim.VirtualMachineRelocateSpec
$cloneSpec.Location.Datastore = (Get-Datastore -Name $customer.BackupDS | Get-View).MoRef
$cloneSpec.Location.Transform = [Vmware.Vim.VirtualMachineRelocateTransformation]::sparse
$cloneName = "$vm-$date"
# Create clone
$vmView.CloneVM( $cloneFolder, $cloneName, $cloneSpec )
# Write newly created VM to stdout as confirmation
Get-VM $cloneName
# Remove Snapshot created for clone
Get-Snapshot -VM (Get-VM -Name $customer.MasterVM) -Name $cloneSnap | Remove-Snapshot -confirm:$False
#Send Complete Email
C:\scripts\backupcompletedemail.ps1
}
#Disconnect from vCentre
Disconnect-VIServer -Confirm:$false
Send Started Email Script
#Set Date format for emails
$timestart = (Get-Date -f "HH:MM")
$emailFrom = ""
$emailTo = ""
$subject = "[$vm - Backup Started]"
$body = "Backup Details
-------------
VM Name:",$vm,"
Clone Name:","$vm-$date","
Target Datastore:", $customer.BackupDS,"
Time Started:", $timestart
$smtpServer = ""
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom,$emailTo,$subject,$body)
Send Completed Email Script
#Set Date format for emails
$timecomplete = (Get-Date -f "HH:MM")
$emailFrom = ""
$emailTo = ""
$subject = "[$vm - Backup Complete]"
$body = "Backup Details
-------------
VM Name:",$vm,"
Clone Name:","$vm-$date","
Target Datastore:", $customer.BackupDS,"
Time Started:", $timestart,"
Time Completed:", $timecomplete
$smtpServer = ""
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom,$emailTo,$subject,$body)
CSV File
The content of the csv file is very simple. This is what mine looks like:
MasterVM,BackupDS
VM1,BackupDataStore
VM2,BackupDataStore
Installing the Performance Overview plug-in in VirtualCenter 2.5 Update 4 and above
VMware KB: 1008296
VMware has put back the old vmkusage as a vc plugin. Read the VMware article to install the plugin.
(picture is from run-virtual.com, see for the post and more images: http://www.run-virtual.com/?p=276)
ESX communicates with virtual center through what is loosely described as, “management agents”. When you hear TSE’s talk about “management agents”, we’re really talking about 3 things: vpxa, hostd, and vpxd
Vpxa lives on the ESX host (on the service console), it communicates with hostd. It’s mostly a listener service, and is very rarely an issue. Hostd lives on the ESX host (on the service console). This is the lion, the vast majority of “disconnects” indicate a problem with hostd, and vpxd lives on your virtual center server. These 3 services form a communications chain, and failure of one or more of these services, tends to produce “disconnects”.
Restarting the Management agents on an ESX or ESXi Server
Links:
Link: http://blogs.vmware.com/vipowershell/files/vmworld_europe_2008_powershell_lab_7_manual.pdf
Or local download: [wpdm_file id=”15″]
For a easy reference card of PowerCLI commands, browse to:
http://www.netbuild.ru/wp-content/uploads/2009/08/PowerCLI_reference_v01.pdf
The VMware Support Toolbar gives you instant access to documentation, patches, live peer to peer chat and more.
To download and install: http://vmwaresupport.toolbar.fm/
After Setting the VMware DRS settings to Fully automated, the scheduling affinity menu was missing (see figure 1). If you want to change scheduling affinity, set the DRS settings to manual or partial (see figure 2).