Step-by-Step Guide to Deploying OpenStack on VMware: From Single Node to Dual Node
This comprehensive tutorial walks you through configuring VMware NAT networking, setting up Linux network interfaces, customizing yum repositories, installing OpenStack components on both single‑node and dual‑node (controller + compute) setups, and managing Keystone, Nova, and Neutron services with practical command examples.
OpenStack Detailed Deployment Steps
1. Single‑Node Deployment
1.1 Configure VM NAT network
Check the default NAT network in VMware (vmnet10) with subnet 172.25.2.0/24 and gateway 172.25.2.2.
1.2 Set VM network adapters
Add a new network adapter in VMware, select “Custom” → “VMnet10” (NAT mode).
1.3 Configure Linux network
# cd /etc/sysconfig/network-scripts
vi ifcfg-ens33
BOOTPROTO=static
ONBOOT=yes
IPADDR=172.25.2.101
NETMASK=255.255.255.0
GATEWAY=172.25.2.2
DNS=8.8.8.8
systemctl stop firewalld
systemctl disable firewalld
systemctl restart network
ping www.baidu.com1.4 Yum repository configuration
Disable NetworkManager and SELinux, add Alibaba Cloud mirrors, install openstack-packstack and required packages.
# yum install -y centos-release-openstack-queens
# yum install -y openstack-packstack
# packstack --allinone
# yum downgrade leatherman # fix shared‑library error2. Dual‑Node (Controller + Compute) Deployment
2.1 Prepare VMs
Create two CentOS 7 VMs with one NIC in host‑only mode (192.168.16.10) and another in NAT mode (192.168.16.20).
2.2 Network interfaces
Configure static IPs for controller (192.168.16.10) and compute (192.168.16.20) nodes.
2.3 Mount installation images
# mount -o loop CentOS-7-x86_64-DVD-1511.iso /mnt
cp -rvf /mnt/* /opt/centos7.2/
umount /mnt2.4 Local yum repositories
Create /etc/yum.repos.d/local.repo on both nodes pointing to the mounted directories.
2.5 Install OpenStack services
Run the provided iaas-*.sh scripts to install MySQL, Keystone, Glance, Nova, Neutron, Dashboard, etc.
3. Using the OpenStack Platform
3.1 Create an image
Upload a QCOW2 image to Glance.
3.2 Create networks, router and security group
Use the Horizon UI to create external network net‑gre, internal network int‑gre, router, and allow all ICMP/TCP/UDP in the default security group.
3.3 Launch a VM
Boot a server with the created image, flavor, network and security group, then associate a floating IP.
4. Keystone Administration
Commands to create users, projects, roles and assign permissions (e.g., openstack user create, openstack role add).
5. Nova Component Details
Explanation of Nova architecture, flavor management, instance lifecycle commands (boot, stop, start, reboot, pause, delete), floating‑IP operations and key‑pair handling.
6. Neutron Network Service
List, create, update and delete networks using openstack network commands, including GRE segmentation IDs.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Raymond Ops
Linux ops automation, cloud-native, Kubernetes, SRE, DevOps, Python, Golang and related tech discussions.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
