Reply to comment

Vermindern der IO-Last auf dem Datastore bei VMware View

Bei der Verwendung von virtuellen Desktops, z.B. mit VMware View, ist es vorteilhaft das Logging der virtuellen Maschinen abzuschalten. Wer es vergessen hat, kann dies in einem Rutsch auf allen Desktops per vSphere PowerCLI nachholen:

Connect-ViServer vcenter-address Get-VM -name vdi* | %{ $vm = Get-VM $_.Name | Get-View $spec = New-Object VMware.Vim.VirtualMachineConfigSpec $spec.flags = New-Object VMware.Vim.VirtualMachineFlagInfo $spec.flags.enableLogging = $false $vm.ReconfigVM($spec) }

vcenter-address muss durch den vCenter Namen bzw. die IP ersetzt werden.
"vdi" sind die Anfangsbuchstaben der VMs.
Wer alle VMs ändern will kann "-name vdi*" einfach weglassen:

Connect-ViServer vcenter-address

Get-VM | %{
$vm = Get-VM $_.Name | Get-View
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.flags = New-Object VMware.Vim.VirtualMachineFlagInfo
$spec.flags.enableLogging = $false
$vm.ReconfigVM($spec)

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.