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

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

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.
  • вторник, 28 августа 2012 г.

    Could not connect using the requested protocol

    Неожиданно команда PowerCLI Connect-VIServer VI.SERVER.NAME стала выдавать ошибку:
    PowerCLI D:\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServer VI.SERVER.NAME
    Connect-VIServer : 11/22/2011 7:35:37 AM Connect-VIServer Could not connect using the requested protocol.
    At line:1 char:17
    + Connect-VIServer <<<<  VI.SERVER.NAME
    + CategoryInfo : ObjectNotFound: (:) [Connect-VIServer], ViServerConnectionException
    + FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_ProtocolError,VMware.VimAutomation.ViCore.Cmd

    Оказалось что проблема в том, что используется прокси сервер. В моем случае достаточно было просто отключить прокси в настройках IE, т.к. на сервере Inet не требуется. Более правильный случай описан в KB:


    1. Посмотреть вывод команды
    Get-PowerCLIConfiguation

    2. Убеждаемся что используем системные настройки прокси:
    C:\PS>Get-PowerCLIConfiguration
    Proxy Policy Default Server
                                   Mode
    -------------------------       ---------------
    UseSystemProxy      Single
    Note: This output indicates that the PowerCLI is using the System Proxy.
    3. Для отключение использования прокси в PowerShell выполняем команду:
    Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm
    4. И смотрим вывод команды:
    C:\PS>Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm
    Perform operation?
    Performing operation 'Update vSphere PowerCLI configuration.'?
    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
    Proxy Policy Default Server
                         Mode
    ------------         ---------------
    NoProxy              Single 

    Источник

    пятница, 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.

    четверг, 31 марта 2011 г.

    Новые правила DRS в vSphere 4.1

    В vSphere 4.1 при создании DRS правил появилась еще одна очень полезная опция, а именно VMs to Hosts affinity rules.

    VMs to Hosts affinity rule-ы бывают двух видов:
    • Must run rules (Принудительные) (а так же anti affinity)
    • Should run rules (Предпочительные) (а так же anti affinity)
    Must run rules – принудительные правила ограничивают HA, DRS и пользователей таким образом, что виртуальная машина может не включиться или же переехать на другой ESX/ESXi хост который не принадлежит ассоциированный DRS host группе.

    Should run rules – дает предпочтение DRS-у чтобы запустить виртуальную машину на хосте который указан в ассоциированной DRS host группе.

    Два самых характерных примеров использования:
    1. Несколько Blade-шасси с серверами и желание обеспечения того, чтобы VM с одинаковым функционалом всегда оставались в пределах разных шасси.
    2. Несколько VM с интенсивным обменом данными между собой, которые правильно размещать на одном хосте (например приложение и база данных)

    Как это сделать, подробно и в картинках, здесь

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

    Создание резервной копии базы vCenter

    У многих база vCentr'а располагается на локальном SQL Express. Возникает вопрос с бекапом базы. Есть Отличная утилита Data Migration Tool, но она не работает с vCenter 4.1. Выход - использование SQL Server Management Studio Express. Процитирую источник:

    Creating a Backup Script

    If you don’t have SQL Server Management Studio Express installed already, download and install it now.

    Fire it up and log on with a user that has sufficient permissions to access the vCenter database

    Find your vCenter database by expanding Databases and select VIM_VCDB

    Right click on VIM_VCDB and select Tasks and then Back Up…

    This opens the Back Up Database window, where you set your backup options. Set your options in a manner that fits your environment. You can set options like the backup file location, retention policy etc.

    So far, this is all fine and dandy. You can create a manual backup this way, without much hassle. How can we turn that into a scheduled job?
    The first bit is to turn your backup options into a SQL script that can be scheduled. You do this by finding the Script drop-down menu on the top of the Backup Database window. Select Script Action to New Query Window.

    This opens the script window, where you can see the script and test it to make sure it works as intended.

    The next step is to save the generated script, you do so my going to File and select Save … As. I’ve created a folder called c:\scripts\ that I use to store my SQL scripts in, so I’ll save the backup script there as FullBackupVCDB.sql.

    Scheduling the Backup Script

    Now that we have a working backup script, we need to be able to schedule it to run. As we can’t do that within the SQL Server Management Studio Express application, we need to find another way of scheduling it. Windows Server 2008 R2 (and other versions) include a scheduling tool, and that’s what we’ll use to create our schedule.

    On my standard vCenter installation, the SQL Server is installed in the default location of C:\Program Files (x86)\Microsoft SQL Server\. This means that the actual command we need to schedule will be (be sure to replace the server-/instance-name and script name if your values differ from mine):

    “C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE” -S [servername]\SQLEXP_VIM -i c:\scripts\FullBackupVCDB.sql

    Go to the Control Panel and select Schedule Tasks. Click Create Basic Task, give it a name and set an appropriate schedule.

    Select Start a program as the action for the task, and when it asks for Program/Script enter “C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\SQLCMD.EXE” -S [servername]\SQLEXP_VIM -i c:\scripts\FullBackupVCDB.sql.

    Click next and check the box that says Open the Properties dialog for this task when I click Finish then click Finish. In the VCDB Backup properties, make sure the Run whether user is logged on or not option is selected, to make sure the schedule runs as planned.

    Once you have verified that the schedule works as intended, make sure that you include the location for your vCenter database in your regular backup scheme, and you should we a lot safer than you were.

    Источник

    четверг, 12 августа 2010 г.

    Не стартует служба VirtualCenter после перезагрузки.

    Бывает такое, что после перезагрузки VMware VirtualCenter служба VirtualCenter отказывается стартовать если используется БД SQL Express 2005.

    Это происходит из-за того, что VirtualCenter Server стартует быстрее чем SQL Express Service. Для того, чтобы он ждал SQL Express, нужно создать зависимость службы VirtualCenter от SQL Express.

    Как это сделать:

    • Выполняем команду services.msc в меню «Пуск-Выполнить».
    • Ищем службу SQL Express, выбираем для нее «Properties». И находим для нее поле Service Name (в данном случае MSSQL$SQLEXP_VIM).
    • Запускаем Regedit.exe и ищем ключ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd.
    • В значении DependOnService вписываем Service Name от SQL Express 2005, которое нашли в предыдущем пункте. 
    • Закрываем редактор реестра и смотрим, что на вкладке «Dependencies» для VirtualCenter Server появилась зависимость от SQL Express.

    Источник

    пятница, 14 августа 2009 г.

    vAudit for VMware View

    Для использующих VMware View может пригодится стороння фришная утилита vAudit 1.0.

    Дает статистику по работе юзеров с виртуальными десктопами - logon and logon failures, working hours, logoff and disconnection.

    Дает расклад по таймингу событий.

    Источник

    понедельник, 3 августа 2009 г.

    Как ограничить доступ к VMware vCenter через Web Access по IP-адресу

    Как вы знаете, Web Access на VMware ESX 4 в vSphere отключен по умолчанию. Для VMware vCenter иногда требуется отключить Web Access насовсем в целях безопасности. Однако как быть, если вы хотите ограничить доступ пользователей к VMware Web Access на vCenter по IP-адресу для администраторов? Очень просто - добавляем в файл:

    C:\Program Files\VMware\Infrastructure\VirtualCenter Server\tomcat\conf\server.xml

    на сервере VMware vCenter следующую строчку:

     

    где 192.168.2.15 и 192.168.1.* - разрешенные для доступа к vCenter IP-адреса или их диапазоны.

    Источник

    понедельник, 13 июля 2009 г.

    Ошибка при попытке удалить VCB snapshot

    Иногда при попытке удалить snapshot, сделанный VCB, появляется ошибка "The request refers to an object that no longer exists" - snapshot соответственно не удаляется. В интернете предлагают много решений (рестарт VC, рестарт mgmt-service, вывод хоста из кластера, отключение DRS). В моем случае помогла простая миграция средствами vmotion на другой хост кластера.

    пятница, 10 июля 2009 г.

    Не стартует VirtualCenter после перезагрузки. Что делать?

    Иногда после перезагрузки не поднимается служба VirtualCenter, решение кратко ниже, и подробнее по ссылке

    Это происходит из-за того, что VirtualCenter Server стартует быстрее чем SQL Server Service. Для того, чтобы он ждал SQL Server, нужно создать зависимость службы VirtualCenter от SQL Server. 

    Как это сделать: 

    • Выполняем команду services.msc в меню «Пуск-Выполнить».
    • Ищем службу SQL Express, выбираем для нее «Properties». И находим для нее поле Service Name 
    • Запускаем Regedit.exe и ищем ключ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd. 
    • В значении DependOnService вписываем Service Name от SQL Express 2005, которое нашли в предыдущем пункте. 
    • Закрываем редактор реестра и смотрим, что на вкладке «Dependencies» для VirtualCenter Server появилась зависимость от SQL Express.

    Источник: http://www.vmgu.ru/news/vmware-vcenter-dep