Tag Archives: Virtualization

DVS and uplinks design for different services

This post was originally published on this site

Hi,

 

I will have VM traffic, vSAN, vMotion and Management Services and each ESXi Host will have 4 uplinks of 10Gbps

 

I was thinking of assigning 2 DvSwitches:

 

First one:

2 uplinks (ex: vmnic0 and vmnic1) with LACP/LAG for VM Traffic

 

Second one:

2 uplinks with vSAN on 1st uplink (ex: vmnic2 set to Active) and 2nd uplink set to Passive (ex: vmnic3 set to Standby)

                       vMotion on 2nd uplink (ex: vmnic3 set to Primary) and 1st uplink set to Passive (ex: vmnic2 set to Standby)

                       Management on 2nd uplink (ex: vmnic3 set to Primary) and 1st uplink set to Passive (ex: vmnic2 set to Standby)

 

 

Enable NIOC on second DvSwitch and set as follows:

Management: High

vSAN: Normal

vMotion: Low

 

This would mean:

If both uplinks are up vSAN and vMotion will go at full speed (Management traffic is negligible)

If only one uplink is up, vSAN traffic will be preferred after Management (in case of contention)

 

Can I have your thoughts please and any recommendations/changes?

 

 

Below image shows one dvSwitch, in my above example there would be 2 DvSwitches per Host

           

Can't expand window of VMware Workstation 15 Player

This post was originally published on this site

Like the title states, I can’t expand the window of the player. Grabbing a window edge and resizing results in the edge bouncing back to the original position. Using the “full screen” button results in the usable window staying the same size but with black bars around all edges.

 

Using a Windows 10 Host and Manjaro Linux as the guest. VMware tools have been installed on the guest.

Move-VM dosent work to move a VM to a DatastoreCluster for Cross VC Migrations

This post was originally published on this site

Hi Experts

 

I have a Script to do cross VC migration which works perfectly. We use it everyday and its fabulous

Recently we wanted to move a VM which we could not get into one datastore so we used Datastorecluster which is supported by Move-VM

Now if i use a script to move a VM within a Cluster then the Datastorecluster is working.

If i use the same approach for a Cross VC then I get the following error and i need your help please

 

VM is a alive on the source VC… Migration_Oct_Test

VM will be placed on following ESXi host… vhst6013.mydomain.com

VM Network Adaptor info… Network adapter 1

VM will be moved to following PortGroup…  XXX-VLAN-AAA-BK-VMN

VM will be moved to following datastore…  DSClusterDS_NR

 

 

Move-VM : 20-10-2020 17:49:37 Move-VM When migrating a VM to a different vCenter Ser

ver both Destination and Datastore need to be specified. No other destination types b

ut VMHost/Resource Pool and Datastore are supported for Cross vCenter vMotion

At line:120 char:7

+       Move-VM -vm $VM -Destination $destination -NetworkAdapter $netw …

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

    + CategoryInfo          : InvalidArgument: (:) [Move-VM], VimException

    + FullyQualifiedErrorId : Client20_VmHostServiceImpl_CheckMoveVmParameters_BothD

   estinationAndStorageRequiredForXVCVmotion,VMware.VimAutomation.ViCore.Cmdlets.Co 

  mmands.MoveVM

 

 

This part of the script is the one which gives the issue

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

 

#$destinationDatastore = Get-Datastore $VMdetail.TgDatastore  -ErrorAction SilentlyContinue

 

    #If  i add the get-datastorecluster then the move VM fails

          $destinationDatastore = get-datastorecluster $VMdetail.TgDatastore  -Server “DestinationVC.Mydomain.com”

 

 

         if ($destinationDatastore)  {

           

            Write-Host “VM will be moved to following datastore… ” -ForegroundColor Yellow  $destinationDatastore

            }

         Else {

        

            Write-Host ” Destination datastore not found” -ForegroundColor Magenta

            Continue

            }

 

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

#################### SCRIPT####################################

 

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

#        ***Kick off the vMotion VMs between Virtual Centers***

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

# vMotion Details

 

 

