null

Установка OracleVDI на OEL5.6

Недавно у одного нашего заказчика возникли трудности с установкой Oracle VDI (Virtual Desktop Infrastructure) на Oracle Enterprise Linux. Давайте рассмотрим один из вариантов установки ближе, но прежде, думаю, стоит обратить внимание на то, что-же такое VDI и для чего он нужен.
Oracle VDI — это комплекс утилит, включающих в себя сам VDI, SunRay Software, mysql-server, web-server и пр. Используется этот комплект утилит для управления виртуальными рабочими столами; создания, исполнения и хранения виртуальных машин; аутентификации пользователей и предоставления им доступа к их виртуальным рабочим столам, а так-же предоставление клиентской части с помощью VDI-клиента. Архитектура Oracle VDI предполагает наличие клиента, взаимодействующего с OracleVDI по различным протоколам (RDP — любой rdp-клиент, ALP — Oracle SunRay клиент или Oracle Virtual Desktop клиент). На уровне управления, OracleVDI предполагает взаимодействие с Active Directory или LDAP — серверами, для хранения, в частности, каталогов пользователей и их аутентификации (возможно так-же хранение данных в базе данных MySQL). На уровне виртуализации, OracleVDI предполагает взаимодействие с гипервизором (это может быть как Oracle VDI Hypervisor, так и Microsoft Hyper-V), который в свою очередь по протоколу iSCSI связывается с системой хранения данных. Перейдем к установке.
Для начала приведу использованные версии пакетов:
Oracle Enterprise Linux 5.6
Oracle VDI 3.3.2
Версия OEL была выбрана согласно официальной документации, версия OracleVDI — самая последняя на текущий момент.

Для начала, убедимся, что соблюдены все условия, необходимые для установки VDI на машину:
yum правильно настроен и может устанавливать пакеты из репозитория (об это позже);
VDI для работы требуется, чтобы Oracle Enterprise Linux находилась в многопользовательском режиме и с запущенной сессией X-сервера (runlevel 5);
на хосте требуется работающий демон iscsi;
SELinux потребуется временно отключить — это требуется для того, чтобы конфигурация VDI не завершалась ошибочно.
Сделаем это пошагово:

# cd /etc/yum.repos.d/
# ls


если тут пусто, то yum не настроен. Скачаем файл с репозиториями

# wget http://public-yum.oracle.com/public-yum-el5.repo

Теперь включим необходимые репозитории. Для этого любимым текстовым редактором изменим значения enabled=0 на 1 для всех предлагаемых репозиториев в файле public-yum-el5.repo. Если включить не все репозитории, то впоследствии может возникнуть ряд ошибок при установке зависимостей VDI

# vi *.repo
:%s/0/1/g
:wq

Теперь удостоверимся, что запущен iSCSI демон

# /etc/init.d/iscsi status

Если демон не запущен, можно выполнить команду

# /etc/init.d/iscsi start

Так-же потребуется временно выключить SELinux. Для этого можно выполнить

# /usr/sbin/setenforce 0

Приступим к установке VDI. Для этого сначала извлечем архив с VDI

# unzip vda_3.3.2_linux.zip
# cd vda_3.3.2_linux

Запустим установку
Примечание: установщик VDI обладает дружелюбным интерфейсом. Отвечая на вопросы пустой строкой, мы выбираем ответ «по-умолчанию». Ответ «по умолчанию» в интерфейсе установщика выделен квадратными скобками.

# ./vda-install

Oracle Virtual Desktop Infrastructure 3.3.2 Installation


SOFTWARE LICENSE AGREEMENT

/* тут находится текст лицензионного соглашения */

Do you accept the license agreement? (y/n) y

Внимательно прочтем лицензионное соглашение и примем его условия.

Checking for required libraries and packages...

Oracle VDI 3.3.2 Installation
   + Installing Oracle VDI Installation Utilities...
   + Installing Java DMK 5.1 Libraries...
   + Installing Common Agent Container - Runtime...
   + Installing Oracle VDI Core...
   + Installing Oracle VDI Center Agent...
   + Installing MySQL Database...
   + Installing Oracle VDI Web server...
   + Installing Oracle VDI Manager...
   + Installing RDP Broker...
   + Installing Sun Ray Client...
   + Installing Java Runtime Environment...
   + Installing Sun Ray Server...

Oracle VDI 3.3.2 was successfully installed.
A log file is available at '/var/log/vda-install.2012_02_16_20:38:43.log'.

You can continue to configure Oracle VDI 3.3.2 with '/opt/SUNWvda/sbin/vda-config'.

Do you want to configure Oracle VDI 3.3.2 now? ([y]/n) y

Выберем y, чтобы сконфигурировать OracleVDI прямо сейчас.

Oracle Virtual Desktop Infrastructure 3.3.2 Configuration

