lukeglazebrook's Posts

All, Thanks for any help you can provide in advance, I am being pressed into leaving SSH enabled across out estate by the security team (all be it with IP limited rules in place).  The purpose... See more...
All, Thanks for any help you can provide in advance, I am being pressed into leaving SSH enabled across out estate by the security team (all be it with IP limited rules in place).  The purpose of this is so our security appliance’s can scan the hosts.  Perhaps I am being slightly anal but this irks be so I thought I would run it past the community and get a more unbiased opinion.  Aside from the fact it feels wrong and its seemingly an unnecessary service using up resource (admitedly a small amount) and will nag me with exclamation marks does anyone know if VMware verry specifically approve/disapprove of it? I am also concerned that it might mean we are no longer PCS DSS complaint.  I initially suggest we run a script to briefly disable it prior ot a scan.  What are everyone else’s thoughts on the matter?
Balls ....  Andreas Peetz April 17th, 2019Great article!I know this has never been on the HCL, but there are a lot of people running ESXi on commodity hardware with Realtek 8168/8169 N... See more...
Balls ....  Andreas Peetz April 17th, 2019Great article!I know this has never been on the HCL, but there are a lot of people running ESXi on commodity hardware with Realtek 8168/8169 NICs. It would be super cool if VMware provided a native driver for those devices   Trackbacks/Pingbacks Анонс VMware vSphere 6.7 update 2 | vMind.ru vToolbelt - April 2019 - Cybersylum Comments are closed.
Has anyone created a custom ESXi 7.0 ISO with mainly community supported drivers baked in?  I really wanted to get my old lab up and running so I could learn the new features.  Unfortuately howev... See more...
Has anyone created a custom ESXi 7.0 ISO with mainly community supported drivers baked in?  I really wanted to get my old lab up and running so I could learn the new features.  Unfortuately however I install blocker that basically said it could not see any of my NICs (E1000 & R8168) the Realtek is onboard and the E1000 are card based. Regretfully I cant really afford to build an entire new lab   My hosts were a popular community AMD based build list of parts.
I have a x2PSC and x2vCenter appliances running in linked mode accross two seperate sites.  I'm planning the upgrade now however my concern is our hosts (mainly IBM UCS M3/4 series B200 blades) d... See more...
I have a x2PSC and x2vCenter appliances running in linked mode accross two seperate sites.  I'm planning the upgrade now however my concern is our hosts (mainly IBM UCS M3/4 series B200 blades) dont have a 6.7 vendor imagine.  I dont really want to put us in a situation where either VMware or Cisco UCS wont support out configuration.  Is it OK to leave them on 6.5U1 long term I know its a supported configuration short term at least but dont know about long? Also as a bonus question does it matter which site I upgrade first?  I will be proceeding with the Platform Services Controllers then the vCenter servers but not sure if it matters if I proceed with the large site or small site first. I dont believe linked mode runs as a primary or master config but could be wrong.
Does anyone know if you can schedule the automatical removal of snapshots older than X days in vRealize Operations Manager 7.0?  I vaguely recollect it was possible in vROPs 6, it's easy enough t... See more...
Does anyone know if you can schedule the automatical removal of snapshots older than X days in vRealize Operations Manager 7.0?  I vaguely recollect it was possible in vROPs 6, it's easy enough to do it manually within the GUI but I'm looking to schedule it for the entire estate anything older than 4 days. Thanks in advance
Hi All, Thanks in advance for any help you can provide, I already have a cool bit of PowerCLI that will configure the host Syslog servers in my environment.  I was however wondering if anyone ... See more...
Hi All, Thanks in advance for any help you can provide, I already have a cool bit of PowerCLI that will configure the host Syslog servers in my environment.  I was however wondering if anyone is aware of how I can add to this and also tweak amend the logging level effectively editing the config.xml (which is required from my understanding ... VMware vSphere 6.5 Documentation Library The script I have been using to add add a specific syslog server ... write-Host "Loading Automation Tools" Add-PSSnapin VMware.VimAutomation.Core # Establish Connection Connect-VIServer -Server SecretServer.co.uk -User Luke@SecretDomain -Password TopSecretIWouldHaveToKillYouIfYouSawMe Foreach ($vmhost in (get-vmhost)) { $esxcli = Get-EsxCli -vmhost $vmhost $esxcli.system.syslog.config.get() } Foreach ($vmhost in (get-vmhost)) { $esxcli = Get-EsxCli -vmhost $vmhost $esxcli.system.syslog.config.set($null, $null , $null, $null, $null, $null, $null, $null, “udp://Blah:514,udp://Blah:514,udp://svr0123:514”, $null, $null); $esxcli.network.firewall.ruleset.set($null, $true, “syslog”) $esxcli.system.syslog.reload() }
Similar to Runecast from memory in principle but free. 
I vaguely recollect VMware recently released a new tool (the name of which eludes me currently).  The general idea behind it was that it checks general best practice, firmware mismatches etc.  Wo... See more...
I vaguely recollect VMware recently released a new tool (the name of which eludes me currently).  The general idea behind it was that it checks general best practice, firmware mismatches etc.  Would someone kindly jog my memory I would like to take a look at it    
For anyone curious it appears to be the storage controllers are at fault, iSCSI latency for other clients is up to 7 seconds!
Update we just tried presenting the same storage to a completely different host in another cluster with the same results, so far it definitely looks like the storage.
Not sure if anyone has experienced this issue before but any advice would be greatly appreciated.  Our iSCSI NetApp FAS storage controllers were recently updated, now hosts take eternity to boot ... See more...
Not sure if anyone has experienced this issue before but any advice would be greatly appreciated.  Our iSCSI NetApp FAS storage controllers were recently updated, now hosts take eternity to boot and are semi unresponsive unless we unpresent the NetApp FAS then they spring to life.  They tend to hang during boot on "nfs client loaded successfully" although we are using iSCSI in this instance. In addition when they are presented after boot to a single host the LUN can be seen and attached but after a fall re-scan the datastores and subsequent VM contents do not return.  We are currently engaged with VMware support who have been helpful but we are running out of idea's
I just googled "download latest PowerCLI" and found 6.5 as being the latest. https://www.google.co.uk/search?q=download+latest+PowerCLI&rlz=1C1CAFB_enGB719GB719&oq=download+latest+PowerCLI&aqs... See more...
I just googled "download latest PowerCLI" and found 6.5 as being the latest. https://www.google.co.uk/search?q=download+latest+PowerCLI&rlz=1C1CAFB_enGB719GB719&oq=download+latest+PowerCLI&aqs=chro…
Upgraded to PowerCLI to 6.5 getting used to the changes, any idea what the equivalent of "Connect-VIServer" and what the syntax would be... For example I currently connect into the infrastruc... See more...
Upgraded to PowerCLI to 6.5 getting used to the changes, any idea what the equivalent of "Connect-VIServer" and what the syntax would be... For example I currently connect into the infrastructure with .... "Connect-VIServer -Server myserver.domain.internal -User user@myserver.domain.internal -Password MyPassword I need to make all my old scripts work Thanks in advance.
That worked flawlessly thanks mate, incidentally for the newer PowerCLI versions can you tell me the equivalent of ... Add-PSSnapin VMware.VimAutomation.Core The above is contained in all m... See more...
That worked flawlessly thanks mate, incidentally for the newer PowerCLI versions can you tell me the equivalent of ... Add-PSSnapin VMware.VimAutomation.Core The above is contained in all my scripts and they don't work if I am running the script from a machine containing newer versions of PowerCLI 6.3+.
Running that little test/snippet of code mate I get the following output, with seemingly no errors... StorageFormat   : Thin Persistence     : Persistent DiskType        : Flat Filename  ... See more...
Running that little test/snippet of code mate I get the following output, with seemingly no errors... StorageFormat   : Thin Persistence     : Persistent DiskType        : Flat Filename        : [blah_Content_Library] TestVM1/TestVM1.vmdk CapacityKB      : 42991616 CapacityGB      : 41 ParentId        : VirtualMachine-vm-40172 Parent          : Uid             : /VIServer=blah\serverlukeg@blah.internal.secret.co.uk:443/VirtualMachine=VirtualMachine-vm-                   40172/HardDisk=2000/ ConnectionState : ExtensionData   : VMware.Vim.VirtualDisk Id              : VirtualMachine-vm-40172/2000 Name            : Hard disk 1 Client          : VMware.VimAutomation.ViCore.Impl.V1.VimClient PS H:\>
I ran that script mate and got the below, for clarity the drives on the VM's are already 40GB.  Can I confirm this does extend the drive rather than nuke it and replace it with a larger one?  ...... See more...
I ran that script mate and got the below, for clarity the drives on the VM's are already 40GB.  Can I confirm this does extend the drive rather than nuke it and replace it with a larger one?  ...  If I change the value to 41GB however its works great, just a tad worried I might lose data however if I run it on production.  Thanks however mate, feel free to educate me and let me know how I was being a newb with this one. Set-HardDisk : 16/04/2018 11:03:56    Set-HardDisk        The specified size '20971520' is less than actual size of the virtual disk '41943040'.    At H:\Handy PowerCLI Scripts\IncreaseDiskXXGB\IncreaseDisk120GB.ps1:16 char:4 +    Set-HardDisk -CapacityGB ($_.CapacityGB + 20) -Confirm:$false +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidArgument: (:) [Set-HardDisk], InvalidArgument     + FullyQualifiedErrorId : Client20_VirtualDeviceServiceImpl_TryValidateHardDiskNewSize_InvalidSize,VMware.VimAutomation.V    iCore.Cmdlets.Commands.VirtualDevice.SetHardDisk Set-HardDisk : 16/04/2018 11:03:57    Set-HardDisk        The specified size '20971520' is less than actual size of the virtual disk '41943040'.    At H:\Handy PowerCLI Scripts\IncreaseDiskXXGB\IncreaseDisk120GB.ps1:16 char:4 +    Set-HardDisk -CapacityGB ($_.CapacityGB + 20) -Confirm:$false +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidArgument: (:) [Set-HardDisk], InvalidArgument     + FullyQualifiedErrorId : Client20_VirtualDeviceServiceImpl_TryValidateHardDiskNewSize_InvalidSize,VMware.VimAutomation.V    iCore.Cmdlets.Commands.VirtualDevice.SetHardDisk Set-HardDisk : 16/04/2018 11:03:59    Set-HardDisk        The specified size '20971520' is less than actual size of the virtual disk '41943040'.    At H:\Handy PowerCLI Scripts\IncreaseDiskXXGB\IncreaseDisk120GB.ps1:16 char:4 +    Set-HardDisk -CapacityGB ($_.CapacityGB + 20) -Confirm:$false +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidArgument: (:) [Set-HardDisk], InvalidArgument     + FullyQualifiedErrorId : Client20_VirtualDeviceServiceImpl_TryValidateHardDiskNewSize_InvalidSize,VMware.VimAutomation.V    iCore.Cmdlets.Commands.VirtualDevice.SetHardDisk
Current versions ... Name                          Version ----                          ------- VMware.VimAutomation.Cis.Core 6.0.0.0 VMware.VimAutomation.Common   6.3.0.0 VMware.VimAutom... See more...
Current versions ... Name                          Version ----                          ------- VMware.VimAutomation.Cis.Core 6.0.0.0 VMware.VimAutomation.Common   6.3.0.0 VMware.VimAutomation.Sdk      6.3.0.0
Nothing too obvious in that error I'm afraid. Did you already stop/start your PowerShell/PowerCLI session? I tried killing PowerShell and restarting mate but unfortunately no banana, same pro... See more...
Nothing too obvious in that error I'm afraid. Did you already stop/start your PowerShell/PowerCLI session? I tried killing PowerShell and restarting mate but unfortunately no banana, same problem. You seem to be using an older PowerCLI version, which version is it? Can you upgrade? From memory I was deliberately holding off upgrading, think I discovered newer version broke scripts/reports I ran on occasions.  I will however pursue this now and report back mate. Attached is the .CSV file if it helps ...
Found a script that should theoretically increase the disk size on a .csv list of VM's.  Unfortunately however it fails, and in honesty I dont have any idea why, using F8 to step through it you c... See more...
Found a script that should theoretically increase the disk size on a .csv list of VM's.  Unfortunately however it fails, and in honesty I dont have any idea why, using F8 to step through it you can see where it fails below.  Any suggestions would be greatly appreciated, this is vSphere 6.5 if its relevant. write-Host "Loading Automation Tools" Add-PSSnapin VMware.VimAutomation.Core # Establish Connection Connect-VIServer -Server SecretServer -User ME -Password SecretPassword Import-Csv -Path 'C:\temp\testvms.csv' | %{    $VMx = $_.Name    $vm = get-vm |?{$_.Name -eq $VMx}    $HD = get-harddisk -VM $vm.Name -Name "Hard disk 1"    $NewCap = [decimal]::round($HD.CapacityGB + 20)    $HD | Set-harddisk -CapacityGB  $NewCap } OUTPUT... SecretServer... 443   hidden\ServerMe       Get-HardDisk : 16/04/2018 09:17:07    Get-HardDisk        Exception has been thrown by the target of an invocation.    At C:\temp\IncreaseDisk120GB.ps1:13 char:10 +    $HD = get-harddisk -VM $vm.Name -Name "Hard disk 1" +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Get-HardDisk], VimException     + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetHard    Disk Set-HardDisk : Cannot validate argument on parameter 'HardDisk'. The argument is null. Provide a valid value for the argument, and then try running the command again.At C:\temp\IncreaseDisk120GB.ps1:15 char:10 +    $HD | Set-harddisk -CapacityGB  $NewCap +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidData: (:) [Set-HardDisk], ParameterBindingValidationException     + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.Set    HardDisk Get-HardDisk : 16/04/2018 09:17:07    Get-HardDisk        Exception has been thrown by the target of an invocation.    At C:\temp\IncreaseDisk120GB.ps1:13 char:10 +    $HD = get-harddisk -VM $vm.Name -Name "Hard disk 1" +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Get-HardDisk], VimException     + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetHard    Disk Set-HardDisk : Cannot validate argument on parameter 'HardDisk'. The argument is null. Provide a valid value for the argument, and then try running the command again.At C:\temp\IncreaseDisk120GB.ps1:15 char:10 +    $HD | Set-harddisk -CapacityGB  $NewCap +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidData: (:) [Set-HardDisk], ParameterBindingValidationException     + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.Set    HardDisk Get-HardDisk : 16/04/2018 09:17:07    Get-HardDisk        Exception has been thrown by the target of an invocation.    At C:\temp\IncreaseDisk120GB.ps1:13 char:10 +    $HD = get-harddisk -VM $vm.Name -Name "Hard disk 1" +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [Get-HardDisk], VimException     + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.GetHard    Disk Set-HardDisk : Cannot validate argument on parameter 'HardDisk'. The argument is null. Provide a valid value for the argument, and then try running the command again.At C:\temp\IncreaseDisk120GB.ps1:15 char:10 +    $HD | Set-harddisk -CapacityGB  $NewCap +          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidData: (:) [Set-HardDisk], ParameterBindingValidationException     + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.VirtualDevice.Set    HardDisk PS H:\>
Greg from VMware support came back on this one .... Error: Replication "TestVM" on the source site has been force-stopped. This is an issue with the hbr disks and the sync, as opposed t... See more...
Greg from VMware support came back on this one .... Error: Replication "TestVM" on the source site has been force-stopped. This is an issue with the hbr disks and the sync, as opposed to the configuration of the environment. The only way to get around this is to recreate the replication for the VM from as new. You will need to force stop the replication to delete the replicated data and then re-configure the VM's replication. Make sure all target sites are authenticated under the Manage tab for vsphere Replication. Make sure after Force Stop the VM is removed from the incoming and outgoing tabs for the sites. You could also replicate the disks to a new datastore to ensure the new data does not get referenced in anyway to the old. SSH commands You can run these commands from ssh to query the replication of a VM. #vim-cmd vmsvc/getallvms grep -i VMname GID=> # vim-cmd hbrsvc/vmreplica.getConfig VMID #vmreplica.getState Returns the state of replication. If there is currently a replication task in progress it will show the status of the ongoing replication. #vmreplica.queryReplicationState Returns the current replication state of a virtual machine and the amount of data transferred.