$VMdetails = Get-Content -Path $FileBrowserMigrationDetailsFile |Select-String ‘^[^#]’ | ConvertFrom-Csv -UseCulture

 

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

# Search the VM to be migrated and validate VM if found else skip to next record

# on the CSV

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

 

 

Foreach ($VMdetail in $VMdetails)  {

 

 

         $VM = Get-VM -Name $VMdetail.VMNAME -ErrorAction SilentlyContinue

 

 

 

 

If ($VM) { 

                        Write-Host “VM is a alive on the source VC…” -ForegroundColor Yellow  $VM

Else { 

                        Write-Host ‘VM’  $VMdetail.VMNAME’ Cannot be found’ -ForegroundColor Magenta

                        continue 

 

 

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

# Check if there is a Destination ESXi host on the specified cluster

# If found proceed or skip to next record

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

 

 

       

        

$destination = Get-cluster $vmdetail.TgCluster -ErrorAction SilentlyContinue |Get-VMHost |Select-Object -First 1  #-Name vhst6012.rabobank.corp #

 

 

if ($destination){ 

                        Write-Host “VM will be placed on following ESXi host…” -ForegroundColor Yellow $destination 

Else { 

                        Write-host “Destination ESXi host” $vmdetail.TgCluster “is not Accessible”  -ForegroundColor Magenta

                        continue

              

 

 

 

 

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

# Check if the Network Adapter for the VM is found

# If found proceed or skip to next record

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

 

 

 

 

 

 

         $networkAdapter = Get-NetworkAdapter -vm $VM -ErrorAction SilentlyContinue

               

If ($networkAdapter){ 

                        Write-Host “VM Network Adaptor info…” -ForegroundColor Yellow $networkAdapter 

Else { 

                        Write-Host “Network Adpater cannot be attahced and migration will fail” -ForegroundColor Magenta

                        continue 

 

 

 

 

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

# Check if the destination vDS switch is available, also check if the destination

# PortGroup is found, if unavailable skip to the next record

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

 

 

 

 

        

         $destinationPortGroup = Get-VDSwitch -Name $VMdetail.TgSwitch -ErrorAction SilentlyContinue |Get-VDPortgroup -Name $VMdetail.TgPortGroup -ErrorAction SilentlyContinue

 

 

If ($destinationPortGroup){ 

                        Write-Host “VM will be moved to following PortGroup… ” -ForegroundColor Yellow  $destinationPortGroup 

Else { 

                        Write-Host “vDS Switch or PortGroup cannot be found ” -ForegroundColor Magenta

                        continue 

                

 

 

       

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

# Check if the destination Datastore is available if found 

# Proceed , if unavailable skip to the next record

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

 

 

 

 

 

 

         #$destinationDatastore = Get-Datastore $VMdetail.TgDatastore  -ErrorAction SilentlyContinue

 

 

          $destinationDatastore = get-datastorecluster $VMdetail.TgDatastore  -Server “DestinationVC.Mydomain.com”

 

 

         if ($destinationDatastore)  {

           

            Write-Host “VM will be moved to following datastore… ” -ForegroundColor Yellow  $destinationDatastore

            }

         Else {

        

            Write-Host ” Destination datastore not found” -ForegroundColor Magenta

            Continue

            }

              

}            

 

 

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

# Move-VM does the actual move of the VM provided all of the above checks are

# Satisfied and completes the migration.

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

 

 

               

      Move-VM -vm $VM -Destination $destination -NetworkAdapter $networkAdapter -PortGroup $destinationPortGroup -Datastore $destinationDatastore -server vcpbxt001.compute.rabobank.nl| out-null  -ErrorVariable $movevmerr

         if ($movevmerr -eq $null )  {

        Write-host ” VM migration in progress ………” -ForegroundColor Magenta

        }

        Else   {

        Write-Host ” Move-VM error $movevmerr”

        continue

        }

How to get VM Guest/Config ConfiguredGuestId and RuntimeGuestId by using get-view?

This post was originally published on this site

Hello,

 

I would like to retrieve the VM Guest properties ConfiguredGuestId and RuntimeGuestId by using get-view and not get-vm.

How do I do that?

 

I cannot find it in VMware.Vim.GuestInfo, VMware.Vim.VirtualMachineGuestSummary, VMware.Vim.VirtualMachineConfigSummary or VMware.Vim.VirtualMachineConfigInfo.

 

Also i cannot find this in the API Documentation.

 

Thanks a lot in advance!

 

Perhaps mattboren or LucD can solve my problem ;-)?

 

Regards,

René

Horizon Client PXE Boot

This post was originally published on this site

Hello, we have a newly created VMWare Horizon environment. Using VMWare version 6.7 and Horizon 7. We are looking for a way to have our workstations use pxe boot to boot into the VDI environment. We will likely be using Dell Pcs as workstations. Can someone here explain how this is done or point me to the correct documentation for this process?

 

Any help would be appreciated.

Access denied when register free version of fusion 12 player

This post was originally published on this site

I did the same as in these two posts.

 

where is the free version of fusion 12 player

and

Re: How do I request a free license key

 

But when I clicked the button “register”, it came out the page:

 

Access Denied

You don’t have permission to access “http://my.vmware.com/web/vmware/registration?” on this server.

Reference #18.27f877df.1603201266.7d330391

 

Could anyone tell me solution?

VCF 4.1 deployment : Bring up is failing with error "Failed to import ESXi certificate in trust store"

This post was originally published on this site

Hi There,

 

Getting the below error during bring up process using cloud builder.  Any pointers to fix the below issue is much appreciated.

 

2020-10-20T13:58:58.956+0000 [bringup,426d4f6474f7d65f,9528] ERROR [c.v.e.s.o.model.error.ErrorFactory,pool-3-thread-17] [KL9DSV] IMPORT_ESX_CERTIFICATE_FAILED Failed to import ESXi certificate in trust store

com.vmware.evo.sddc.orchestrator.exceptions.OrchTaskException: Failed to import ESXi certificate in trust store

        at com.vmware.evo.sddc.input.generation.ValidateEsxThumbprintsAction.execute(ValidateEsxThumbprintsAction.java:135)

        at com.vmware.evo.sddc.input.generation.ValidateEsxThumbprintsAction.execute(ValidateEsxThumbprintsAction.java:44)

        at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionState.lambda$static$0(FsmActionState.java:14)

        at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionState.invoke(FsmActionState.java:62)

        at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionPlugin.invoke(FsmActionPlugin.java:168)

        at com.vmware.evo.sddc.orchestrator.platform.action.FsmActionPlugin.invoke(FsmActionPlugin.java:153)

        at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.invokeMethod(ProcessingTaskSubscriber.java:399)

        at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.processTask(ProcessingTaskSubscriber.java:519)

        at com.vmware.evo.sddc.orchestrator.core.ProcessingTaskSubscriber.accept(ProcessingTaskSubscriber.java:123)

        at sun.reflect.GeneratedMethodAccessor1541.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:87)

        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:72)

        at org.springframework.cloud.sleuth.instrument.async.TraceRunnable.run(TraceRunnable.java:67)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.UnsupportedOperationException: The class com.vmware.evo.sddc.input.generation.BringupInputProgressMessages must define the key VALIDATE_ESX_THUMBPRINT in the bundle com.vmware.evo.sddc.input.generation.progress-messages

        at com.vmware.evo.sddc.common.core.i18n.LocalizableMessage.getDefaultMessage(LocalizableMessage.java:55)

        at com.vmware.evo.sddc.common.core.i18n.LocalizableMessage.withArgs(LocalizableMessage.java:64)

        at com.vmware.evo.sddc.input.generation.ValidateEsxThumbprintsAction.execute(ValidateEsxThumbprintsAction.java:107)

        … 17 common frames omitted

2020-10-20T13:58:58.959+0000 [bringup,426d4f6474f7d65f,9528] DEBUG [c.v.e.s.o.c.ProcessingTaskSubscriber,pool-3-thread-17] Collected the following errors for task with name ValidateEsxThumbprintsAction and ID 7f000001-7525-12a6-8175-2b41ae8b01ab: [ExecutionError [errorCode=null, errorResponse=LocalizableErrorResponse(messageBundle=com.vmware.evo.sddc.input.generation.error.messages)]]

 

vRA 8.1 – iaas rest api returning "Invalid mime type" error

This post was originally published on this site

I’ve been trying to extract a response from the vRA 8.1 iaas API, with no luck so far. every API call to, for example https://$url/iaas/api/about returns, the error:

{“timestamp”:1603193804909,”path”:”/iaas/api/about”,”status”:500,”error”:”Internal Server Error”,”message”:”Invalid mime type “org.mozilla.javascript.Undefined@ac577ae”: does not contain ‘/'”,”requestId”:”3bca07fd”,”@type”:”org.springframework.http.InvalidMediaTypeException”,”cause”:{“message”:”Invalid mime type “org.mozilla.javascript.Undefined@ac577ae”: does not contain ‘/'”,”@type”:”org.springframework.util.InvalidMimeTypeException”}}

 

Normally I do not use an Accept or Content-Type header to force a specific content type and am relying on application/json. This works fine with other API requests like:

https://$url/blueprint/api/about or

https://$url/deployment/api/deployments

 

Including the Accept and/or Content-Type header with the value “application/json” returns the same error as above.

 

Does the iaas API request a specific schema or is this a bug?

Get-hvlocalsession for multiple users

This post was originally published on this site

Hi guys,

 

I am trying to make a script which should give session details of multiple users such as username,login time and logout time.

 

I could get the required details for all the users by below script. But dont know how to get it for multiple users. ie by importing limited no of usernames in a text file.

 

Get-hvlocalsession | ForEach-Object -Process {

$dtformat = “dd-mm-yy HH:mm”

$ls = $_

” | select @{N=”Emp Id”;E={$ls.NamesData.UserName.Replace(“Domainname”,””)}},

  @{N=”Login Time”;E={$ls.sessiondata.StartTime.ToString($dtformat)}},

  @{N=”Logoff Time”;E={$ls.sessiondata.DisconnectTime.ToString($dtformat)}}

}

 

Any help?