Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all 178776 articles
Browse latest View live

For Each Loop and Set-VMNetworkAdapter

$
0
0

I have two seperate rows in my csv. So two different hosts and values I want to manipulate.

Im calling the foreach to grab the first host, connect to it and get/set vmkernel IP. Then its supposed to discconnect from the host

Then grab the next host in the csv, connect to it, get/set different vmkernel IP. Then disconnect.

 

 

In actuality, what is happening is that the first host is completed successfully, everything is set right.

When the second host gets to set the vmkernel IP (with a different value than host 1), it then goes back and sets the second hosts vmkernel IP on the first host as well.

 

What gives? Im stuck.

 

 

foreach ($line in $csv)

{

 

#################################################################################

# Set Variables

#################################################################################

$newhost = $line.host

$var1 = $line.var1

$var2 = $linevar2

...

...

 

#################################################################################

# Connect to Hosts

#################################################################################

 

Connect-VIServer $newhost -User $vmhost_user -Password $vmhost_pass

 

 

#################################################################################

# Get VMKernel PortGroup and Assign IP and Subnet4

#################################################################################

Write-Host "Find the VMKernel PortGroup on Host $newhost and Assign New IP and Subnet to it!" -ForegroundColor Green

 

 

$vmkernel0 = Get-VMHostNetworkAdapter $newhost | where { $_.PortGroupName -eq "SAN 0" }

Set-VMHostNetworkAdapter -VirtualNIC $vmkernel0 -IP "$var1" -SubnetMask "$var2" -confirm:$False

 

Disconnect-VIServer $newhost


Unable to add hosts to cluster

$
0
0

I'm at wits end with this..

 

It started when I had to change my management network from non-routable IP's to my private IPs.  I kept getting errors with the host not excepting the new IP.  I resolved that issue, but now when I try to add the hosts back into my cluster, I'm getting an error:

 

" A general system error occurred: passwd: Critical error -immediate abort.  bla bla bla Error Stack: "Failed to configure the VIM account on the host, Failed to set the password. It is possible that your password does not meet the complexity criteria set by the system."

 

This is ESXi 5.5u3, I've tried the following:

 

Remove the vpxa account, restarted hosts -- same error

Restart vpxa services -- same error

Restart vCenter - same error

vi etc/pam.d/passwd:  N0,N1,N2,N3,N4  -- same error

vi etc/pam.d/passwd:  N0=-1,N1=-1,N2=-1,N3=-1,N4=-1  -- same error

 

Checked the system-auth, not sure what its supposed to look like, but both hosts match

 

For the life of me, I cannot figure this one out, and Google has basically the same steps I just listed, I don't really want to blow away the configuration and reinstall, but it's looking like it's going to come down to that.. unless someone here knows where else that password complexity or criteria for the system is configured..

 

 

 

Graphics Accelleration for Guests

$
0
0

We have a need at my workplace for 4 to 6 users to perform some graphics intensive work, but do it from a standard midrange laptops running Windows 7.

Some people here are thinking of using Horizon View for this purpose.

That seems to me like a lot of cost and complexity for a handful of users.

Is it possible to just slap a decent graphics card in an HP DL360, install ESXi 6.5 and have 4 to 6 guest VM's leverage the graphics card in the ESXi host?

I'm open to any and all suggestions.

Thanks.

how permissions work in orchestrator

$
0
0

Hello,

there is something I do not understand very well

permissions on VCO

I have decided to give rights to domain users on the root folder of vco to allow them to see vco on vCenter

and on each folder I create for teams I give no rights to domain users and view,inspect,execute rights to the team

 

this work well throw vcenter even if one of the workflows use an other workflow stored in a folder where the user does not have rights

this is to prevent the users to see the workflows of other teams and the library workflows

 

but this does not work in orchestrator itself

can someone help me to figure out how vco works exactly with permissions?

Discussion: Automation- Api's vs. PowerCLI

$
0
0

This is a topic I've been thinking a lot about lately as I've been reading blogs, listening to podcasts, talking to peers, etc. If we are talking about automation, strictly automation, does it matter whether you use an API or PowerCLI? I was listening to a Datanaut's podcast today where the guest was the creator of Vagrant and Terraform and to paraphrase he said "if a product doesn't have a full API it doesn't exist. If the goal is to automate, to me this sounds like an ideological statement. If you can set variables, run declarative code, get results,does it matter if you use an API or PowerShell?

 

So what I'd like to know is, what am I missing? Is it just a comfort thing where Dev's like Api's and Ops may be more comfortable with PowerShell? Is this API movement just the latest thing?

 

I have opinions on these questions, but I'd like to hear from others. I hope that I don't break any rules by doing this, but I'd like to get a variety of opinions so I will likely cross post this in the Code community (if a moderator sees this and can help me with, I'd appreciate the assistance).

 

