CentOS 6/RedHat 6
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.
- Check whether cloud-init, cloud-utils-growpart, and dracut-modules-growroot have been installed. If no, perform the following steps 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 ~]#
- Download cloud-utils-growpart-0.27-10.el6.x86_64.rpm and upload it to the VM as instructed in Upload Required Software Packages.
You can download the package from:
- Run the following command to install cloud-utils-growpart:
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]#
- Install dracut-modules-growroot.
- Run the following command:
yum install -y https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/epel-release-6-8.noarch.rpm
- Run the yum install dracut-modules-growroot command to install dracut-modules-growroot online.
Enter y when the message Is this ok [y/N] is displayed.
- Run the dracut -f command to update the kernel.
- Run the following command:
- Run the commands in 1 again to check whether cloud-init, cloud-utils-growpart and dracut-modules-growroot are successfully installed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.