Files
sahara-image-elements/diskimage-create/Create_CentOS_cloud_image.rst
Michael McCune 0e1241d923 Renaming all Savanna references to Sahara
WARNING:
----
Before merging this commit the alias for
http://sahara-files.mirantis.com needs to be in place.

Also before merging this commit the new openstack git project must be
available at https://git.openstack.org/openstack/sahara-image-elements/

NOTE:
----
The file 'elements/hadoop-hdp/source-repository-hadoopswift' contains a
link to the HortonWorks repository that holds the Hadoop Swift rpm, this
link needs to be updated when HortonWorks makes the change.

Implements: blueprint savanna-renaming-image-elements
Change-Id: Icb9a992f8545535af3a111580ce7c9622d754c67
2014-03-13 15:26:47 +04:00

1.2 KiB

We have CentOS 6.4 and 6.5 cloud images. Recommended is CentOS 6.5 (http://sahara-files.mirantis.com/CentOS-6.5-cloud-init.qcow2).

For preparing your own CentOS cloud image with pre-installed cloud-init you should follow this guide: CentOS cloud image. Use the latest version of cloud-init package from testing repository

In the end you should check installation of cloud-init package.

You should mount your image and check some files. Follow this example to mount cloud image using qemu:

sudo modprobe nbd max_part=63
sudo qemu-nbd -c /dev/nbd0 CentOS_image_name.qcow2
sudo partprobe /dev/nbd0
sudo mount /dev/nbd0p1 /mnt/qemu
sudo chroot /mnt/qemu

Check files:

  1. File '/etc/cloud/cloud.cfg' should contain these lines:
default_user:
   name: cloud-user
   lock_passwd: true
   gecos: CentOS Cloud User
   groups: [wheel, adm]
   sudo: ["ALL=(ALL) NOPASSWD:ALL"]
   shell: /bin/bash

Add them if they are not exist.

  1. File '/etc/fstab'. Check that fifth and sixth fields contain value '0'.