Ask Your Question
1

How to install Ubuntu Cloud Image on OpenStack kilo multinode

asked 2015-07-31 06:02:49 -0500

abhishek-talwar gravatar image

updated 2015-07-31 07:56:57 -0500

dbaxps gravatar image

I have a multinode kilo OpenStack setup with a controller node, network node and 2 compute nodes. I have installed a cirros image with the following steps:

1. Create a temporary local directory:

$ mkdir /tmp/images

2. Download the source image into it:

$ wget -P /tmp/images http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img

3. Upload the image to the Image service using the QCOW2 disk format, bare container format, and public visibility so all projects can access it:

$ glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img \
  --disk-format qcow2 --container-format bare --visibility public --progress

Now I want to install an Ubuntu image on my setup and boot VM's with it. So what would be the desired steps for that.

I have checked this link "http://docs.openstack.org/image-guide/content/ubuntu-image.html" but couldnt get through.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-07-31 07:17:41 -0500

updated 2015-07-31 07:24:14 -0500

Just download a ubuntu cloud image from https://cloud-images.ubuntu.com/, create an image and boot a vm with a keypair. Example:

# cd /tmp/
# wget https://cloud-images.ubuntu.com/vivid/current/vivid-server-cloudimg-amd64-disk1.img
glance image-create --name "UbuntuTest" --disk-format qcow2 --container-format bare --file vivid-server-cloudimg-amd64-disk1.img --is-public True --progress
 # nova boot --flavor m1.tiny --image UbuntuTest --nic net-id=<NET_ID> --key-name <KEY_PAIR> instancetest1
# ssh -i <KEY_PAIR> ubuntu@<INSTANCE_FLOATING_IP>

The guide you are following is to create and configure an ubuntu image for use in cloud environments, what i say is to create a glance image from an already created ubuntu cloud image. Regards

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-07-31 06:02:49 -0500

Seen: 4,121 times

Last updated: Jul 31 '15