Vmware vcenter server appliance linux

How to install vCenter Server Appliance 6.5 U1 from Linux

I recently got a request on how to install vCenter Server Appliance from a Linux workstation instead of Windows. I never really thought about it since, hate me or not, my primary working OS has always been Windows. So today, I’ll be sharing my experience installing vCSA 6.5 U1 using the command line and UI installers from a CentOS 7 64-bit VM running X Windows and Gnome.

What I won’t be covering is the actual process of installing vCSA as this has already been covered in How to install vCenter Server Appliance 6.5 from scratch and How to run an unattended vCSA installation. Instead, I’ll show you how to kick off the vCSA installation and tackle any issues I may run into along the course of installing vCenter.

Mounting the vCSA CD/DVD

The basic requirement, of course, is to have a vCSA 6.5 ISO image. If you don’t, go ahead and download one from the VMware my.vmware.com website.

Once you have the ISO, your options are to either burn the ISO to a DVD or extract its contents to a folder, if you have Linux running on a physical machine. If you’re using a Linux VM to install vCSA – like I’m doing – you can simply mount the ISO image as a CD/DVD drive.

The ISO image used for this post is VMware-VCSA-all-6.5.0-5318154.iso.

For VMware Workstation users, mount the ISO image using the steps shown in the next screenshot. Just make sure that the Device Status (6) is set to Connected.

Mounting an ISO image as a CD/DEV device in VMware Workstation

Mounting an ISO image as a CD/DEV device in VMware Workstation

For VMware ESXi / vCenter Server users, follow the steps labeled in the next screenshot.

Mounting an ISO image as a CD/DEV device on VMs hosted on ESXi

Mounting an ISO image as a CD/DEV device on VMs hosted on ESXi

If you’re running Linux without X Windows, you need to run the following commands to access the CD/DVD drive contents.

mkdir /tmp/vcsaiso mount -t iso9660 /dev/cdrom /tmp/vcsaiso

If you’re running Linux with X Windows, the CD/DVD will mount automatically for you once the ISO image is mounted on the VM.

Centos 7 configured to run X Windows and Gnome. The vCSA CD/DVD media is mounted automatically.

Centos 7 configured to run X Windows and Gnome. The vCSA CD/DVD media is mounted automatically.

Installing vCSA with the UI installer

For Linux users with X Windows and a desktop environment such as Gnome, the UI installer is probably the best option for installing vCSA. The procedure is outlined as follows.

Читайте также:  Монтирование виртуальных дисков linux

Step 1 – Click on the CD-ROM icon and drill down to vcsa-ui-installer/lin64.

Step 2 – Click on installer.

Running the vCSA UI installer under Linux

Running the vCSA UI installer under Linux

Note: If nothing happens after you click on the installer, you are probably missing one or more dependencies. To find out what’s missing, open a terminal window – right-click on the desktop and select Open Terminal – and drag the installer file to it and press Enter.

On my CentOS VM, I kept running in a missing library error which prevented the vCSA installer from executing. I fixed the problem by using yum to first find out which software was calling the library and, secondly, to install it. Here are the commands I used.

yum whatprovides yum install

Adding a missing dependency in Linux to allow the vCSA UI installer to execute

Adding a missing dependency in Linux to allow the vCSA UI installer to execute

Step 3 – Click Install on the vCSA installer.

Kicking of the vCSA 6.5 installation using the UI installer

Kicking off the vCSA 6.5 installation using the UI installer

The vCSA installation, as you probably know, consists of 2 stages. Here’s a video showing stage 1 from the installation process. If you’re familiar with the installation process, you’ll notice that it is identical to how it’s done in Windows.

Stage 1 completed successfully!

Stage 1 completed successfully!

Installing vCSA using the command line installer

Again, have a look How to run an unattended vCSA installation to learn how to use the command line vCSA installer. The procedure on Linux is almost identical as outlined next.

