openstack镜像开启qemu-guest-agent
###开启qemu-guest-agent###
OpenStack 命令行
glance image-update --property hw_qemu_guest_agent=yes ubuntu-sources
user-data
cat user-data
#cloud-config
ssh_pwauth: yes
chpasswd:
list: |
ubuntu:RANDOM
packages:
- qemu-guest-agent
runcmd:
- [ /bin/bash, -c, sudo systemctl start qemu-guest-agent && sudo systemctl enable qemu-guest-agent ]
使用cloud-init 加载 镜像开机自启动qemu-guest-agent 服务
使用
openstack server set --password 123456 ubuntu-456
测试更改密码
ssh root@192.168.10.96
root@192.168.10.96's password:
Welcome to Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-167-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Dec 11 08:11:20 UTC 2023
System load: 0.05 Processes: 121
Usage of /: 8.4% of 19.20GB Users logged in: 0
Memory usage: 11% IPv4 address for ens3: 192.168.10.96
Swap usage: 0%
Expanded Security Maintenance for Applications is not enabled.
18 updates can be applied immediately.
8 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
New release '22.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@ubuntu-456:~# exit
logout
Connection to 192.168.10.96 closed.
本文链接:
/archives/1702364400255
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
Emporer-Linux!
喜欢就支持一下吧