vmware change local domain

cmsso-util domain-repoint -m execute –src-emb-admin Administrator –dest-domain-name vsphere.local

https://docs.vmware.com/tw/VMware-vSphere/7.0/com.vmware.vcenter.install.doc/GUID-9CB77874-D032-4C94-99AA-5340CB922F57.html

Upgrade vCenter Error

Internal error occurs during vSphere ESX Agent Manager pre-upgrade checks

vi /etc/vmware-eam/eam.properties

#########################################################################
# Copyright 2013-2014 VMware, Inc. All rights reserved. VMware Confidential
#########################################################################
vc.proxy.host=localhost
vc.proxy.port=80
# Hostname or IP of the EAM server
# Fill only if EAM is not running on the same host as VC
eam.host=
# EAM service port used to configure the HTTP connector of the application server.
eam.int.http.port=15005
# Port and scheme configuration which is used by the ESX 6.x hosts to reach EAM Vib
# file server.
eam.ext.port=443
eam.ext.scheme=https
# Port and scheme configuration which is used by the ESX 5.x hosts to reach EAM Vib
# file server.
eam.ext.port.deprecated=80
eam.ext.scheme.deprecated=http
eam.support_linked_clone=true
eam.clear_db_on_startup=false
eam.debug_ref_count=false
eam.recent_event_size=20
# Enable/disable VUM integration
vum.integration=true
# Value is specified in minutes (set to 24h = 1440m)
eam.scan_for_unknown_agent_vms=1440
# The timeout to wait for hostd to restart on a host (set to 5m=300s)
eam.hostd_restart_timeout=300
# The following entries will be added verbatim to the advanced options
# of hosts on which EAM is enabled. All are optional.
Net.DVFilterBindIpAddress=169.254.0.1
Net.TrafficFilterIpAddress=
#The IP for the VSWIF NIC on the dvFilter switch (for ESX classic).
Net.DVFilterVswifIpAddress=169.254.0.2
# Resource bundle configuration
eam.resourcebundle.filename=eam-resourcebundle.jar
# VLSI embedded tcServer configuration
#
tcserver.tmp.dir=/var/tmp/vmware/eam/tomcat
# EAM SSL configuration
#
eam.keystore.type=VKS
eam.key.alias=vpxd-extension
eam.keystore.storename=vpxd-extension
# CM configuration
#
cm.url=http://localhost:18090/cm/sdk/?hostid=0a12dfe2-b3b7-4eb6-9737-1ec5a8e770ec <====== Use the output recorded on step 5
cm.wait.attempts=360
cm.wait.intervalSeconds=5
# SSO configuration
#
sso.wait.attempts=360
sso.wait.intervalSeconds=5
# VC SSL configuration
#
vc.truststore.type=VKS
vc.truststore.storename=TRUSTED_ROOTS
vc.tunnelSdkUri.template=https://##{VC_HOST_NAME}##:8089/sdk/vimService
vc.tunnelSdkUri=:8089/sdk/vimService <====== Change this to your vCenter FQDN/IP
drs.demandCapacityRatio=100

eam.web.root=/usr/lib/vmware-eam/web

Source:
https://kb.vmware.com/s/article/50113982

Nested ESXi 6.7

在ESXi裏再安裝ESXi

Click “Expose hardware assisted virtualization to the guest OS”

在最低層ESXi更改網路

Promiscuous mode要Accept, 裏面的ESXi才可以便用外部Network

ESXi Cannot open the disk ‘/vmfs/volumes/…’ or one of the snapshot disks it depends on.

An error was received from the ESX host while powering on VM sub.domain.com.
Failed to start the virtual machine.
Module DiskEarly power on failed.
Cannot open the disk ‘/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk’ or one of the snapshot disks it depends on.

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000002.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=5fdb3838
parentCID=91a1b14e
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com-000001.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000002-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000002-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “6d06c2adf18d4b5ca7ae92e65fdb3838″

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com-000001.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8”
CID=91a1b14e
parentCID=30b6f4a5
isNativeSnapshot=”no”
createType=”vmfsSparse”
parentFileNameHint=”sub.domain.com.vmdk”
# Extent description
RW 976777216 VMFSSPARSE “sub.domain.com-000001-delta.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-000001-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk
# Disk DescriptorFile
version=3
encoding=”UTF-8″
CID=91a1b14e
parentCID=ffffffff
isNativeSnapshot=”no”
createType=”vmfs”

# Extent description
RW 976777216 VMFS “sub.domain.com-flat.vmdk”

# Change Tracking File
changeTrackPath=”sub.domain.com-ctk.vmdk”

# The Disk Data Base
#DDB

ddb.adapterType = “lsilogic”
ddb.deletable = “true”
ddb.geometry.biosCylinders = “60801”
ddb.geometry.biosHeads = “255”
ddb.geometry.biosSectors = “63”
ddb.geometry.cylinders = “60801”
ddb.geometry.heads = “255”
ddb.geometry.sectors = “63”
ddb.longContentID = “7b3898b4ec1820ab22f165ff91a1b14e”
ddb.thinProvisioned = “1”
ddb.toolsVersion = “9349”
ddb.uuid = “60 00 C2 9b 7c 5c a8 15-b2 03 9f dc ba 38 56 60”
ddb.virtualHWVersion = “8”

 

/vmfs/volumes/53e4e821-e97af688-8c82-40f2e9cd37aa/sub.domain.com/sub.domain.com.vmdk

CID=91a1b14e

replace to

CID=30b6f4a5

ESXi snapshot command

vim-cmd vmsvc/getallvms

vim-cmd vmsvc/snapshot.create 119 test
vim-cmd vmsvc/snapshot.get 119
vim-cmd vmsvc/snapshot.removeall 119

 

  • snapshot.create
  • snapshot.dumpoption
  • snapshot.get
  • snapshot.remove
  • snapshot.removeall
  • snapshot.revert
  • snapshot.setoption
  • get.snapshotinfo

ESXi task job status

vim-cmd vimsvc/task_list
ManagedObjectReference) [
‘vim.Task:haTask-137-vim.VirtualMachine.consolidateDisks-516821853‘,
‘vim.Task:haTask-ha-host-vim.HostSystem.acquireCimServicesTicket-516825125’
]

watch -d -n 60 ‘vim-cmd vimsvc/task_info haTask-137-vim.VirtualMachine.consolidateDisks-516821853 | grep -E “name|entityName|state|progress”‘