Please share your thoughts, I'd really like to get some different thoughts on the matter.

Erreur Interne

$
0
0

Bonjour,

J’essaye d’installer plusieurs fois VMware Fusion 8.5.6 (version evaluation), avec Windows 10 pour un test avant achat.

Ma machine est un MacbookPro 15’ mid 2012 sous OS sierra 10.12.4.

Lorsque je lance l’install par défaut premieres erreur avec l’installeur des tools, je continu sans installer les tools, puis deuxième erreur cette fois avec la machine virtuel « Erreur interne ».

Seeking assistance with Tagging Query - get-vm | ?{ (get-tagassignment $_) -eq $null}

$
0
0

Hello and thank you for time and help with my issue.  Much appreciated.

 

Currently I am running the Docker Power CLI on my mac and I am running a query that I believe would return all systems that are not tagged.  I get the error shown below however after the error, I get a result.  Is this an issue with the query and if so can I get it to run in such a way it doesn't error?  I am still researching the Unable to connect to Inventory Service error at this time so I am asking for some assistance to help me achieve the following goals.

 

Goals / Scripts needed.

1.  Get a list of all VM's that have no tagging.

2.  Get a list of all VM's that have no Category "Billing"

3.  Tag hosts without the Category "Billing" with a number.

 

Command Executed and ERROR

PS /powershell> get-vm | ?{ (get-tagassignment $_) -eq $null}

 

get-tagassignment : 04/03/2017 19:08:22 Get-TagAssignment Unable to connect to the Inventory Service at 'https:REDACTED/invsvc' which is required for the tagging functionality. Additional info: An error occurred while sending the request.

At line:1 char:14

+ get-vm | ?{ (get-tagassignment $_) -eq $null}

+              ~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Get-TagAssignment], ViError

    + FullyQualifiedErrorId : ViCore_InventoryServiceProxy_CreateConnectInventoryServiceExceptionWrapper,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTagAssignment

 

 

Name                 PowerState Num CPUs MemoryGB

----                 ---------- -------- --------

172-23-22-12   PoweredOn  4        14.500

 

get-tagassignment : 04/03/2017 19:08:28 Get-TagAssignment An unexpected error has occurred: An error occurred while sending the request..

At line:1 char:14

+ get-vm | ?{ (get-tagassignment $_) -eq $null}

+              ~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Get-TagAssignment], ViError

    + FullyQualifiedErrorId : ViCore_InventoryServiceProxy_TryConvertServerError_UnexpectedError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTagAssignment

 

172-23-22-13   PoweredOn  4        14.500

 

INFO

 

PS /powershell> Get-PowerCLIVersion

 

 

PowerCLI Version

----------------

   VMware PowerCLI Core 1.0 build 4630309

---------------

Component Versions

---------------

   VMware vSphere PowerCLI Component 1.22 build 4630309

   VMware VDS PowerCLI Component 1.21 build 4630309

 

 

 

Regards,

 

-GB

Looking for a way to cache an auth token in vRO