An Oracle VDI Center consists of one or several Oracle VDI Hosts. You can create a new Oracle VDI Center by configuring this server as the Primary Oracle VDI Host.

High availability requires a second Oracle VDI Host in the center. You can add as many Secondary Oracle VDI Hosts to an existing Oracle VDI Center as needed. During configuration, you will be asked to enter user name and password of a privileged account on the Primary Oracle VDI Host.
Please note that joining an Oracle VDI Center causes a short interruption of active sessions on the Primary Oracle VDI Host.

   1 New Oracle VDI Center
   2 Join Oracle VDI Center

Select (1/2): 1

Выберем 1, чтобы создать новый Oracle VDI Center. И ответим на вопросы, согласно требуемой конфигурации.

Review the settings for a new Oracle VDI Center:
   Name: VDI Center
   Administrator Password: ********
   DNS name of this host: dhcp-52-253.tdc
   SunRay Software: Not configured
   Database: Embedded Oracle VDI

Do you want to create the Oracle VDI Center now? Enter 'c' to customize the settings. ([y]/c): c

Enter a name for your new VDI Center [VDI Center]:

Specify an administrator password or use a generated secure password [********]:
The password must contain at least five characters.

Specify an administrator password or use a generated secure password [********]:
Re-enter the administrator password:

Enter the DNS name of this host [dhcp-52-253.tdc]:

Specify the maximum number of sessions per host [100]:

A local user will be created for each session.

Enter the user ID range start [150000]:

You can use the embedded MySQL database of Oracle VDI or connect to a remote MySQL database.
   1 Embedded Oracle VDI database
   2 Remote database

Select ([1]/2): 1

Review the settings for a new Oracle VDI Center:
   Name: VDI Center
   Administrator Password: ********
   DNS name of this host: dhcp-52-253.tdc
   SunRay Software: Not configured
   Database: Embedded Oracle VDI

Do you want to create the Oracle VDI Center now? Enter 'c' to customize the settings. ([y]/c): y

System Configuration
   + Creating new instance of Common Agent Container (vda)...
   + Setting properties for Common Agent Container (vda)...
   + Enabling Common Agent Container (vda) at system boot...

Oracle VDI Center Agent Configuration
   + Stopping Common Agent Container (vda)...
   + Deploying center agent module in Common Agent Container (vda)...
   + Restarting Common Agent Container (vda)...
   + Creating Oracle VDI Center...
   + Configuring time synchronization...

Sun Ray Server Software Configuration
   + Configuring Sun Ray Server Software...

Sun Ray Client Configuration
   + Setting Kiosk Mode Session Type to 'Oracle Virtual Desktop Infrastructure'...
   + Setting Sun Ray Policy ...
   + Enabling LAN Connections...
   + Restarting Sun Ray Server Software...

MySQL Database Server Configuration
   + Creating MySQL group (vdadb)...
   + Creating MySQL user (vdadb)...
   + Setting up MySQL directory...
   + Initializing database...
   + Registering database service...
   + Starting Oracle VDI database (MySQL)...
   + Configuring MySQL Root Password...
   + Creating database user with Administrator privileges...
   + Creating database users for replication...
   + Configuring MySQL Information...

MySQL Database Client Configuration
   + Setting user rights...
   + Creating database tables...
   + Configuring database connection...

Oracle VDI Service Configuration
   + Deploying service module in Common Agent Container (vda)...

Oracle VDI Manager Configuration
   + Enabling Oracle VDI Manager...
   + Restarting Oracle VDI Manager...

RDP Broker Configuration
   + Registering RDP broker...
   + Starting RDP broker...

The configuration of Oracle VDI 3.3.2 has completed.
This server is configured as a Primary Oracle VDI Host of the new Oracle VDI Center 'VDI Center'.
A log file is available at '/var/log/vda-config.2012_02_16_20:41:14.log'.

The command line tools are located at '/opt/SUNWvda/sbin'.
You can access the Oracle VDI Manager at http://dhcp-52-253.tdc:1800

OracleVDI установлен, сконфигурирован и готов к работе. Как и сказано в скрипте конфигурации, получить доступ к веб-интерфейсу можно набрав в браузере адрес: http://dhcp-52-253.tdc:1800
Сам-же VDI установлен в /opt/SUNWvda.

korg

 

Коротко о себе

Работаю в компании Tune-IT, администрирую инфраструктуру компании и вычислительную сеть кафедры Вычислительной ТехникиСПбНИУ ИТМО.

Интересы: администрирование UNIX и UNIX-like систем и активного сетевого оборудования, написание shell- и perl-скриптов, изучение технологий глобальных сетей.
Люблю собирать GNU/Linux и FreeBSD, использовать тайлинговые оконные менеджеры и писать системный софт.