vCenter

Permissions aus dem vCenter exportieren

$date = Get-Date -Format FileDate
$reportName1 = "C:\temp\Report1-$Date.csv"
$reportName2 = "C:\temp\Report2-$Date.csv"
 
Connect-VIServer -Server XXXX
 
Get-VIPermission |
Select-Object @{N='vCenter';E={$_.Uid.Split('@:')[1]}},
  Principal,Role,
   @{n='Entity';E={$_.Entity.Name}},
   @{N='Entity Type';E={$_.EntityId.Split('-')[0]}} |
Export-CSV -Delimiter ';'  -Encoding UTF8  -Path $reportName1  
 
Get-VIRole | Select @{N='vCenter';E={$_.Uid.Split('@:')[1]}}, 
Name,
   @{N='PrivilegeList';E={[string]::Join([char]10,$_.PrivilegeList)}} |
Export-CSV -Delimiter ';'  -Encoding UTF8  -Path $reportName2

Advanced HA Options

das.ignoreInsufficientHbDatastore
das.ignoreRedundantNetWarning

Ausrollen eines vCenters ohne Zeitserver

{
    "__version": "2.13.0",
    "__comments": "Sample template to deploy a vCenter Server Appliance with an embedded Platform Services Controller on an ESXi host.",
    "new_vcsa": {
        "esxi": {
            "hostname": "192.168.10.11",
            "username": "root",
            "password": "VMware1!",
            "deployment_network": "MGMT",
            "datastore": "NFS01"
        },
        "appliance": {
            "__comments": [
                "You must provide the 'deployment_option' key with a value, which will affect the vCenter Server Appliance's configuration parameters, such as the vCenter Server Appliance's number of vCPUs, the memory size, the storage size, and the maximum numbers of ESXi hosts and VMs which can be managed. For a list of acceptable values, run the supported deployment sizes help, i.e. vcsa-deploy --supported-deployment-sizes"
            ],
            "thin_disk_mode": true,
            "deployment_option": "small",
            "name": "VCSA_7U1a"
        },
        "network": {
            "ip_family": "ipv4",
            "mode": "static",
            "system_name": "vcsa.schubi.local",
            "ip": "192.168.10.10",
            "prefix": "24",
            "gateway": "192.168.10.1",
            "dns_servers": [
                "192.168.10.1"
            ]
        },
        "os": {
            "password": "VMware1!",
			"time_tools_sync": true,
            "ssh_enable": true
        },
        "sso": {
            "password": "VMware1!",
            "domain_name": "vsphere.local"
        }
    },
    "ceip": {
        "description": {
            "__comments": [
                "++++VMware Customer Experience Improvement Program (CEIP)++++",
                "VMware's Customer Experience Improvement Program (CEIP) ",
                "provides VMware with information that enables VMware to ",
                "improve its products and services, to fix problems, ",
                "and to advise you on how best to deploy and use our ",
                "products. As part of CEIP, VMware collects technical ",
                "information about your organization's use of VMware ",
                "products and services on a regular basis in association ",
                "with your organization's VMware license key(s). This ",
                "information does not personally identify any individual. ",
                "",
                "Additional information regarding the data collected ",
                "through CEIP and the purposes for which it is used by ",
                "VMware is set forth in the Trust & Assurance Center at ",
                "http://www.vmware.com/trustvmware/ceip.html . If you ",
                "prefer not to participate in VMware's CEIP for this ",
                "product, you should disable CEIP by setting ",
                "'ceip_enabled': false. You may join or leave VMware's ",
                "CEIP for this product at any time. Please confirm your ",
                "acknowledgement by passing in the parameter ",
                "--acknowledge-ceip in the command line.",
                "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
            ]
        },
        "settings": {
            "ceip_enabled": false
        }
    }
}
#prüfen
F:\vcsa-cli-installer\win32>vcsa-deploy.exe install --accept-eula --no-ssl-certificate-verification --verify-template-only e:\vcsaonesxi.json
 
# ausführen
F:\vcsa-cli-installer\win32>vcsa-deploy.exe install --accept-eula --no-ssl-certificate-verification e:\vcsaonesxi.json
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International