Step 1 – Download and edit the JSON configuration as required. Note, the I included, is used to deploy vCSA to an existing vCenter Server, say, as a nesting environment. For any other setup, you should pick the correct template from /run/media/root/CDROM/vcsa-cli-installer/templates/install.

Step 2 – From a terminal Window or console, type vim /tmp/vcsa.json and press Insert. Paste the contents of the JSON file and press :wq! to save and quit. Alternatively, copy the JSON file using scp or a similar file-copy method.

Step 3 – Navigate to the vCSA media folder using cd path to CDROM>. In my case the path is /run/media/root/CDROM/. Drill down to vcsa-cli-installer/lin64.

Step 4 – Run the following command to verify that the JSON configuration is correct. The command performs several checks. Make sure a Verification completed successfully is returned for all. If not, recheck the JSON config file.

./vcsa-deploy install --verify-only /tmp/vcsa.json

Step 5 – Copy the SSL thumbprint shown in the above screenshot (yours will differ) and re-run the previous command as follows:

./vcsa-deploy install --deployment-target-ssl-thumbprint 77:12:F8:22:DE:44:16:11:A3:DB:02:12:57:DE:FB:B0:36:3F:6B:1D --accept-eula /root/vcsa.json

Step 6 – Verify that the installation completed successfully. Apart from looking at the installer’s output, the easy way to verify if vCenter is running is by pointing a browser to https:// .

vCSA 6.5 successfully installed using the cli method from Linux

vCSA 6.5 successfully installed using the cli method from Linux

Читайте также:  Rpm file install in linux

The vSphere client (HTML5) running in Chrome under Linux

The vSphere client (HTML5) running in Chrome under Linux

Wrap-Up

The vCSA installer can be run on a number of operating systems including Windows, Linux and macOS. Today I’ve covered how to install vCSA 6.5 U1 using both the UI and cli based installers on a CentOS 7 Linux machine. I won’t be covering macOS anytime soon since I don’t have any Macs lying around but there are plenty of posts out there, such as this one, which describes the installation process. To my mind, it should be identical to installing vCSA from Linux, give and take.

In the meantime, do have a look at the complete list of VMware posts hoping you’ll find something equally interesting and useful. If you like this post, please be sociable and share.

Источник

Vmware vcenter server appliance linux

Подробное описание развёртывания и обновление vCSA со всеми вариантами описано в документе — VMware vCenter Server 6.0 Deployment Guide.

Здесь описана установка (развёртывание) VMware vCenter Server Appliance (vCSA) 6.0 в инфраструктуре где еще нет никакого vCenter Server, т.е. установка с нуля. Развёртывание vCenter Server (vCS) может производиться несколькими разными способами, например из дистрибутива. Но такой способ может быть сложен. Поэтому, чтобы упростить развёртывание, компания VMware подготовила уже установленный vCS.

VMware vCenter Server Appliance ( vCSA) — это готовая виртуальная машина с установленой ОС Linux и vCenter Server и связанными с ними сервисами. Т.е. достаточно развернуть эту готовую виртуальную машину в ESXi, сконфигурировать её и вы получите работающий vCenter Server.

Порядок развёртывания

Скачивание дистрибутива vCenter Server Appliance 6.x

  1. Пройти по ссылке VMware Download Center.
  2. В разделе Datacenter & Cloud Infrastructure, в строке VMware vSphere, кликнуть Download Product.
  3. Найти секцию с соответствующей лицензией, например Essentials.
  4. Внутри секции, в строке VMware vCenter Server 6.0 xxx, кликнуть Go to Downloads.
  5. На странице Download VMware vCenter Server 6.0, в поле Select Version выбрать необходимую версию (лучше самую последнюю). На закладке Product Downloads выбрать необходимый вариант и нажать Download Now. После этого произойдет авторизация и если у вас есть права на скачивания этого дистрибутива – начнется скачивание.

