aboutsummaryrefslogtreecommitdiff
path: root/next_steps
diff options
context:
space:
mode:
Diffstat (limited to 'next_steps')
-rw-r--r--next_steps31
1 files changed, 26 insertions, 5 deletions
diff --git a/next_steps b/next_steps
index 3660f94..afea0a9 100644
--- a/next_steps
+++ b/next_steps
@@ -15,13 +15,13 @@ openstack security group rule create --proto tcp --dst-port 22 default
Generate a key pair:
-$ ssh-keygen -q -N ""
+ssh-keygen -q -N ""
cd to your home directory
-$ openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey
+openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey
verify
-$ openstack keypair list
+openstack keypair list
openstack flavor create --id 0 --vcpus 2 --ram 1024 --disk 10 m1.nano
@@ -53,10 +53,31 @@ openstack network list
copy ID as net-id while creating server
+
+openstack server create --flavor m1.nano --image debian-10.12.7-openstack-amd64 \
+ --nic net-id=da5f9aa8-1bac-4aab-9931-0ce4d835783a --security-group default \
+ --key-name mykey debianinstance
+
+if you get error like "More than one SecurityGroup exists with the name 'default'."
+
+check
+openstack security group list
++--------------------------------------+---------+------------------------+----------------------------------+------+
+| ID | Name | Description | Project | Tags |
++--------------------------------------+---------+------------------------+----------------------------------+------+
+| cd54c8c9-d754-434a-9f5c-807c3288fced | default | Default security group | 53c2118ffdbb4b6388611480c7c7a7c0 | [] |
+| f9151d2a-f49b-4828-9467-418d7cdfd1e8 | default | Default security group | 87b3104005904a2fbe18ad1a7ab601b3 | [] |
++--------------------------------------+---------+------------------------+----------------------------------+------+
+
+inspect which one you enabled icmp and port 22
+openstack security group show cd54c8c9-d754-434a-9f5c-807c3288fced
+
+specify security group id instead of name
+
openstack server create --flavor m1.nano --image debian-10.12.7-openstack-amd64 \
- --nic net-id=b2d69a6e-3a77-4d55-94fd-308558088a3d --security-group default \
+ --nic net-id=b2d69a6e-3a77-4d55-94fd-308558088a3d --security-group cd54c8c9-d754-434a-9f5c-807c3288fced \
--key-name mykey debianinstance
verify
-# openstack server list
+openstack server list