2024年9月openstack9.0安装指南

说到底这里还是因为个人需要,需要按照openstack9.0的标准安装一个小的3集群环境,计划近期完成,这里放的是一步一步探索的过程。
1、首先下载地址参考的是这个网页:
https://www.itpub.net/thread-2064339-1-1.html
下载MirantisOpenStack用如下地址:
http://9f2b43d3ab92f886c3f0-e8d43ffad23ec549234584e5c62a6e24.r60.cf1.rackcdn.com/MirantisOpenStack-9.0.iso
2、可以通过httrack来进行整站下载,比如:
http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/的镜像站。
3、vbox使用的是5.1.*的最新版,各种资料都这样说,具体下载地址:
https://www.virtualbox.org/wiki/Download_Old_Builds
2024.9.8测试,5.1.38无法在win10-21H2上运行,下载5.2.*的最新版,目前测试无问题。
4、三个虚拟机的配置要求
vbox的网卡配置:
第一个网卡:10.20.0.1/24 部署openstack的专用网络
第二个网卡:172.16.0.1/24 openstack公共网络
第三个网卡:192.168.4.1/24 openstack的内部,管理网络
Fuel master节点:三个网卡,2u+4G(安装时,安装完可改为2G)+80G硬盘。
Controller节点:三个网卡,2u+3G+80G硬盘
Compute节点:三个网卡,2u+2G+80G硬盘。
5、linux文件传输工具的问题,我们大部分时候用的都是sftp协议来传文件,ftp也不行不行,但是需要搭服务:
而sftp,默认情况下,只要支持ssh的都可以。
①我sftp习惯用的是winscp。https://pc.qq.com/search.html#!keyword=winscp 腾讯的下载站,这里就可以找到。
②MobaXterm也可以,免费版限制较多,但是一般也够用了。https://mobaxterm.mobatek.net/download.html
6、终端工具:同样支持ssh的即可以。
①putty 这个用着很舒服。https://putty.org/
②Xshell,这个是一个商业软件,家庭和学校使用免费,想使用的话,需要去官网下载新的,不然安装都不让安装。https://www.xshell.com/zh/free-for-home-school/
7、具体安装过程参考:
https://blog.csdn.net/Slience_Jhon/article/details/104907724
8、关于本地源的设置,最终状态:

在这里插入图片描述
bootstraps中,需要执行的命令:

cd /var/www/nailgun/bootstraps/
fuel-bootstrap activate d01c72e6-83f4-4a19-bb86-6085e40416e6

在这里插入图片描述
mirrors中,需要执行的命令:

cd /var/www/nailgun/
fuel-createmirror

在这里插入图片描述
命令执行成功后:
在这里插入图片描述

附:
附1、itpub.net论坛上mirrors的制作是这段话,我怕以后打不开网页了,特摘录如下:

Mirantis OpenStack 9.0 MOS本地源bootstrap制作
   MOS本地源由mos+ubuntu两个镜像组成
下载 http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/*
        http://mirror.fuel-infra.org/mos-repos/ubuntu/master/*
用 fuel-createmirror 下载 ubuntu trusty---------ubuntu 14.04.4

把mos-repos/ubuntu/9.0/*
   mos-repos/ubuntu/master/*
   ubuntu
拷到  /var/www/nailgun/mirrors

修改下 /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml

把mirror.fuel-infra.org和archive.ubuntu.com改为
10.20.0.2:8080/mirrors

最后 fuel-bootstrap build
        fuel-bootstrap import /tmp/*gz
        fuel-bootstrap activate
OK ====== 可以启动controller compute storge 了........

附2:还有一段,后面会根据实际情况进行调整:

========fuel_bootstrap_cli.yaml======
---
  root_ssh_authorized_file: /root/.ssh/id_rsa.pub
  extend_kopts: "biosdevname=0 net.ifnames=1 debug ignore_loglevel log_buf_len=10M print_fatal_signals=1 LOGLEVEL=8"
  ubuntu_release: trusty
  extra_dirs:
    - /usr/share/fuel_bootstrap_cli/files/trusty
  output_dir: /tmp/
  kernel_flavor: linux-image-generic-lts-trusty
  packages:
    - fuel-agent
    - hwloc
    - hpsa-dkms
    - i40e-dkms
    - linux-firmware
    - linux-firmware-nonfree
    - linux-headers-generic
    - live-boot
    - live-boot-initramfs-tools
    - mc
    - mcollective
    - msmtp-mta
    - multipath-tools
    - multipath-tools-boot
    - nailgun-agent
    - nailgun-mcagents
    - network-checker
    - ntp
    - openssh-client
    - openssh-server
    - squashfs-tools
    - ubuntu-minimal
    - vim
    - wget
    - ohai
    - xz-utils
    - nailgun
  bootstrap_images_dir: /var/www/nailgun/bootstraps
  active_bootstrap_symlink: /var/www/nailgun/bootstraps/active_bootstrap
  flavor: ubuntu
  http_proxy: ""
  https_proxy: ""
  repos:
    - name: ubuntu
      section: "main universe multiverse"
      uri: "http://10.20.0.2:8080/mirrors/ubuntu"
      priority:
      suite: trusty
      type: deb
    - name: ubuntu-updates
      section: "main universe multiverse"
      uri: "http://10.20.0.2:8080/mirrors/ubuntu"
      priority:
      suite: trusty-updates
      type: deb
    - name: ubuntu-security
      section: "main universe multiverse"
      uri: "http://10.20.0.2:8080/mirrors/ubuntu"
      priority:
      suite: trusty-security
      type: deb
    - name: mos
      section: "main restricted"
      uri: "http://127.0.0.1:8080/ubuntu/x86_64"
      priority: 1050
      suite: mos9.0
      type: deb
    - name: mos-updates
      section: "main restricted"
      uri: "http://10.20.0.2:8080/mirrors/mos-repos/ubuntu/9.0"
      priority: 1050
      suite: mos9.0-updates
      type: deb
    - name: mos-security
      section: "main restricted"
      uri: "http://10.20.0.2:8080/mirrors/mos-repos/ubuntu/9.0"
      priority: 1050
      suite: mos9.0-security
      type: deb
    - name: mos-holdback
      section: "main restricted"
      uri: "http://10.20.0.2:8080/mirrors/mos-repos/ubuntu/9.0"
      priority: 1100
      suite: mos9.0-holdback
      type: deb
    - name: master
      section: "main"
      uri: "http://10.20.0.2:8080/mirrors/mos-repos/ubuntu/master"
      priority: 1100
      suite: mos-master
      type: deb
  skip_default_img_build: true
  direct_repo_addresses:
    - "10.20.0.2"
    - "127.0.0.1"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lwprain

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值