$
0
0

Hello All,

I am working with a number of RESTHost end-points which return an authentication token that is valid for 90 seconds. This is causing me to write a custom authentication process rather than using the HTTP-REST plugin's auth mechanism.

 

Almost all of our blueprints will rely on dynamic properties that will be querying the REST hosts on demand. From what I can tell that will require a number of actions to be built, each of which will have to connect to a REST host and grab some data. In most cases there will be a number of actions called to get all the necessary data, one right after the other.

 

It would be ideal if I could cache the auth token somewhere and have the individual actions look there first, before going through the login process themselves.

 

I have not found any mechanism in vRO to accomplish this. Does anybody have any ideas?

 

Thanks.


VMFS5.x Datastore Maximum File Size

$
0
0

Hi All,

 

I have a doubt on VMFS Datastore maximum file size. Recently I have installed ESXi 6.5 Hypervisor (ESXi free version) on Physical server.

When I checked the Datastore properties, noticed that the Maximum file size is still showing 2.00 TB.

 

Datastore Properties:-

 

File System: 5.81

Maximum File Size: 2.0 TB

Block Size: 1 MB

 

Does it mean that the maximum Virtual Disk size can be created is 2.0 TB ? or We can create the Virtual disk more than 2 TB. Please can some one clarify on this.

As per the above information, if the maximum VMDK file is 2.0 TB then what is the best way to get it fixed so that we can create a VMDK size with more than 2.0 TB.

 

NOTE: Attached the screenshot for the Datastore which is created on ESXi 6.5.

vSphere 6u2 and EMC UnityVSA and VVOLs -> Protocol Endpoints are not created -> Certificate problem: ESXi doesn' like UnityVSA (updated)

$
0
0

Hi all,

 

I've just installed UnityVSA from EMC (Version 4.0.1) in my lab with vSphere 6u2.

 

I've created an old fashioned VMFS-Datastore on a LUN and an NFS-Datastore on a share. Everything is working fine.

 

Then I created using Unisphere a Datastore for blockbased VVOLs (via iSCIS) and for filebased VVOLs (via NFS). Everything went fine in the UnityVSA.

 

Then I added the StorageProvider in vCenter - also this workes without error.

 

BUT: There are no PEs created on the vSphere.

 

The PEs are present on the UnityVSA (output from uemcli executed directly on the UnityVSA):

 

18:25:40 service@VIRT1636W2LHJW-spa spa:~> uemcli -d localhost -u admin -securePassword /stor/prov/vmware/pe show

Password:

Storage system address: localhost

Storage system port: 443

HTTPS connection

 

 

1:    ID                   = rfc4122.b835c8dd-5cc2-48d8-9bb6-4e1483c35ecf

      Name                 = nas_pe_3

      Type                 = NAS

      VMware UUID          = rfc4122.b835c8dd-5cc2-48d8-9bb6-4e1483c35ecf

      Export path          = 192.168.4.33:/rfc4122.3c70af02-00ad-4d9e-be70-16fe20fe07e7

      IP address           = 192.168.4.33

      WWN                  =

      Default SP           =

      Current SP           =

      NAS Server           = nas_1

      VMware NAS PE server = PES_1

      VVol datastore       = res_9

      Host                 =

      Health state         = OK (5)

      Health details       = "The protocol endpoint is operating normally. No action is required."

 

 

2:    ID                   = rfc4122.60060160-b2ed-2021-a932-d2f0067c0253

      Name                 = scsi_pe_13

      Type                 = SCSI

      VMware UUID          = rfc4122.60060160-b2ed-2021-a932-d2f0067c0253

      Export path          =

      IP address           =

      WWN                  = 60:06:01:60:B2:ED:20:21:A9:32:D2:F0:06:7C:02:53

      Default SP           = SPA

      Current SP           = SPA

      NAS Server           =

      VMware NAS PE server =

      VVol datastore       =

      Host                 = Host_1

      Health state         = OK (5)

      Health details       = "The protocol endpoint is operating normally. No action is required."

 

 

