This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
guide:cloud:start [2020/08/19 12:38] kevin created |
guide:cloud:start [2022/06/20 11:25] (current) zmtshali |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| *[[guide: | *[[guide: | ||
| *[[guide: | *[[guide: | ||
| - | *[[guide: | + | *[[guide: |
| *[[guide: | *[[guide: | ||
| - | ======Getting Started====== | + | |
| + | |||
| + | |||
| + | ---- | ||
| + | ===== Launching a VM instance===== | ||
| + | |||
| + | As a cloud end user, you can use the OpenStack dashboard to provision your own resources within the limits set by administrators. You can modify the examples provided in this section to create other types and sizes of server instances. | ||
| + | |||
| + | For your convenience, | ||
| + | |||
| + | 1. First please open [[https:// | ||
| + | |||
| + | |||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| + | |||
| + | 2. Launching a virtual machine, You have to accomplish a number of steps. | ||
| + | |||
| + | a) Provide the initial hostname for the instance, the availability zone where it will be deployed, and the instance count. Increase the Count to create multiple instances with the same settings.: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | b) Select the instance source, the template used to create an instance. You can use an image, a snapshot of an instance (image snapshot), a volume or a volume snapshot (if enabled). You can also choose to use persistent storage by creating a new volume. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | // For this example. The instance is launched from the image source and a new volume is created with the instance. The allocated **ubuntu-18 image** is selected from the list of available images and is going to be an Operating System (OS) for the instance/s created. // | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | |||
| + | c) Decide on the flavor needed when launching the instance, Flavors manage the sizing for the compute, memory and storage capacity of the instance. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | // For this example. The instance is launched with **m1.tiny flavor** selected from the list of available flavors. The m1.tiny flavor will allocate the instance with 2x vCPU, 5GB of vRAM and 20GB of root disk. | ||
| + | |||
| + | In order to carefully manage our compute resources, Only allocate what you are expecting to use, This is the total compute resources allocated to the instance created.// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | d) Select the network that your instance will connect to. The network provide the communication channels for instances in the cloud. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | //For this example. The instance is launched with **demo-vxlan** network selected from the list of available networks. The network provide the communication channel for instance/s in the cloud.// | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | e) Select the security groups to launch the instance in. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | //For this example. The instance is launched with **Default security group** | ||
| + | |||
| + | ---- | ||
| + | f) Select an existing key pair, import a key pair, or generate a new key pair. A key pair allows you to SSH into your newly created instance. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| + | g) Optionally, You can customize your instance after it has launched using the options available here. " | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| + | h) Finally, click the Launch button. It will take a few minutes for the instance to start, depending on how large the base image you chose was, and if it was already cached or not on the physical server where the VM will be scheduled to start. | ||
| + | |||
| + | ---- | ||
| + | i) Associate a floating/ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | //By default, the VM will receive a private IP that is only reachable from inside your virtual network (other VMs connected to the same network). | ||
| + | |||
| + | Because public IPv4 addresses are limited and there is an inherent security risk when connecting to the Internet, it is recommended to associate a floating/ | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | |||
| + | =====How can I access the instance or virtual machine ?===== | ||
| + | |||
| + | |||
| + | 1. **OpenStack dashboard: | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | 2. **ssh into virtual machine:** When you started the VM and specified the name of your key pair, its public part was automatically added to the default user’s// | ||
| + | |||
| + | From your laptop, first change the permissions for the private SSH key, so your SSH client doesn’t complain when you will try to use the key: | ||
| + | |||
| + | chmod 400 path_to_private_key | ||
| + | |||
| + | Then, using the desired SSH client application, | ||
| + | |||
| + | ssh -i path_to_private_key ubuntu@X.X.X.X | ||
| + | |||
| + | //NB The X.X.X.X denotes to the IP address (use public IP allocated to the instance).// | ||
| + | |||
| + | 3. Customize your virtual machine, upgrade the package index and existing packages, and it’s especially important to apply all the security updates available. | ||
| + | |||
| + | |||
| + | |||