千家信息网

vmware ubuntu14.04如何安装OpenStack

发表于:2025-12-01 作者:千家信息网编辑
千家信息网最后更新 2025年12月01日,小编给大家分享一下vmware ubuntu14.04如何安装OpenStack,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下
千家信息网最后更新 2025年12月01日vmware ubuntu14.04如何安装OpenStack

小编给大家分享一下vmware ubuntu14.04如何安装OpenStack,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

1在vmware他建三台虚拟机分别命名为controller,compute,network, 每台虚拟机安装ubuntu14.04 server系统


创建虚拟机时为controller节点添加两个网卡,分别为:

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1

Adapter 2:
Attached to: NAT
Adapter Type: Paravirtualized Network

在 Controller 节点做如下操作:

# nano /etc/hostname
controller

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.10
netmask 255.255.255.0

auto eth2
iface eth2 inet dhcp

Configuring Name resolution

# nano /etc/hosts

10.10.10.10 controller
10.10.10.11 compute
10.10.10.12 network

# reboot

# sudo apt-get update


创建虚拟机时为compute节点添加三个网卡,分别为:

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1

Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2

Adapter 3:
Attached to: NAT

在Compute 节点做以下操作

# nano /etc/hostname
compute

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.11
netmask 255.255.255.0

auto eth2
iface eth2 inet static
address 10.20.20.11
netmask 255.255.255.0

auto eth3
iface eth3 inet dhcp

# reboot

# ping controller
# ping network
# ping google.com


创建虚拟机时为network节点添加四个网卡,分别为:

Adapter 1:
Attached to: Host-only Adapter
Name: Interface 1

Adapter 2:
Attached to: Host-only Adapter
Name: Interface 2

Adapter 3:
Attached to: Host-only Adapter
Name: Interface 3

Adapter 4:
Attached to: NAT

在Network 节点做以下操作

# nano /etc/hostname
network

# nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.10.10.12
netmask 255.255.255.0

auto eth2
iface eth2 inet static
address 10.20.20.12
netmask 255.255.255.0

auto eth3
iface eth3 inet manual
up ip link set dev $IFACE up
down ip link set dev $IFACE down

auto eth4
iface eth4 inet dhcp

# reboot

# ping controller
# ping compute
# ping google.com


在Controller 节点做以下操作
# ping network
# ping compute
# ping google.com

以上是"vmware ubuntu14.04如何安装OpenStack"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0