3:    ID                   = rfc4122.60060160-b2ed-2021-a2df-e66d9f94b2d1

      Name                 = scsi_pe_14

      Type                 = SCSI

      VMware UUID          = rfc4122.60060160-b2ed-2021-a2df-e66d9f94b2d1

      Export path          =

      IP address           =

      WWN                  = 60:06:01:60:B2:ED:20:21:A2:DF:E6:6D:9F:94:B2:D1

      Default SP           = SPA

      Current SP           = SPA

      NAS Server           =

      VMware NAS PE server =

      VVol datastore       =

      Host                 = Host_2

      Health state         = OK (5)

      Health details       = "The protocol endpoint is operating normally. No action is required."

 

 

4:    ID                   = rfc4122.60060160-b2ed-2021-b146-73a102b508cf

      Name                 = scsi_pe_15

      Type                 = SCSI

      VMware UUID          = rfc4122.60060160-b2ed-2021-b146-73a102b508cf

      Export path          =

      IP address           =

      WWN                  = 60:06:01:60:B2:ED:20:21:B1:46:73:A1:02:B5:08:CF

      Default SP           = SPA

      Current SP           = SPA

      NAS Server           =

      VMware NAS PE server =

      VVol datastore       =

      Host                 = Host_3

      Health state         = OK (5)

      Health details       = "The protocol endpoint is operating normally. No action is required."

 

 

19:02:21 service@VIRT1636W2LHJW-spa spa:~>

 

Also the appropriate LUNs for the blockbased VVOLs are created and provisioned (snipplet form vmkernel.log from one of the ESXi; the iSCSI-LUNs are available via two paths):

 

2016-09-09T18:38:00.810Z cpu3:32925)ScsiPath: 604: Path vmhba33:C0:T3:L1023 is a VVol PE (ver:6)

2016-09-09T18:38:00.811Z cpu1:32924)ScsiPath: 604: Path vmhba33:C0:T2:L1023 is a VVol PE (ver:6)

 

I can create the VVOL-Datastore from vSphere Web Client, the appropriate Storage Containers (i.e. "Datastores" from UnityVSA) are presented. But as there are no PEs, the Datastores are unaccessible and show a size of 0 bytes (output from PowerCLI):

 

PowerCLI C:\> get-datastore vvol*

Name                               FreeSpaceGB      CapacityGB

----                               -----------      ----------

vvol-nfs-vsa-1                           0,000           0,000

vvol-iscsi-vsa-1                         0,000           0,000

PowerCLI C:\>

 

By the way, the vvold on the ESXi ist not running, it says, that there is no VVOL-configuration.

 

[/etc/init.d/vvold: /etc/init.d/vvold start, called by pid 43665]

[/etc/init.d/vvold: vvold max reserve memory set to 200]

2016-09-09T20:20:15.054Z Section for VMware ESX, pid=43696, version=6.0.0, build=4192238, option=Release

------ Early init logs start --------

2016-09-09T20:20:15.052Z info -[FFD82350] [Originator@6876 sub=Default] Successfully registered SIGHUP handler

2016-09-09T20:20:15.052Z info -[FFD82350] [Originator@6876 sub=Default] Successfully registered SIGPIPE handler

2016-09-09T20:20:15.052Z info -[FFD82350] [Originator@6876 sub=Default] Successfully registered SIGTERM handler

------ Early init logs end   --------

2016-09-09T20:20:15.054Z info vvold[FFD82350] [Originator@6876 sub=Default] Logging uses fast path: true

2016-09-09T20:20:15.054Z info vvold[FFD82350] [Originator@6876 sub=Default] The bora/lib logs WILL be handled by VmaCore

2016-09-09T20:20:15.054Z info vvold[FFD82350] [Originator@6876 sub=Default] Initialized channel manager

