Install OpenStack on VMware ESXi

29/12/2020
In this article, I am going to show you how to install OpenStack on VMware ESXi. I will create a virtual machine on VMware ESXi, install CentOS 7 there and install OpenStack on the CentOS 7 virtual machine. The reason I picked CentOS 7 is because I can use packstack to install all the OpenStack components into a single CentOS 7 virtual machine. This is one of the best option for people new to OpenStack. So, let’s get started.

Uploading CentOS 7 ISO Image to VMware ESXi:

In order to install CentOS 7 on a VM in VMware ESXi, you need to have the CentOS 7 installation ISO file. You can download it from the official website of CentOS 7 at https://www.centos.org.

Once you visit the website, click on Get CentOS Now.

Then, click on Minimal ISO.

Now, click on any of the link.

Your browser should start downloading the CentOS 7 ISO installation image.

Once the ISO image is downloaded, go to VMware ESXi web client. Then, from the Storage section, click on Datastores tab and select a datastore where you want to upload the CentOS 7 ISO file.

Now, click on Datastore browser as marked in the screenshot below.

Now, click on Upload.

Now, select your CentOS 7 ISO installation media that you just downloaded and click on Open.

CentOS 7 ISO image should start uploading. Once the CentOS 7 ISO image is uploaded, click on Close.

Creating a Virtual Machine:

Now, you have to create a new virtual machine (VM) where you can install CentOS 7. To do that, from the Virtual Machines section, click on Create / Register VM.

A VM creation wizard should pop up. Now, select Create a new virtual machine and click on Next.

Type in a name and select Linux and CentOS 7 (64-bit) as the Guest OS family and Guest OS version respectively.

Now, select a datastore where you want to put the data of this virtual machine and click on Next.

OpenStack requires about 16 GB of memory to smoothly run. So, make sure to give this VM at least 16 GB of memory. I will set the hard drive capacity to 100 GB as well. Now, select Datastore ISO file from the CD/DVD Drive 1 section.

Now, select the CentOS 7 ISO image that you’ve just uploaded to the VMware ESXi datastore.

Once you’re done, click on Finish.

The VM should be created. Now, click on the VM.

Now, click on Edit.

Now, you have to turn on Hardware virtualization. Otherwise OpenStack won’t perform very well as it uses KVM/QEMU as the default hypervisor. To do that, check the Expose hardware assisted virtualization to the guest OS from the CPU section. Once you’re done, click on Save.

Now, you’re ready to install CentOS 7 on the VM.

Installing CentOS 7:

Now, click on Power on to power on the virtual machine.

Then, click on Console and click on Open browser console.

The CentOS 7 installer should boot. Select Install CentOS 7 and press <Enter>.

Now, install CentOS 7 on the virtual machine as usual. Make sure to set a root password during installation.

Once CentOS 7 is installed, you should be able to login as the user root with the password that you’ve set during installation.

Now, you’re ready to install OpenStack on the CentOS 7 VM.

Configuring Network:

Now, disable firewalld service with the following command:

# systemctl disable firewalld

Now, stop the firewalld service with the following command:

# systemctl stop firewalld

Now, disable NetworkManager service with the following command:

# systemctl disable NetworkManager

Now, stop NetworkManager service with the following command:

# systemctl stop NetworkManager

Now, enable network service with the following command:

# systemctl enable network

Now, start network service with the following command:

# systemctl start network

Now, check the name of your network interface as follows:

$ ip a

The name of the network interface of my CentOS 7 VM is ens192.

Now, run the following command to configure the network interface ens192 to automatically get IP address via DHCP:

# echo -e ‘DEVICE=ens192nBOOTPROTO=dhcpn’ >
 /etc/sysconfig/network-scripts/ifcfg-ens192

Now, reboot your CentOS 7 VM as follows:

$ sudo reboot

Once it boots, the network interface ens192 should have an IP address.

Installing OpenStack:

Before you do anything, make sure to set the LANG and LC_ALL environment variables correctly with the following command:

# echo -e "LANG=en_US.utf-8nLC_ALL=en_US.utf-8n" > /etc/environment

Now, to make sure all the CentOS 7 packages are up to date, run the following command:

# yum update -y

All the CentOS 7 packages should be updated.

Now, add the OpenStack Rocky package repository with the following command:

# yum install -y centos-release-openstack-rocky

The OpenStack Rocky package repository should be added.

Now, update the CentOS 7 system packages again with the following command:

# yum update -y

All the system packages should be updated.

Now, install PackStack with the following command:

# yum install -y openstack-packstack

PackStack is being installed. It may take a while to complete.

PackStack should be installed.

Now, install all the components of OpenStack on CentOS 7 with the following command:

# packstack –allinone

OpenStack is being installed. It will take a very long time to complete.

OpenStack should be installed at this point.

Testing OpenStack:

You need the IP address of your CentOS 7 machine in order to access OpenStack Horizon dashboard.

To find the IP address of CentOS 7, run the following command:

# ip a

As you can see, the IP address of my CentOS 7 machine is 192.168.10.118. It will be different for you. So, make sure to replace it with yours from now on.

Now, to find the OpenStack Horizon dashboard password, run the following command:

# cat keystonerc_admin | grep PASSWORD

As you can see, ec0bf0b1f7594df4 is the password of my OpenStack Horizon dashboard.

Now, from a web browser, visit http://192.168.10.118 and you should see the OpenStack login page. Type in admin and ec0bf0b1f7594df4 as the username and password respectively. Then, click on Sign In.

You should be logged in to OpenStack Horizon dashboard. Now, you can configure OpenStack any way you like from here.

So, that’s how you install OpenStack on VMware ESXi. Thanks for reading this article.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

VMWare vs VirtualBox

VMware and VirtualBox are both the top two popular desktop virtualization options. They are both supported on Windows,...
28/12/2020

Mounting VMware Shares from the Command Line on Linux VM

In this article, I am going to show you how to share a directory/folder to a VMware Virtual Machine (VM) and how to mount...
29/12/2020

How to Install VMware Tools on CentOS/RHEL 8 VMware Virtual Machines

If you’re using VMware Player, VMware Workstation Pro, VMware ESXi or vSphere, then VMware Tools is a very important...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

SỰ KHÁC BIỆT GIỮA RESIDENTIAL PROXY VÀ PROXY DATACENTER
17/02/2024

Mua Proxy v6 US Private chạy PRE, Face, Insta, Gmail
07/01/2024

Mua shadowsocks và hướng dẫn sữ dụng trên window
05/01/2024

Tại sao Proxy Socks lại được ưa chuộng hơn Proxy HTTP?
04/01/2024

Mua thuê proxy v4 nuôi zalo chất lượng cao, kinh nghiệm tránh quét tài khoản zalo
02/01/2024