DyJohnnY's Posts

Why is it that the last number in the naa ID do not match?
Hi, I am trying to make a comparison between running a workload on a physical host and running it inside a VM with the same specs as the physical host. The workload is CPU intensive and leverages... See more...
Hi, I am trying to make a comparison between running a workload on a physical host and running it inside a VM with the same specs as the physical host. The workload is CPU intensive and leverages CPU cache a lot. Running 7.0U2 as ESXi   The OS on the bare metal and the VM is Ubuntu 20.04 Hyper threading is on in both scenarios. The lscpu output on physical host is: lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 46 bits physical, 48 bits virtual CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 16 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz Stepping: 6 CPU MHz: 1950.442 CPU max MHz: 3900.0000 CPU min MHz: 1000.0000 BogoMIPS: 4600.00 Virtualization: VT-x L1d cache: 1 MiB L1i cache: 1 MiB L2 cache: 32 MiB L3 cache: 44 MiB NUMA node0 CPU(s): 0-15,32-47 NUMA node1 CPU(s): 16-31,48-63   The ouptut on the VM configured with 32 vCPUs is: lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits virtual CPU(s): 32 On-line CPU(s) list: 0-31 Thread(s) per core: 1 Core(s) per socket: 16 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz Stepping: 6 CPU MHz: 2294.609 BogoMIPS: 4589.21 Hypervisor vendor: VMware Virtualization type: full L1d cache: 64 KiB L1i cache: 64 KiB L2 cache: 2 MiB L3 cache: 44 MiB NUMA node0 CPU(s): 0-15 NUMA node1 CPU(s): 16-31   Is there a way to configure a VM in such a way that it will present the same amount of L2 cache to the guest OS, as the physical layout?   Thanks
Hi,   I'm trying to get the CIM equivalent of information returned by smbiosDump. I am especially interested in the SKU field of smbiosDump Example of SKU section of the "system info" from smbios... See more...
Hi,   I'm trying to get the CIM equivalent of information returned by smbiosDump. I am especially interested in the SKU field of smbiosDump Example of SKU section of the "system info" from smbiosDump System Info (Type 1): #1 Manufacturer: "IBM" Product: "Some Server" Version: "07" Serial: "....." SKU: "ABCDSomeSKU"   I searched the view object for the vmhost under hardware.systeminfo on all properties and this is not returned anywhere. Is there any way I can grab this via the API or CIM?
I am trying to write a kickstart script that will clear all partitions from all the drives in the system. However I want the local USB boot mounted from the BMC to be skipped. This device name can b... See more...
I am trying to write a kickstart script that will clear all partitions from all the drives in the system. However I want the local USB boot mounted from the BMC to be skipped. This device name can be vmhba32, vmhba33 and so on, depending on what other drives may have been mounted on the BMC previously. Is there a way to use wildcards with --ignoreddrives option? Alternatively, will clearpart not touch the local USB partitions and not throw a deployment error if they exist, so I won't have to bother specifying an ignored drive?
Hi, I'm trying to make a scrip that will automatically reconfigure certain services like imagebuilder and auto-deploy to automatic startup using powercli. I saw wlam's post about how to get... See more...
Hi, I'm trying to make a scrip that will automatically reconfigure certain services like imagebuilder and auto-deploy to automatic startup using powercli. I saw wlam's post about how to get status of VAMI services and start/stop them (https://www.virtuallyghetto.com/2017/02/exploring-new-vcsa-vami-api-wpowercli-part-8.html) However it doesn't show how to update the service. I took a look at the API - update  command or patch as I've seen it in the vSphere client API explorer. REST API - update However I am unable/don't know how to write a "com.vmware.appliance.vmon.service.update_spec" object to pass onto the update method. The code I have sofar is this, just missing the critical piece that actually manages to set the startup type of the service. Connect-CisServer -Server $vce -Credential $credential $vMonAPI = Get-CisService 'com.vmware.appliance.vmon.service' $update_spec = @{     spec= @{         startup_type="MANUAL"         }     } $vMonAPI.update('rbd',$update_spec) $vMonAPI.Get('rbd') Any ideas what I am doing wrong? Thanks, Ionut
We are using vCenter 6.0U3, and we have a requirement to delete all work in progress items from Web Client sessions of vCenter administrators (to avoid accidental triggering). I noticed this c... See more...
We are using vCenter 6.0U3, and we have a requirement to delete all work in progress items from Web Client sessions of vCenter administrators (to avoid accidental triggering). I noticed this can be done from the web client, but we would like a programmatic way to remove this work in progress. Remove Stored User Data Can you indicate how this could be achieved? Is the data stored locally, or on the vCenter database? If the data is stored locally, is wiping the flash player cache sufficient?
That's not quite what I was looking for. The ConfigManager will return all of the MoRef-IDs of all the "views" of each host, see below. You still have to call get-view and then call a met... See more...
That's not quite what I was looking for. The ConfigManager will return all of the MoRef-IDs of all the "views" of each host, see below. You still have to call get-view and then call a method to get the actual profile information. For example, with 3000 hosts you need to call get-view 3000 times on each of these hosts's ImageConfigManager Moref. I was wondering if I could get the ImageProfile Information from another object, much like we do get-view -viewtype HostSystem, or any other ConfigManager like object
I am trying to build a report which shows the ESXi Image profile information (the information present in the summary tab of an ESXI host, in the vSphere Client). I have found that there is a vie... See more...
I am trying to build a report which shows the ESXi Image profile information (the information present in the summary tab of an ESXI host, in the vSphere Client). I have found that there is a view which shows this information $hostview = Get-View -viewtype hostsystem (Get-View -Id $hostview[0].ConfigManager.ImageConfigManager).HostImageConfigGetProfile() | Select * | format-list However this is a bit slow, and I have a few hundred hosts to report on. Is there any way I can get All the ConfigManager.ImageConfigManager information for all hosts instead of getting the view of each host?
I had the exact same issue, only this one was with get-host. Running 2008 R2, PS 5,1, PowerCLI 6.5.1 It works flawless in Powershell_ISE and powershell, whenever i wrap it in a job, it just str... See more...
I had the exact same issue, only this one was with get-host. Running 2008 R2, PS 5,1, PowerCLI 6.5.1 It works flawless in Powershell_ISE and powershell, whenever i wrap it in a job, it just straight out hangs, whenever I return an object like the output of get-vmhost. As soon as I changed deprecation warnings everything got unlocked. Thank you for saving me many hair-pulling hours.
Hello, I know this is an old thread, but we have the exact same issue in a disconnected enterprise network. Could you detail a little about the workarounds you put in place for this issue ?
I have actually opened a support case and the details above are the resolution I received from vmware. I have to remove VIBs until the error goes away. In my case, by trial and error I removed a... See more...
I have actually opened a support case and the details above are the resolution I received from vmware. I have to remove VIBs until the error goes away. In my case, by trial and error I removed all Qlogic vibs from the image, as we don't run hardware from Qlogic.
This shows up in Update manager logs like this: Precheck script test result: 'ERROR', test 'IMAGEPROFILE_SIZE', expected '239', found '242' and errortype is 0 VUA.log files show this: ... See more...
This shows up in Update manager logs like this: Precheck script test result: 'ERROR', test 'IMAGEPROFILE_SIZE', expected '239', found '242' and errortype is 0 VUA.log files show this: --> DEBUG:imageprofile:VIBs set(['VMware_bootbank_scsi-mpt2sas_19.00.00.00-1vmw.600.0.0.2494585']) are replaced by VIB Avago_bootbank_scsi-mpt2sas_20.00.00.00.1vmw-1OEM.550.0.0.1331820, removing them from ImageProfile Lenovo_ESXi6.0u3_20170414 --> DEBUG:imageprofile:VIB VMware_bootbank_scsi-mpt2sas_19.00.00.00-1vmw.600.0.0.2494585 is being removed from ImageProfile Lenovo_ESXi6.0u3_20170414 --> INFO:root:Running /sbin/localcli system visorfs ramdisk add -M 373 -m 373 -n upgradescratch -t /upgrade_scratch -p 01777 --> INFO:root:Checking if tboot is enabled --> INFO:root:Running command esxcfg-advcfg -q -g /Misc/enableTboot --> Exception occured: Unable to find option enableTboot --> INFO:root:Got return code 256 --> WARNING:root:Command "esxcfg-advcfg -q -g /Misc/enableTboot" returned non-integer. Assuming no tboot --> DEBUG:root:Running /sbin/localcli --formatter=json storage filesystem list --> DEBUG:root:Running vib conflicts check. --> INFO:root:Image size: 242 MB, Maximum size: 239 MB --> ERROR:root:The target image profile requires 242 MB space, however the maximum supported size is 239 MB. --> INFO:root:Running /sbin/localcli system visorfs ramdisk remove -t /upgrade_scratch --> </err></output>
I'm not sure about the OP, but in my case, I used the vendor image, when we did the upgrade to ESXi 5.5. Now we're looking at 6.x upgrade, and 90% of our upgrades are failing because the 5.5 cus... See more...
I'm not sure about the OP, but in my case, I used the vendor image, when we did the upgrade to ESXi 5.5. Now we're looking at 6.x upgrade, and 90% of our upgrades are failing because the 5.5 custom image is larger by 4MB than what the 6.x Custom image expects (a pre-check script I believe). So in my case, I am looking to trim down the image, and remove just what is not loaded in the OS. I'm still looking for a solution to mapping system modules to vibs, but i will end up removing VIBs from equipment i know for sure we don't use, until I manage to have a smaller image.
Hi, The above code does not work on the powerCLI6.5 API, the "containing vib" property does not exist anymore. Is there any other way to extract module - vib mapping?
Hi There's a lot of documentation on how to create custom images and export them into ISO, via PowerCLI, only I could not find any way to automate importing the Image into Update Manager. W... See more...
Hi There's a lot of documentation on how to create custom images and export them into ISO, via PowerCLI, only I could not find any way to automate importing the Image into Update Manager. What I am referring to is this wizard. I tried using Onyx for vSphere Client and Onyx for vSphere Web Client, but this wizard is not captured by Onyx. Is it even possible to automate this step? We have around 40 vCenter instances, and I'm not looking forward to clicking around the menus to import the ESXi image?
Hello, i was looking through this document, and i could not find a way to specify vCenter license when installing/upgrading vCenter. https://www.vmware.com/techpapers/2016/command-line-instal... See more...
Hello, i was looking through this document, and i could not find a way to specify vCenter license when installing/upgrading vCenter. https://www.vmware.com/techpapers/2016/command-line-installation-and-upgrade-of-vmware-vc-10529.html Is there a way to do this? or the system enters evaluation, post installation? Thank you
Hi, Thanks for the response, i just also heard from vmware on this topic. In a nutshell this is what they said. " Please be informed that the single license key that you obtain upon combinin... See more...
Hi, Thanks for the response, i just also heard from vmware on this topic. In a nutshell this is what they said. " Please be informed that the single license key that you obtain upon combining, can be used on all ESXi hosts as well as for vCenter server. As long as the assigned quantity of the license key does not increases the total capacity of the license key, you will be under license compliance. " As I understand it we are free to have a single license key for vcenters , associated with as many vcenters as the license allows us. The same would apply to ESXi licenses, so we can associate the ESXi license with whatever hosts we like (via vcenter or other means) as long as the CPU count is below the number of CPUs it was issued for
Hi, We have an environment with 30 vCenter instances and 2300 hosts. The person managing the licensing part has left the company and now i am left with some questions regarding licenses moving... See more...
Hi, We have an environment with 30 vCenter instances and 2300 hosts. The person managing the licensing part has left the company and now i am left with some questions regarding licenses moving forward. All vCenters are not linked, and the number of hosts per vCenter varies with each instance. We have a plan to upgrade to vSphere 6.0 and i'm not sure how to generate license keys so that they are easiest to manage. Could you help answering these questions? #1 - If I generate a single license key, valid for 30 vCenter instances, and I assign to each vCenter individually, am I breaching the EULA in any way? We will never assign for more than what we are entitled to, but does it constitute a breach? #2 - If #1 is not possible, that means, given I have no linked more configuration, that we need 1 license per instance? #3 - Same questions for ESXi hosts. Can we just have 1 license key for all hosts, and we enter it in all vCenters, and we are responsible for making sure we never go over the assigned limit overall? Or we need only licenses never used in any other vcenter instance?
Hi, Can anyone explain what the meaning of these values represent in the context of host profile maximums? I found this on page 18 of the config maximums: https://www.vmware.com/pdf/vsphere6... See more...
Hi, Can anyone explain what the meaning of these values represent in the context of host profile maximums? I found this on page 18 of the config maximums: https://www.vmware.com/pdf/vsphere6/r60/vsphere-60-configuration-maximums.pdf Host Profile Hosts 21 Powered On virtual machines 100 Datastores 120 Profile Created 1200 Profile Attached 1000
Hi, I am trying to build a script which will verify if the DVS standard security settings are being applied on all levels of vdswitch. I started exploring the objects with powercli and i am... See more...
Hi, I am trying to build a script which will verify if the DVS standard security settings are being applied on all levels of vdswitch. I started exploring the objects with powercli and i am llittle puzzled: first I grabbed all the non uplink vds port groups $All_pg_view = Get-View -ViewType Network | Where-Object { $_.gettype().Name -like 'DistributedVirtualPortgroup' -and $_.tag.key -notlike 'SYSTEM/DVS.UPLINKPG' } By default, on a brand new switch with default settings, this is the output received: $All_pg_view.Config.DefaultPortConfig.SecurityPolicy AllowPromiscuous      MacChanges            ForgedTransmits       Inherited ----------------      ----------            ---------------       --------- VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy     True VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy     True Notice the Inherited = true on all port groups However, say you had a port group, for which you manually went in and changed a setting. The output would become, something like AllowPromiscuous      MacChanges            ForgedTransmits       Inherited ----------------      ----------            ---------------       --------- VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy     True VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy     False Furthermore, if you dig into the AllowPromiscuous, MacChanges, ForgedTransmits property there is also a parameter there, called "inherited". So, I went in, and manually modified the settings for a test portgroup (from reject to accept) for forged transmits ($All_pg_view | ? {$_.name -like 'ForgedTransmits-test'})[0].config.defaultportconfig.securitypolicy.ForgedTransmits Value Inherited ----- --------- True     False Then i changed it back, the object became: ($All_pg_view | ? {$_.name -like 'ForgedTransmits-test'})[0].config.defaultportconfig.securitypolicy.ForgedTransmits Value Inherited ----- --------- False     False Ok, so I made the setting as the default, but it still does not appear inherited, at either port group level, or at setting level. I guess this is normal. Digging around I found a PowerCLI cmdlet to reset inheritance itself! $pg_obj = Get-VDPortgroup -name ($All_pg_view | {$_.name -like 'ForgedTransmits-test'}).name $pols = $pg_obj | Get-VDSecurityPolicy | ? {$_.AllowPromiscuousInherited -eq $False -or $_.ForgedTransmitsInherited -eq $False -or $_.MacChangesInherited -eq $False} | Set-VDSecurityPolicy -AllowPromiscuousInherited $true -ForgedTransmitsInherited $true -MacChangesInherited $true -Confirm:$false After this, the "setting level" is updated to "inherited = true", but the "global" inherited, next to each individual setting appears as false. ($All_pg_view | ? {$_.name -like 'ForgedTransmits-test'})[0].config.defaultportconfig.securitypolicy.ForgedTransmits Value Inherited ----- --------- False      True C:\> ($All_pg_view | ? {$_.name -like 'ForgedTransmits-test'})[0].config.defaultportconfig.securitypolicy AllowPromiscuous      MacChanges            ForgedTransmits       Inherited ----------------      ----------            ---------------       --------- VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy VMware.Vim.BoolPolicy    False I would like to understand what the "1st" inherited (under config.defaultportconfig.securitypolicy ) stands for, and how it can be set from false to true, if it is of any real use to do so. I tried to enable inheritance at vds level but the commandlet does not allow this,so clearly it does not affect this particular option.