2016-09-09T20:20:15.055Z info vvold[FFD82350] [Originator@6876 sub=Default] Current working directory: /var/log/vmware

2016-09-09T20:20:15.055Z info vvold[FFDC3B70] [Originator@6876 sub=ThreadPool] Thread enlisted

2016-09-09T20:20:15.055Z info vvold[FFE04B70] [Originator@6876 sub=ThreadPool] Thread enlisted

2016-09-09T20:20:15.055Z info vvold[FFE45B70] [Originator@6876 sub=ThreadPool] Thread enlisted

2016-09-09T20:20:15.055Z info vvold[FFD82350] [Originator@6876 sub=ThreadPool] Thread pool on asio: Min Io, Max Io, Min Task,

Max Task, Max Concurency: 2, 22, 2, 52, 2147483647

2016-09-09T20:20:15.055Z info vvold[FFD82350] [Originator@6876 sub=ThreadPool] Thread enlisted

2016-09-09T20:20:15.055Z info vvold[FFE86B70] [Originator@6876 sub=ThreadPool] Thread enlisted

2016-09-09T20:20:15.055Z info vvold[FFD82350] [Originator@6876 sub=Default] Syscommand enabled: true

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default] ReaperManager Initialized

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default] Initalized App with config file:/etc/vmware/vvold/config.xml

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default] Listening on port 8090 (NOT using SSL) using version 'vvol.version.version1'.

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default] Initializing SOAP tcp adapter

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default.HTTPService] Using default for nonChunkingAgents: 'VMware VI Client|VMware-client|VMware-client/3.*'

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default.HTTPService] Using default for agentsNeedingContentLength: 'VMware-client'

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default.HTTPService] Max buffered response size is 104857600 bytes

2016-09-09T20:20:15.056Z info vvold[FFD82350] [Originator@6876 sub=Default] enableChunkedResponses: true

2016-09-09T20:20:15.057Z info vvold[FFD82350] [Originator@6876 sub=Libs] UUID: Running in UW, but cannot verify vmk syscall version, giving up.

2016-09-09T20:20:15.057Z info vvold[FFD82350] [Originator@6876 sub=Libs] UUID: Valid gethostid routine. Value = A8C01704.

2016-09-09T20:20:15.058Z info vvold[FFD82350] [Originator@6876 sub=Default] Creating SOAP body handler for version 'vvol.version.version1'

2016-09-09T20:20:15.058Z info vvold[FFD82350] [Originator@6876 sub=SOAP-1] Created SOAP body handler for vvol.version.version1 (vvol/1.0)

2016-09-09T20:20:15.058Z info vvold[FFD82350] [Originator@6876 sub=Default] Creating SOAP body handler for internal version 'vvol.version.version1'

2016-09-09T20:20:15.058Z info vvold[FFD82350] [Originator@6876 sub=SOAP-2] Created SOAP body handler for vvol.version.version1 (internalvvol/1.0)

2016-09-09T20:20:15.066Z error vvold[FFD82350] [Originator@6876 sub=Default] VVold SI:main, no VVol config available, exiting

[/etc/init.d/vvold: /etc/init.d/vvold stopnomemclear, called by pid 43701]

[/etc/init.d/vvold: vvold stopped.]

[/etc/init.d/vvold: WaitVvoldToComeUp /var/run/vmware/.vmware-vvol.started created]

[/etc/init.d/vvold: vvold stopped after start!]

[/etc/init.d/vvold: /var/run/vmware/.vmware-vvol.started is not created]

[/etc/init.d/vvold: Successfully cleared vvold memory reservation]

 

With "esxcli storage vvol vasaprovider list" I don't get a Storage Provider listed - although it's registered in vCenter (and listed as online vie the Web Client).

 

Anything I should be missing, but at the moment, I don't have any idea to go further. Any help very appreciated.

 

Best regards,

Christian

