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
1.2 KiB
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/qemuCheck files:
- 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/bashAdd them if they are not exist.
- File '/etc/fstab'. Check that fifth and sixth fields contain value '0'.