赞
踩
sudo passwd root
su - root
apt install -y vim openssh-server
vim /etc/ssh/sshd_config
修改#PermitRootLogin prohibit-password为PermitRootLogin yes
systemctl restart sshd
sudo useradd -s /bin/bash -d /opt/stack -m stack
sudo chmod +x /opt/stack
echo “stack ALL=(ALL) NOPASSWD: ALL” | sudo tee /etc/sudoers.d/stack
sudo -u stack -i
cd ~
mkdir .pip
cd .pip
vim pip.conf
pip.conf中的内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
index-index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host =
pypi.tuna.tsinghua.edu.cn
mirrors.aliyun.com
git clone https://opendev.org/openstack/devstack
cd devstack
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
./stack.sh
将下载好的etcd、novnc、cirros安装包放到对应位置,重新执行安装脚本./stack.sh
chown -R stack:stack cirros-0.6.2-x86_64-disk.img etcd-v3.4.27-linux-amd64.tar.gz novnc/
mv etcd-v3.4.27-linux-amd64.tar.gz /opt/stack/devstack/files/
mv novnc/ /opt/stack/
mv cirros-0.6.2-x86_64-disk.img /opt/stack/devstack/files/
This is your host IP address: 192.168.10.128
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.10.128/dashboard
Keystone is serving at http://192.168.10.128/identity/
The default users are: admin and demo
The password: redhat
Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: 2024.1
Change: 29e73a215557b2d20d0d9611e0d5317e08cf9538 Enable performance collection on Debian 2023-10-24 06:18:22 +0200
OS Version: Ubuntu 22.04 jammy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。