Agent Unreachable after logoff of linked clone, OS has 169.254 apipa address

$
0
0

Hi everyone,

 

We've noticed some Win7 linked clones remain in the "Agent Unreachable" state for a while before getting refreshed. We think we narrowed it down to these clones ending up with a 169.254 (apipa) address instead of a DHCP address on our network. Our lease times are only an hour so I believe the clones in this state try to get a DHCP address 30 minutes later and it fixes itself. If we manually go into a clone exhibiting this behavior and try and get a valid DHCP address using ipconfig it gets one and the system gets refreshed.

 

Here are some things we've researched already.

 

1. The systems only have one virtual NIC and it is a VMXNET3 NIC

2. Within "Edit Settings" for a VM it is showing the NIC as "Connected" and is set to "Connect at Power on"

3. The VMware View agent service is running within the VM

4. The VM is listed as running the latest, current, VMware Tools inside of vCenter

5. This has happened on different ESXi hosts so it doesn't seem limited to one host.

6. We checked the DHCP scope on the DHCP server, of the 900+ addresses only 8% are being used so there are plenty of addresses available

7. As mentioned earlier, if you go into the VM's console and do an ipconfig /release then /renew it gets a valid address and completes the refresh process

8. Within the virtual network switch the number of ports (120 per switch) is well above the number of VM's on the switch (at the most about 15 VMs).

9. We checked the DHCP server logs and it doesn't look like the VM's are making a request for a new address on it's own (at least not during the logoff time frame).

 

The View environment is version 6.1.1 build 2769403

 

Any suggestions would be greatly appreciated :-)

Storage vMotion Powershell script will not iterate through list of Vms sequentially on a datastore after first Storage Vmotion completes

$
0
0

I have adapted a powershell script to login to a vcenter with admin credentials then iterate through all the VMs sequentially on a particular datastore(A) and move them to datastore(B) against a Vcenter 6 appliance and a ESXI 6 host.

The script ensure that the Storage Vmotion for a VM is complete before it iterates to the next VM in the list

The script works successfully for the the first VM to be processed but it is not signalling that the Storage Vmotion for the first VM is complete. So the script never moves on to the second VM in the list.

  1. What could be the error stopping iteration through the list of Vms?
  2. The script is a few years old. Is there a better way to do this currently?

 

# Customized from script found at https://communities.vmware.com/thread/455209

# Script uses the cmdlet 'Storage-Vmotion' from the above thread and cmdlet 'Get-VIeventPLus' found at

http://www.lucd.info/2013/03/31/get-the-vmotionsvmotion-history/

 

# Load PowerCLI cmdlets 

Add-PSSnapin VMware.VimAutomation.Core -ErrorAction "SilentlyContinue" 

 

 

# Define vCenter User and target Datastore 

$vcHost = 'VCENTER' 

$vcUser = 'VCENTER_ADMIN' 

$vcPass = 'PASSWORD'

$svmSource = 'SOURCE_DATASTORE'   

$svmTarget = 'DESTINATION_DATASTORE' 

 

# Ignore is there is an invalid certificate (this is for use in the lab and not production)

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore

 

# Connect to vCenter 

Connect-VIServer $vcHost -User $vcUser -Password $vcPass 

 

# Get VMs (pass array of VMs to $VMs from the source datastore) 

$VMs = get-datastore $svmSource | Get-VM 

Write-Host $VMs 

Storage-Vmotion -VMname $VMs -DesitinationDatastore $svmTarget 

Probelmas al migrar servidor linux fisico a virtual vmware

$
0
0

Estimados

 

tengo un problema al momento de  migrar de físico a virtual  un blade center ibm con storage ds 3512 tipo 1746-c2a

 

al momento de migran con la herramienta vm converter solo lee los discos locales del blade y no los de el storage y por tal motivo mi sistema operativo que es centos pasa con errores y no levanta, alguna manera que lo lea o reconozca.

Persistent Mapped drives in a floating pool

