Показаны сообщения с ярлыком VMware. Показать все сообщения
Показаны сообщения с ярлыком VMware. Показать все сообщения

четверг, 10 декабря 2015 г.

VMware WebClient и IE11

Возможно многие заметили, что в IE11 работает vmware web Client несколько странно. Например, не работает работа с консолью VM. Ссылка просто неактивна.

Для решения все-го лишь нужно зайти в F12 Developer Tools и на вкладке Emulation выбрать совместимость с IE8:


среда, 26 сентября 2012 г.

Операция Reprotec в SRM с использованием VR репликации

Настроив SRM с помощью vSphere Replication (VR), и не прочитав SRM Admin Guide :) , я обнаружил что VR работает только в одну сторону и возврат назад в Protected ЦОД не предусмотрен. При попытке запустить Reprotect получаем сообщение “Reprotect is not supported for VR protection groups. You must edit the plan to remove all VR protection groups before running reprotect.”

Придется использовать предложенное решение:


  • Делаем для нашей VM Remove from Inventory на Protected Site (можно и с диска удалить, но тогда придется ждать пока VMDK файл скопируется, что займет некоторое время)
  • Удаляем Protection Group или удаляем защищаемую VM из нее
  • Удаляем Recovery Plan
  • Настраиваем репликацию с Recovery site в Protected site.
  • Создаем новую Protection Group и добавляем в нее VM, находящуюся сейчас в Recovery Site
  • Создаем новый Recovery Plan
  • Запускаем Recovery и ждем пока задача выполнится.
И повторяем еще раз уже для создания нашего Recovery Plan'а, который надеюсь никогда не понадобится :)


Vmware SRM: ошибка при настройке репликации VR

В связи с появлением еще одного продукта в сфере деятельности в блоге появляется еще один tag - SRM.

