[Steps summarised from http://docs.openstack.org/trunk/openstack-ops/content/user_facing_images.html]
Pre-requisites
Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-setup-openstack-command-line.html to setup command line tools for OpenStack.
Run steps from link http://itinsteps.blogspot.in/2014/06/steps-to-create-new-tenant-and-users-on.html to create a tenant and user for OpenStack.
Download CentOS Qcow2 Image
# wget http://repos.fedorapeople.org/repos/openstack/guest-images/centos-6.5-20140117.0.x86_64.qcow2
Set environment for your specific user and tenant
# source ~/keystonerc_<user-name>
Upload image
# glance image-create --name='<image-name>' --is-public=<true/false> \
--container-format=<image-container-format> --disk-format=<image-disk-format> <image-file-location-on-disk>
Example
# glance image-create --name='CentOS6.5_QCOW2' --is-public=true \
--container-format=bare --disk-format=qcow2 < centos-6.5-20140117.0.x86_64.qcow2
No comments:
Post a Comment