For CentOS 6 and Red Hat 6, you need to install cloud-init, cloud-utils-growpart, and dracut-modules-growroot. Cloud-Init has been installed in Installing Cloud-Init.
This section uses CentOS 6.9 as an example to describe how to install them.
[root@localhost ~]# rpm -qa | grep cloud-init cloud-init-0.7.5-10.el6.centos.2.x86_64 [root@localhost ~]# rpm -qa | grep growpart [root@localhost ~]# rpm -qa | grep growroot [root@localhost ~]#
You can download the package from:
rpm -ivh cloud-utils-growpart-0.27-10.el6.x86_64.rpm
[root@localhost redhat]# rpm -ivh cloud-utils-growpart-0.27-10.el6.x86_64.rpm Preparing... ############################### [100%] 1:cloud-utils-growpart ############################### [100%] [root@localhost redhat]#
yum install -y https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
Enter y when the message Is this ok [y/N] is displayed.