Если при настройке репликации VM появляется ошибка VR server localhost.localdom has no hosts through which to access destination datastore, то должны помочь следующие действия:

  • Connect to the VRMS database at the Recovery Site using SQL Management Studio.
  • Right-click the VRMS database and click New Query.
  • Run this query to determine if any hosts are marked as Unsupported:

    To query hosts that are not associated with a VR server:

    select * from HostEntity h where state=4 and not exists (select * from HbrHostEntity where h.vcMoId=HbrHostEntity.vcHost_vcMoId)
    To query hosts that are associated with a VR server:

    select * from HostEntity h where state=4 and exists (select * from HbrHostEntity where h.vcMoId=HbrHostEntity.vcHost_vcMoId)
    This query returns a host ID. You can use the vCenter MOB to identify the host using the host ID.
  • Run this query to perform a cleanup:

    To clean up Unsupported records for hosts that are not associated with a VR server:

    delete from HostEntity where state=4 and not exists (select * from HbrHostEntity where vcMoId=HbrHostEntity.vcHost_vcMoId)
    To change the state of hosts that are tagged as Unsupported and associated with a VR server to ACTIVE:

    update HostEntity set state=1 where state=4 and exists (select * from HbrHostEntity where vcMoId=HbrHostEntity.vcHost_vcMoId)
  • Restart the VRMS server at the Recovery site.
  • Re-enable HBR for the virtual machine.
  • пятница, 20 января 2012 г.

    Терминальные сервера Citrix и roaming profiles.

    Если вы используете ферму терминальных серверов Citrix совместно с roaming profiles, то могли заметить, что после отключения профили пользователей до конца не удаляются.
    Система не может удалить файл
    C:\Documents and Settings\\Application Data\VMware\hgfs.dat

    Причину данного явления процитирую из KB на сайте VMware:
    The shared folders feature is not supported by ESX Server or GSX Server, but is enabled when you install VMware Tools with theComplete option. The feature is not enabled when you install VMware Tools with the Typical option under these products.
    Алгоритм решения:
    1. Запустите Regedit.
    2. Откройте HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order\.
    3. Исправьте значение ProviderOrder:
    • Если значение параметра содержит LanmanWorkstation,hgfs, LanmanWorkstation,vmhgs, orLanmanWorkstation,vmhgfs, измените его на LanmanWorkstation.
    • Если значение параметра содержит только hgfs or vmhgfs - очистите его.
    Для вступления в силу изменений перезагрузите сервер.

    понедельник, 31 октября 2011 г.

    VMware ESXi 4 Error - "Syslog not configured."




    Т.к. vCenter до сих пор версии 4.0, то и в выборе версии ESXi есть соответствующие ограничения.

    Скачав с сайта HP дистрибутив ESXi 4.0 Update3 и устано
    вив его получил Warning такого содержания:
    Error
    Configuration Issues
    Issue detected on {host-name}: Warning: Syslog not configur
    ed. Please check Syslog options under Configuration.Software.Advanced Settings.


    Syslog это конечно правильно, но если пока нет времени/возможности его поднять, то можно обойтись и без него.

    Для этого, на сетевом VMFS создаем папку Syslog:
    И в Advanced Settings > Syslog > указываем путь к файлу, куда писать логи:
    Теперь логи хранятся удаленно.

    вторник, 23 августа 2011 г.

    Установка VMware tools в CentOS

    1. Выберите в ниспадающем меню пункт Guest->Install/Upgrate VMware tools.

    2. Залогиньтесь в CentOS и подключите CDROM

    mkdir /mnt/cdrom

    mount /dev/cdrom /mnt/cdrom

    mount: block device /dev/cdrom is write-protected, mounting read-only

    3. Перейдите в директорию /mnt/cdroom

    cd /mnt/cdrom

    4. Распакуйте VMware Tools в директорию /tmp

    tar -C /tmp -zxvf VMwareTools-5.5.3-34685.tar.gz

    5. Запустите установку

    cd /tmp/vmware-tools-distrib

    ./vmware-install.pl

    6. На все вопросы отвечайте Yes :)

    PS: ./vmware-install.pl --default запускает установку по умолчанию, без уточняющих вопросов. (Спасибо BO за подсказку в комментариях)

    пятница, 5 августа 2011 г.

    Active Directory Web Services error

    При установки vCenter на Windows 2008 в логах появляются периодические ошибки (раз в минуту):

    Active Directory Web Services encountered an error while reading the settings for the specified Active Directory Lightweight Directory Services instance. Active Directory Web Services will retry this operation periodically. In the mean time, this instance will be ignored.
    Instance name: ADAM_VMwareVCMSDS
    Решение проблемы:
    Нужно проверить значения 2х параметров

    Key: HKLM\SYSTEM\CurrentControlSet\Services\\Parameters
    Value: Port LDAP
    Type: REG_DWORD
    Data: 1 – 65535 (default: 389)

    Key: HKLM\SYSTEM\CurrentControlSet\Services\\Parameters
    Value: Port SSL
    Type: REG_DWORD
    Data: 1 – 65535 (default: 636)

    Значение берем из логов ошибки ADAM_VMwareVCMSDS.

    Если запись Port SSL уже есть, но с типом REG_SZ, то удаляем старую запись и создаем новую с типом REG_DWORD.

    После внесения изменений перезапускаем службу Active Directory Web Services.

    вторник, 26 июля 2011 г.

    Актуальные версии VMware Tools

    Иногда нужно установить VMware tools, но где скачать последнюю для вашей версии VMware ESX?

    ответ конечно очевиден, но ссылку найти сразу не удается:

    пятница, 22 июля 2011 г.

    Подключение луна без перезагрузки сервера

    Иногда при подключении луна с хранилища, к которому никогда хост не подключался, лун не виден. Рескан не помогает, выручает перезагрузка хоста для того, чтобы он заново обратился в SAN-фабрику. Но есть способ более гуманный:

    echo "scsi-qlalip" > /proc/scsi/qla2300/"number" 
    esxcfg-rescan vmhba"number"

    "number" необходимо заменить на номер vmhba-адаптера.

    Ссылка по теме

    среда, 23 марта 2011 г.

    Изменение параметров HBA адаптера Qlogic в VMWare ESXi 4.1

    ESXi Tech Support Mode Procedure To Change HBA Parameters:

    Enter Tech Support Mode on your ESXi Hypervisor terminal.

    See VMware KB article 1017910: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1017910&sliceId=2&docTypeID=DT_KB_1_1&dialogID=150110694&stateId=0%200%20150112078

    1. List the Qlogic HBas on your ESX server:

    # ls /proc/scsi/qla2xxx/

    4 5

    2. Display the detailed information for one of the specific HBAs:

    # cat /proc/scsi/qla2xxx/4

    QLogic PCI to Fibre Channel Host Adapter for QLE2460:

    Firmware version 4.04.09 [IP] [Multi-ID] [84XX] , Driver version 8.02.01-k1-vmw43

    BIOS version 2.02

    FCODE version 2.00

    EFI version 2.03

    Flash FW version 4.04.02

    ISP: ISP2432

    Request Queue = 0x41813000, Response Queue = 0x41894000

    Request Queue count = 4096, Response Queue count = 512

    Total number of interrupts = 5036

    Device queue depth = 0x20

    Number of free request entries = 3679

    Number of mailbox timeouts = 0

    Number of ISP aborts = 0

    Number of loop resyncs = 1

    Host adapter:loop state = , flags = 0x105ac3

    Dpc flags = 0x0

    MBX flags = 0x0

    Link down Timeout = 045

    Port down retry = 005

    Login retry count = 008

    Execution throttle = 2048

    ZIO mode = 0x6, ZIO timer = 1

    Commands retried with dropped frame(s) = 0

    Product ID = 0000 0000 0000 0000

    NPIV Supported : Yes

    Max Virtual Ports = 127

    SCSI Device Information:

    scsi-qla0-adapter-node=2000001b329328b8:610813:0;

    scsi-qla0-adapter-port=2100001b329328b8:610813:0;

    FC Target-Port List:

    scsi-qla0-target-0=5006016941e00787;

    scsi-qla0-target-1=5006016041e00787;

    FC Port Information:

    scsi-qla0-port-0=50060160c1e00787:5006016941e00787:610113:81;

    scsi-qla0-port-1=50060160c1e00787:5006016041e00787:610013:82;

    3. View the modules loaded for the Qlogic HBA:

    # /usr/sbin/esxcfg-module -g qla2xxx

    qla2xxx enabled = 1 options = '' (currently there are no options set.)

    4. Display the current Queue Depth for the Qlogic HBA:

    # cat /proc/scsi/qla2xxx/4 | grep -i "queue depth"

    Device queue depth = 0x20

    5. Change the Queue Depth for the HBA to 64:

    # esxcfg-module -s ql2xmaxqdepth=64 qla2xxx

    6. Reboot the ESX server for the change to take effect:

    NOTE: Ensure the ESXi server is in maintenance mode and all VMs are either vMotioned to another server or powered off.

    # reboot

    7. Display the current Queue Depth for the Qlogic HBA:

    # cat /proc/scsi/qla2xxx/4 | grep -i "queue depth"

    Device queue depth = 0x40

    The queue depth has now been sucessfully changed for this HBA from 32 to 64.

    ESXi 4.1 vSphere CLI Procedure to Change HBA Parameters

    Identify the Qlogic driver Modules installed in your system.

    C:\VMware\VMware vSphere CLI> vicfg-module.pl –l

    (The following output was edited to only show the Qlogic modules)

    Name ID Loaded

    qla4xxx 36 Yes (iSCSI HBA driver)

    qla2xxx 37 Yes (Fibre Channel HBA driver)

    2. List the current options enabled for the Qlogic driver.

    C:\VMware\VMware vSphere CLI> vicfg-module.pl –g qla2xxx

    qla2xxx options = '' (currently there are no options set.)

    3. Set the queue depth for the qla2xxx driver to 64.

    C:\VMware\VMware vSphere CLI> vicfg-module.pl –s ql2xmaxqdepth=64 qla2xxx

    No response is echoed.

    4. Check the queue depth setting for the qla2xxx driver.

    C:\VMware\VMware vSphere CLI> vicfg-module.pl -g qla2xxx

    qla2xxx options = 'ql2xmaxqdepth=64'

    Additional Common Parameter Examples:

    vSphere CLI commands are shown in blue.

    qla4xxx iSCSI driver

    Keep Alive Timeout:

    ~ # esxcfg-module -s ka_timeout=120 qla4xxx

    C:\VMware\VMware vSphere CLI> vicfg-module.pl -s ka_timeout=120 qla4xxx

    ~ # esxcfg-module -g qla4xxx

    qla4xxx enabled = 1 options = 'ka_timeout=120'

    C:\VMware\VMware vSphere CLI> vicfg-module.pl -g qla4xxx

    qla4xxx enabled = 1 options = 'ka_timeout=120'

    qla2xxx Fibre Channel driver

    Extended Error Logging

    # esxcfg-module -s "ql2xextended_error_logging=1" qla2xxx

    C:\VMware\VMware vSphere CLI> vicfg-module.pl -s ql2xextended_error_logging=1 qla4xxx

    #esxcfg-module -g qla2xxx

    qla2xxx enabled = 1 options = 'ql2xextended_error_logging=1'



    C:\VMware\VMware vSphere CLI> vicfg-module.pl -g qla2xxx

    qla2xxx enabled = 1 options = 'ql2xextended_error_logging=1'


    В завершение список остальных параметров:

    Qla2xxx Fibre Channel driver parameter option definitions for ESXi 4.1

    Note: INT stands for Integer

    heap_initial: int Initial heap size allocated for the driver.

    heap_max: int Maximum attainable heap size for the driver.

    ql2xallocfwdump: int Option to enable allocation of memory for a firmware dump during HBA initialization. Memory allocation requirements vary by ISP type. Default is 1 - allocate memory.

    ql2xcmdtimeout: int Timeout value in seconds for scsi command, default is 20

    ql2xcmdtimermin: int Minimum command timeout value. Default is 30 seconds.

    ql2xdevdiscgoldfw: int Option to enable device discovery with golden firmware Default is 0 - no discovery. 1 - discover device.

    ql2xenablemsi: int Enables MSI-X/MSI interrupt scheme Default is 0 - disable MSI-X/MSI. 1 - enable MSI-X/MSI.

    ql2xexecution_throttle: int IOCB exchange count for HBA.Default is 0, set intended value to override Firmware defaults.

    ql2xextended_error_logging: int Option to enable extended error logging, Default is 0 - no logging. 1 - log errors.

    ql2xfdmienable: int Enables FDMI registratons Default is 0 - no FDMI. 1 - perfom FDMI.

    ql2xiidmaenable: int Enables iIDMA settings Default is 1 - perform iIDMA. 0 - no iIDMA.

    ql2xintrdelaytimer: int ZIO: Waiting time for Firmware before it generates an interrupt to the host to notify completion of request.

    ql2xioctltimeout: int IOCTL timeout value in seconds for pass-thur commands. Default is 66 seconds.

    ql2xloginretrycount: int Specify an alternate value for the NVRAM login retry count.

    ql2xlogintimeout: int Login timeout value in seconds.

    ql2xmaxqdepth: int Maximum queue depth to report for target devices.

    ql2xmaxsgs: int Maximum scatter/gather entries per request, Default is the Max the OS Supports.

    ql2xoperationmode: int Option to disable ZIO mode for ISP24XX: Default is 1, set 0 to disable

    ql2xplogiabsentdevice: int Option to enable PLOGI to devices that are not present after a Fabric scan. This is needed for several broken switches. Default is 0 - no PLOGI. 1 - perfom PLOGI.

    ql2xqfullrampup: int Number of seconds to wait to begin to ramp-up the queue depth for a device after a queue-full condition has been detected. Default is 120 seconds.

    ql2xusedefmaxrdreq: int

    ql2xusedrivernaming: int Enables Consistent Device Naming feature Default is 0, set 1 to enable.

    qlport_down_retry: int Maximum number of command retries to a port that returns a PORT-DOWN status.

    usedefmaxrdreq: Default is 0 - adjust PCIe Maximum Read Request Size. 1 - use system default.

    Qla4xxx (iSCSI HBA) driver parameter option definitions for ESXi 4.1

    cmd_timeout: int Command Timeout

    extended_error_logging: int Option to enable extended error logging, Default is 0 - no logging, 1 - debug logging

    gratuitous_arp: int Gratuitous ARP

    heap_initial: int Initial heap size allocated for the driver.

    heap_max: int Maximum attainable heap size for the driver.

    ioctl_timeout: int IOCTL Timeout

    ka_timeout: int Keep Alive Timeout

    ql4xdiscoverywait: int Discovery wait time

    ql4xdontresethba: int Dont reset the HBA when the driver gets 0x8002 AEN default it will reset hba :0 set to 1 to avoid resetting HBA

    recovery_tmo: int Recovery Timeout

    пятница, 25 февраля 2011 г.

    Как спрятать иконку VMware Tools в гостевой ОС

    Иногда хочется скрыть иконку VMware Tools в гостевой OC Windows для пользователей.

    Для этого в реестре:

    HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware Tools

    для значения ShowTray выставьте значение 0.

    пятница, 11 февраля 2011 г.

    Бесплатная утилита vDisk Informer - выравнивание блоков в среде VMware vSphere

    Ricky El-Qasem, автор сайта VirtualizePlanet.com, выпустил интересную бесплатную утилиту для VMware vSphere - vDisk Informer. Эта утилита решает две важные проблемы:

    1. Поиск виртуальных машин, дисковое пространство которых используется неэффективно, попросту говоря, много свободного места:

    При сканировании виртуальной инфраструктуры можно задавать объем в ГБ или МБ, начиная с которого будут отображаться соответствующие иконки, говорящие нам о том, что можно уменьшить диск виртуальной машины.

    2. Вторая функция нужнее - она позволяет определить виртуальные машины, у которых наблюдается проблема некорректного выравнивания блоков дисков VMDK (например, после P2V-миграции). Можно также задавать параметры смещения - 32K или 64K (в зависимости от SAN-массива, где лежат ваши ВМ):

    Скачать vDisk Informer можно по этой ссылке. Видео о возможностях здесь.

    Источник

    вторник, 11 января 2011 г.

    Управление VM с помощью PowerCLI

    Наткнулся на статью в KB по управлению VM. Хотя там и написаны основы, но 2 очень важных момента там есть:
    • конфигурация сети виртуальной машины
    • выгрузка свойств виртуальной машины, в том числе VMID
    Get-VM vmname | Format-List - информация, о VM

    дальше цитата:
    Collecting information about the virtual machine
    This section discusses the commands that can be used to collect detailed information about the virtual machine. This article provides an overview of the commands they can be customized according to the needs.
    Collecting information about virtual machine hardware
    To get a list of all the virtual machines in the inventory and their name, power state, number of CPUs, and configured memory, run the cmdlet:

    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM

    Name PowerState Num CPUs Memory (MB)
    ---- ---------- -------- -----------
    NW PoweredOff 1 512
    PowerCLI PoweredOn 1 1024

    Note: This command provides information about the version, virtual hardware attached(virtual disk, network, CD-ROM), datastore, host, HA restart and isolation properties:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM windows-dc | Format-List *
    Collecting information about the virtual machine guest operating system
    vSphere PowerCLI provides cmdlets to retrieve the details about the virtual machine guest operating system. These cmdlets are independent of the guest operating system installed in the virtual machine.
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VMGuest -VM windows-dc | Format-List *

    OSFullName : Microsoft Windows Server 2003, Enterprise Edition (64-bit)
    IPAddress : {10.112.102.7}
    State : Running
    HostName : windows-dc.vcd.com
    Nics : {}
    ScreenDimensions : {Width=1024, Height=768}
    Note: When retrieving the details about the guest operating system, you are prompted for the user name and password for the ESX/ESXi host and guest operating system. You can provide the authentication details in the command by using the -HostUser root -HostPassword pass1 -GuestUser administrator -GuestPassword vmware123 parameters.
    Using PowerCLI you can also query, start, or stop a service within the guest operating system. You can use Start-Service, Stop-Service, and Restart-Service cmdlets to modify the status of the service. If no virtual machine is specified in the command the change is be made on all the Windows virtual machines in the inventory.
    Note: To use this command ensure that the latest version of VMware Tools are installed on the Virtual Machine and this cmdlet is applicable only for Windows Guest.
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM windows-dc | Invoke-VMScript "Get-Service app*"
    Status Name DisplayName
    ------ --- -----------
    Stopped AppMgmt Application Management
    vSphere PowerCLI also provides cmdlets to provide the Network Configuration information from within the guest operating system:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VMGuestNetworkInterface -VM windows-dc -HostUser root -HostPassword vmware123 -GuestUser administrator -GuestPassword vmware123

    VMId : VirtualMachine-vm-33
    VM : windows-dc
    NetworkAdapter : Network adapter 1
    SubnetMask : 255.255.252.0
    NicId : VirtualMachine-vm-33/4000
    Name : Local Area Connection
    IPPolicy : Static
    Ip : 10.112.102.7
    Dns : {127.0.0.1}
    DefaultGateway : 10.112.103.254
    Description : Intel(R) PRO/1000 MT Network Connection
    Mac : 00-0C-29-30-F3-11
    RouteInterfaceId : 0x10003
    Uid :
    /VIServer=@10.112.101.9:443/VMGuestNetworkInterface=00-0C-29
    -30-F3-11/
    DnsPolicy : Static
    WinsPolicy : Static
    Wins :
    To retrieve the routing configuration of the specified virtual machine, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VMGuestroute -VM windows-dc -HostUser root -HostPassword vmware123 -GuestUser administrator -GuestPassword vmware123

    Destination : 0.0.0.0
    Gateway : 10.112.103.254
    Interface : 10.112.102.7
    Netmask : 0.0.0.0
    VMId : VirtualMachine-vm-33
    VM : windows-dc
    Configuring a virtual machine using PowerCLI
    This section discusses the cmdlets that you can use to configure/reconfigure the virtual machines.
    To create new virtual machines, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> New-VM -VMHost 10.112.96.17 -Name TestCli -MemoryMB 1024 -DiskMB 8024
    Name PowerState Num CPUs Memory (MB)
    ---- ---------- -------- - ----------
    TestCli PoweredOff 1 1024
    To migrate a virtual machine using vMotion, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VMHost 10.112.96.18 | Get-VM "windows-cli" | Move-VM -Destination 10.112.96.17
    Name PowerState Num CPUs Memory (MB)
    ---- ---------- -------- -----------
    windows-cli PoweredOn 1 1024
    To migrate a virtual machine using Storage vMotion, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM windows-rhel5 | Move-VM -Datastore vCloud-1
    Name PowerState Num CPUs Memory (MB)
    ---- ---------- -------- -----------
    windows-rhel5 PoweredOn 1 3072
    All of the virtual machines in the in the inventory can be configured with or without the CD-ROM drive using this command:
    Note: To disable CD-ROM, use the $false option. To enable CD-ROM, use the $true option.
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM | Get-CDDrive | Set-CDDrive -Connected:$false
    Confirm
    Are you sure you want to perform this action?
    Performing operation "Setting Connected: False, NoMedia: False." on Target "CD/DVD Drive 1".
    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Y
    Working with virtual machine snapshots
    vSphere PowerCLI provides cmdlets to create/remove snapshots for all of the virtual machines in the inventory. However, you may further customize the command to specify virtual machines from a specific ESX/ESXi Host, Cluster, or Datacenter.
    To take a new snapshot for all virtual machines in a Cluster, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-Cluster "vCloud" | Get-VM | New-Snapshot -Name Automate
    Name Description PowerState
    ---- ----------- ----------
    Automate PoweredOff
    Automate PoweredOff
    To remove a snapshot from all of the virtual machine in the inventory, run the cmdlet:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-VM | Get-Snapshot | Remove-Snapshot
    Confirm
    Are you sure you want to perform this action?
    Performing operation "Removing snapshot." on Target
    "VirtualMachineSnapshot-snapshot-174".
    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
    (default is "Y"):A
    Note: Use the preceding commands with caution as the changes made are applicable for all virtual machines.
    Updating VMware Tools
    Update-Tools cmdlets can be used to update the VMware Tools on a single or multiple virtual machines. This command reboots the virtual machine after updating the VMware Tools. You can use the -NoReboot option to update the VMware Tools without rebooting the virtual machine.
    In this example, the VMware Tools for all of the virtual machines in Resource Pool vCloud will be updated without rebooting the virtual machine:
    [vSphere PowerCLI] C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> Get-ResourcePool vcloud | Get-VM | Update-Tools -NoReboot
    WARNING: Automatic update of VMware tools is not fully supported for
    non-Windows OSs. Manual intervention might be required.
    Note: Before running the cmdlet, ensure that the VMware Tools service is running. This command is used only to upgrade VMware Tools. To do an unattended install, use msiexec.exe. For more information, see The Microsoft article Use Windows Installer from the command line.