openstack 镜像自动扩容 resize拉伸

简介: The simplest way to support this in your image is to install the cloud-utils package (contains the growpart tool for extending partitions), the clou...

The simplest way to support this in your image is to install the cloud-utils package (contains the growpart tool for extending partitions), the cloud-initramfs-growroot package (which supports resizing root partition on the first boot), and the cloud-init package into your image. With these installed, the image performs the root partition resize on boot. For example, in the /etc/rc.local file. These packages are in the Ubuntu and Debian package repository, as well as the EPEL repository (for Fedora/RHEL/CentOS/Scientific Linux guests).

If you cannot install cloud-initramfs-tools, Robert Plestenjak has a github project called linux-rootfs-resize that contains scripts that update a ramdisk by using growpart so that the image resizes properly on boot.

If you can install the cloud-utils and cloud-init packages, we recommend that when you create your images, you create a single ext3 or ext4 partition (not managed by LVM).

目录
相关文章
|
5月前
|
云计算 数据安全/隐私保护 虚拟化
云计算|OpenStack|社区版OpenStack安装部署文档(十一--- 如何获取镜像---Rocky版)
云计算|OpenStack|社区版OpenStack安装部署文档(十一--- 如何获取镜像---Rocky版)
60 0
|
容器
【openstack】导出 qcow2 镜像
【openstack】导出 qcow2 镜像
545 0
【openstack】导出 qcow2 镜像
|
5月前
|
存储 关系型数据库 MySQL
云计算|OpenStack|社区版OpenStack安装部署文档(四 --- 镜像服务glance安装部署---Rocky版)
云计算|OpenStack|社区版OpenStack安装部署文档(四 --- 镜像服务glance安装部署---Rocky版)
96 0
|
Ubuntu Linux KVM
分享一些OpenStack的qcow2格式实例镜像
分享一些OpenStack的qcow2格式实例镜像
分享一些OpenStack的qcow2格式实例镜像
|
5月前
|
Linux KVM 云计算
云计算|OpenStack|社区版OpenStack安装部署文档(十三--- 自制镜像---Linux和Windows镜像)
云计算|OpenStack|社区版OpenStack安装部署文档(十三--- 自制镜像---Linux和Windows镜像)
80 0
|
12月前
openstack导出镜像
openstack导出镜像
127 0
|
12月前
openstack之镜像导出
openstack之镜像导出
437 0
|
开发工具 数据库 虚拟化
【openstack】qemu 制作 qcow2 云镜像(基于 debian)
【openstack】qemu 制作 qcow2 云镜像(基于 debian)
696 0
【openstack】qemu 制作 qcow2 云镜像(基于 debian)
|
虚拟化
【openstack】创建 qcow2 镜像
【openstack】创建 qcow2 镜像
502 0
【openstack】创建 qcow2 镜像
|
云计算 KVM
OpenStack手动制作CentOS 7 KVM镜像
在前面讲解KVM的时候,我们已经学习了如何制作KVM镜像,那么制作OpenStack使用的镜像和KVM是有一些区别的。
1964 0
OpenStack手动制作CentOS 7 KVM镜像