$
0
0

Should users be able to mapped their own drives using floating desktops pools with UIA Writable volumes and folder redirection?  Mapped drives (unless using the UEM configuration) are not persistent.

 

Thx

Deploying Linked Clones to Multiple Clusters

$
0
0

Hi,

 

Our newly deployed Horizon View 7.0.3 environment consists of two compute clusters within the same vCenter Server, one consisting of 12 x HPE BL460 Gen8 hosts and the other of 6 x HPE BL460 Gen9 hosts. I'm using a single template VM to deploy from, which has been powered on upon both types of host to pick up any hardware specific drivers etc.

 

The problem I'm having is that if the template resides in Cluster A then desktops fail to deploy to Cluster B, and vice versa.

 

Is this the correct behaviour? Surely I don't need to maintain a template VM per Cluster?

 

Please feel free to ask any further questions around my setup

 

Thanks in advance.


Exporting a loop to HTML?

$
0
0

I'm trying to get a list of VMs that have higher than 9cpu's and have hot-add/remove enabled (for NUMA purposes)

 

I have so far created a script that works when it comes to output when calling the variable i defined but i can quite get it to run correctly.

 

Here is the script so far:

 

$Style = "

<style>

    BODY{background-color:#b0c4de;}

    TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}

    TH{border-width: 1px;padding: 3px;border-style: solid;border-color: black;}

    TD{border-width: 1px;padding: 3px;border-style: solid;border-color: black;}

    tr:nth-child(odd) { background-color:#d3d3d3;}

    tr:nth-child(even) { background-color:white;}

</style>

"

$vms = Get-VM

Foreach($vm in $vms){

If ($vm.NumCpu -ge 9){

Get-VM $vm | Get-View | Select Name,@{N="CpuHotAddEnabled";E={$_.Config.CpuHotAddEnabled}}, @{N="CpuHotRemoveEnabled";E={$_.Config.CpuHotRemoveEnabled}}, @{N="MemoryHotAddEnabled";E={$_.Config.MemoryHotAddEnabled}} | ConvertTo-Html -Fragment -PreContent '<h2>VMs Larger than 9CPU Hot-add Enabled </h2>' | Out-String

} }

 

#Output Table

 

ConvertTo-HTML -head $Style -PostContent $NEEDTODEFINEVARIABLEFORLOOP  '</h1>Compliance Script</h1>' | Out-File c:\scripts\temp\TableHTML.html

 

 

 

 

 

This is not the whole script as i have a couple other commands running as well.

 

I need a way to export the data of the loop into a variable so it can be defined in the output command...  cant quite get it to work

 

Also with the current ConvertTo placement it creates a table per VM instead of a single table for all the vm's (as it should because its a loop) I cant pipe it to an export anywhere else because im not calling a variable / function.

 

any ideas?

Keeping patches across all hosts the same with Host Profiles/VUM?

$
0
0

Hi All - I usually only use VUM on an entire cluster to remediate all hosts to a certain patched level.  However, I am adding some hosts to an existing 6.02 U2 cluster that has been patched from that base install.  I am going to be install Dell Customized ESXi 6.0 Update 2 on the new hosts but need to make sure the new hosts with the Dell Customized 6.02 U2 image are brought up to but not beyond the rest of the cluster in terms of patches.  Thanks in advance!

ESXi 6.5 Slow vms, High "average response time"

$
0
0

I am running esxi 6.5 with the latest patches and vmware tools 10.1.5

 

I am having very inconsistent performance issues with both of my hosts. Basically the windows 2016/windows 10 guests are sluggish at times. nothing will load and the os is basically unresponsive when interacting with the gui. The issue seems to be stemming from disk performance but I am not 100% certain that this is the cause, it may be a side affect.

 

What I have noticed is that some vms show a average response time for the disk of about 2000ms. Yet if i check the performance monitor at a host level the disk and datastores are all showing sub 1ms response time. I am not able to explain the inconsistencies there.

 

I have a local ssd datastore on each host as well as a rather fast nvme iscsi san that is connected via 100gb mellanox connectx4 cards. I see the issue with both hosts and both datastores. The issue seems to be worse now with the most recent patches and vmware tools drivers. I am using vmxnet3 network cards and paravirtual scsi controllers on all vms.

 

I have run disk benchmarks on the vms and the resutls vary. I have already seen it where i run a disk benchmark on a guest, get horrible results, vmotion it to the other host, and benchmarks to the san are fine, and then i vmotion the guest back to the original host and the results are fine the second time I run it.

 

 

 

here is an example of a bad test, the reads are terrible:

 

-----------------------------------------------------------------------

CrystalDiskMark 5.2.0 x64 (C) 2007-2016 hiyohiyo

                           Crystal Dew World : http://crystalmark.info/

-----------------------------------------------------------------------

* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]

