Centos官网qcow2镜像修改root账号密码,开启ssh等
wget http://172.16.20.10/vmtemplate/KVM/wangrui/Debian/debian-10.2.0-openstack-amd64.qcow2
一、查看镜像文件信息
debian-10.2-cloud
name=Debian 10.2.0 (Buster) Cloud
osinfo=debian10
arch=x86_64
file=debian-10.2.0-openstack-amd64.qcow2
checksum[sha512]=296ad8345cb49e52464a0cb8bf4365eb0b9e4220c47ebdd73d134d51effc756d5554aee15027fffd038fef4ad5fa984c94208bce60572d58b2ab26f74bb2a5de
format=qcow2
size=566434304
revision=20191116
notes=Debian 10.2.0 (Buster).
This is a Debian installation, suited for running as OpenStack guest.
二、生成密码
使用openssl passwd -1 123456生成加密的密码:-1表示使用MD5算法对密码123456进行加密
root@support01 \~\]# openssl passwd -1 123456
$1$HDUWloxk$IZuLRX39Oa31T4YzCrCHL1
## 三、修改镜像密码
使用guestfish命令修改root账户密码,开启ssh远程登录
### 3.1、进入镜像
guestfish --rw -a debian-10.2.0-openstack-amd64.qcow2
进入交互命令界面依次执行run、list-filesystems、mount等指令
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
\>\ 1.--gen-answer-file=GEN_ANSWER_FILE:产生应答文件模板。 2.--answer-file=ANSWER_FILE:依据应答文件的配置信息以非交互模式运行该工具 3.--install-hosts=INSTALL_HOSTS:在一组主机上进行批量安装,主机列表以逗号分隔。 4.--allinone:将所有功能集中安装在单一主机上。 (9-1)将所有功能集中安装在单一主机上。 root@lincan \~\]# packstack --allinone

安装过程出现问题

192.168.80.152_controller.pp: \[ ERROR Applying Puppet manifests [ ERROR ] ERROR : Error appeared during Puppet run: 192.168.80.152_controller.pp Notice: /Stage[main]/Nova::Db::Sync/Exec[nova-db-sync]/returns: Error: (pymysql.err.OperationalError) (1045, u"Access denied for user 'nova'@'lincan' (using password: YES)") (Background on this error at: http://sqlalche.me/e/e3q8) You will find full trace in log /var/tmp/packstack/20230221-101322-6tiImI/manifests/192.168.80.152_controller.pp.log Please check log file /var/tmp/packstack/20230221-101322-6tiImI/openstack-setup.log for more information Additional information: * Parameter CONFIG_NEUTRON_L2_AGENT: You have chosen OVN Neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. Geneve will be used as the encapsulation method for tenant networks * A new answerfile was created in: /root/packstack-answers-20230221-101325.txt * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * File /root/keystonerc_admin has been created on OpenStack client host 192.168.80.152. To use the command line tools you need to source the file. * To access the OpenStack Dashboard browse to http://192.168.80.152/dashboard . Please, find your login credentials stored in the keystonerc_admin in your home directory. You have new mail in /var/spool/mail/root 解决问题:win10系统版本更新16.2.4 win11系统更新17.0.0 安装成功 (9-2)运行Packstack安装OpenStack 查看openstack主要组件版本号: #nova-manage --version root@lincan \~\]# nova-manage --version

(10)登入OpenStack
用户名demo或admin
查看密码