Примечание: vCenter Server Appliance версии 6.x поставляется в виде ISO или ZIP. При этом ISO образ не содержит загрузочного диска, а содержит web-установшик который запускается на любом компьютере через браузер и с этого компьютера происходит развертывание. Поэтому, возможно что удобнее скачивать ZIP или вам придется каким-то образом получить доступ к содержимому ISO диска на компьютере с которого будет осуществляться развёртывание. Есть несколько способов (для Windows):

— записать iso на dvd диск и использовать его
— использовать программы которые умеют монтировать iso как виртуальный cdrom, например Daemon Tools. Windows 8 и 10 умеют это делать штатно (кликнуть правой мышью на iso-файле в Проводнике и выбрать Подключить).
— некоторые архиваторы умеют распаковывать iso образы, например 7Zip или WinRar
— программы которые предназначены для работы с iso-дисками, например UltraISO.

Читайте также:  Linux execute bin files

Развёртывание vCenter Server Appliance 6.x

1. Установить на компьютере с которого вы осуществляете развёртывание — VMware Client Integration Plug-In для этого нужно запустить VMware-ClientIntegrationPlugin-6.0.0.exe из папки vcsa дистрибутива vCSA. Сама установка очень простая и никаких трудностей вызывать не должна.

2. Для развёртывания vCSA нужно открыть файл vcsa-setup.html из дистрибутива vCSA. Я открывал его через Chrome.

3. Сначала появилось сообщение что нужно установить плагин VMware Client Integration Plug-In

image

Через несколько секунд появилось еще одно окно с запросом внешнего протокола, нужно нажать Launch Application

image

Потом еще одно окно — нажать Allow

SNAGHTML185e518

В результате запустилась установка — нажать Install

image

4. Принять лицензионное соглашение

image

5. Ввести адрес и учетную запись для хоста гипервизора ESXi на котором будет развернут vCSA.

image

6. Одобрить продолжение с тем сертификатом который есть.

image

7. Ввести имя виртуальной машины для vCSA и пароль администратора в ОС этой машины

image

8. Выбрать тип развёртывания. Подробнее в — VMware vCenter Server 6.0 Deployment Guide. Если кратно, то vCenter Server (vCS) требует Platform Services Controller (PSC). Если сеть большая со множеством гипервизоров и виртуальных машин (VM), тогда можно устанавливать множество vCS которыми управляет один PSC. Это видно на картинке — вариант External.

В данном примере количество хостов не велико и количество виртуальных машин тоже не велико — поэтому планируется установить только один vCSA и поэтому нужно выбрать Embedded вариант, когда в один vCS встроен один PSC и всё это установлено на одну VM.

image

9. Создание домена Single-Sign-On (SSO) сервисов аутентификации. Имя домена SSO не должно совпадать с именем домена Active Directory (AD).

image

10. Выбрать размер управляемой сети, т.е. количество хостов и виртуальных машин. В зависимости от размера, развёртывание создаст конфигурацию железа для виртуальной машины vCSA.

image

11. Выбрать дисковое хранилище на котором будет размещена VM vCSA. У меня одно хранилище на этом хосте, поэтому выбирать не из чего. Еще можно указать чтобы использовался Thin Mode.

image

12. Выбрать базу данных для vCSA. По умолчанию используется встроенный PostgresSQL. Для больших сетей можно использовать внешнюю СУБД Oracle.

image

13. Сетевые настройки для vCSA. В поле System Name рекомендуется использовать имя, но оно должно разрешаться через DNS, если в вашей сети это невозможно, используйте IP-адрес.

image

14. Последняя проверка настроек перед созданием vCSA

image

15. Дождаться завершения процесса установки.

image

16. Установка завершена. На экране указан адрес по которому можно зайти на vCSA.

image

17. Если посмотреть через vSphere Client была создана вот такая виртуальная машина vCSA. Отсюда можно изменить настройки сети, пароль администратора и включить\выключить SSH.

Источник

Оцените статью
Adblock
detector