* KB = 1000 bytes, KiB = 1024 bytes

 

 

   Sequential Read (Q= 32,T= 2) :     0.655 MB/s

  Sequential Write (Q= 32,T= 2) :  5384.173 MB/s

  Random Read 4KiB (Q= 32,T= 2) :     0.026 MB/s [     6.3 IOPS]

Random Write 4KiB (Q= 32,T= 2) :   617.822 MB/s [150835.4 IOPS]

         Sequential Read (T= 1) :     2.306 MB/s

        Sequential Write (T= 1) :  1907.004 MB/s

   Random Read 4KiB (Q= 1,T= 1) :    53.942 MB/s [ 13169.4 IOPS]

  Random Write 4KiB (Q= 1,T= 1) :    52.104 MB/s [ 12720.7 IOPS]

 

 

  Test : 50 MiB [C: 5.2% (15.6/299.5 GiB)] (x1)  [Interval=5 sec]

  Date : 2017/03/25 20:29:18

    OS : Windows 10 Enterprise [10.0 Build 14393] (x64)

 

a few seconds later on the same setup i get perfectly fine results:

 

-----------------------------------------------------------------------

CrystalDiskMark 5.2.0 x64 (C) 2007-2016 hiyohiyo

                           Crystal Dew World : http://crystalmark.info/

-----------------------------------------------------------------------

* MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s]

* KB = 1000 bytes, KiB = 1024 bytes

 

 

   Sequential Read (Q= 32,T= 2) :  6655.386 MB/s

  Sequential Write (Q= 32,T= 2) :  5654.851 MB/s

  Random Read 4KiB (Q= 32,T= 2) :   695.193 MB/s [169724.9 IOPS]

Random Write 4KiB (Q= 32,T= 2) :   609.216 MB/s [148734.4 IOPS]

         Sequential Read (T= 1) :  1810.393 MB/s

        Sequential Write (T= 1) :  1626.112 MB/s

   Random Read 4KiB (Q= 1,T= 1) :    53.266 MB/s [ 13004.4 IOPS]

  Random Write 4KiB (Q= 1,T= 1) :    54.289 MB/s [ 13254.2 IOPS]

 

 

  Test : 50 MiB [C: 5.2% (15.7/299.5 GiB)] (x1)  [Interval=5 sec]

  Date : 2017/03/25 20:32:21

    OS : Windows 10 Enterprise [10.0 Build 14393] (x64)

vRealize Operations Manager IOPS - Normalized?

$
0
0

Is the vROps calculation for IOPs (commands per second) normalized in someway by a certain IO size?  Does anyone know how this is calculated?

Horizon 7 Enterprise licensing

$
0
0

Hi Guys

 

Any idea of the Horizon7  licensing cost, roughly how much would it cost for 100, 200, 300 , or 400 concurrent users,does VMware have a special package for Educational Institutions we are interested in using instant clones desktops in our student labs. We want to start with 2 small campuses first after our testing and grow from there

Viewing all 178776 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>