-
Notifications
You must be signed in to change notification settings - Fork 0
devstack instance
-
Log in to devstack Horizon dashboard as "demo" user. Use "demo" credentials.
-
Navigate to Project -> . Click on "Security Groups" tab.
-
Select "default" option and click on "Manage Rules". You need to add two new rules for pushing SSH and ICMP traffic to your guest VM.
-
Click on "+Add Rule" and add below two rules.
-
Rule -> All ICMP, Direction -> Ingress, Remote -> CIDR, CIDR -> 0.0.0.0/0 -
Rule -> Custom TCP Rule, Direction -> Ingress, Open Port -> Port, Port -> 22, Remote -> CIDR, CIDR -> 0.0.0.0/0
-
-
Now go to Project -> Access & Security option -> Key Pairs tab and click on "Create Key Pair". Input a name and click on "Create Key Pair". The key pair will be automatically saved to your local system. This key pair is essential when you wish to connect to your guest VM from your local system.
-
Navigate to Project -> Instances option. Click on "Launch Instance". Input appropriate values to the prompted boxes. A sample input is provided below.
- Instance Name ->
test-vm - Availability Zone ->
Nova - Count ->
1 - Select Boot Source ->
Image, Create New Volume ->NO, Click on appropriate image you want to boot on your guest VM. For example :cirros-0.3.4-x86_64-uec. Click Next. - Click on appropriate flavor you want to boot on your guest VM. For example
"m1.small". Click Next. - Click on appropriate network. Networks provide the communication channels for instances in the cloud. For example
private. Click Next. - Select the security groups to launch the instance in. For example
default. Click Next. - Select an existing key pair, or import a key pair, or generate a new key pair. A key pair allows you to SSH into your newly created instance. For example
mykey. Click Next. - Finally, click on "Launch Instance".
- Instance Name ->
-
A new instance will be created and it will spin up a new guest VM with configured features.
-
Select this guest VM named "test-vm" and click on the drop down menu in actions column. Select "Associate a floating IP". Click on the "+" sign in the first text box. Select pool as "public" and Click on "Allocate IP". It will allocate a floating IP from a given floating IP pool.
-
After that select the appropriate port to be associated. make sure to provide/attach the port corresponding to the newly created guest VM. Then click on "Associate". After this step you instance will carry a floating IP and you can ping this IP address.
-
The Instance creation is complete and you can access this VM for deploying your service. For logging into this VM via SSH, follow below procedure.
- Go to the path on your local system, where you have saved the key pair for this VM.
- Change the permission of "key pair".
This step is important.chmod 600 mykey.pem
- Use bellow command to log in via SSH from your local system to the guest VM.
ssh -i <your-key> <username>@<floating ip>- For example ->
ssh -i mykey.pem cirros@192.168.130.200
-
Alternatively, you can login to the console of the VM from devstack as well.