After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 36 of 317

Starting OpenStack Compute 26 Before we spin up our first instance, we must create the default security settings that define the access rights. We do this only once (or when we need to adjust these) using either the euca-authorize command under euca2ools or the nova secgroup-add-rule command under Nova Client. The following set of commands gives us SSH access (Port 22) from any IP address and also allows us to ping the instance to help with troubleshooting. Note the default group and its rules are always applied if no security group is mentioned on the command line. f euca2ools; euca-authorize default -P tcp -p 22 -s 0.0.0.0/0 euca-authorize default -P icmp -t -1:-1 f Nova Client: nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 How to do it... 1. From our output of euca-describe-images or nova get-images we were presented with two images. One was the machine image and the other was the kernel image. To launch our instance, we need this information and we specify this on the command line. To launch an instance using euca2ools, we issue the following, specifying the machine image ID: euca-run-instances ami-00000002 -t m1.small -k openstack To launch an instance using Nova Client tools, we issue the following, using the ID of our image that is named precise-server-cloudimg-i386.img: nova boot myInstance --image 0e2f43a8-e614-48ff-92bd-be0c68da19f4 --flavor 2 --key_name openstack 2. You should see output like the following when you launch an instance: euca-run-instances output: www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook