Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Create Virtual Machine Instances

 

Follow these steps to create virtual machine instances.

  1. From the Workloads > Images page, click Import.

    Field

    Description

    Image Name

    Enter an image name.

    Server Type

    Choose the server type as Virtual Machine to import a virtual machine image.

    Source Type

    Select a File source type to be able to browse your file system for the desired image.

    Select File

    Click browse and locate the image file in your file system. For this example, we are using a cirros-0-4-0 image.

  2. Click the Save button.
  3. Navigate to Workloads > Flavors and click the Create button.

    Field

    Description

    Name

    Enter a name for the flavor.

    VCPUs

    Enter the number of vCPUs. For this example, you enter a value of 1.

    RAM (MB)

    Enter the amount of RAM you want to allocate. For this example, let’s use the value 512 MB.

    Root Disk (GB)

    Enter the disk size in GB. For this example, let’s use the value of 1.

  4. Click Create.
  5. From the Overlay > Security Groups, click Edit (pencil icon).
  6. Set the value in Type to CIDR for both ingress and egress rules and click Save.
  7. From the Workloads > Instances page, click Create.

    Field

    Description

    Server Type

    Select Virtual Machine to create an instance of virtual machine.

    Instance Name

    Enter a name. For this example, we are using VM-Green1.

    Select Boot Source

    Select the desired image from the list.

    Select Image

    Select the image you created earlier.

    Select Flavor

    Select the flavor that we created earlier.

    Flavor refers to an available configuration and defines the size of the instance. For example, tiny vs. large.

    Available Networks

    Move the desired virtual network to the Allocated Networks pane. For this example, we are moving VN-Green. Select default form the Security group list.

    Allocated Networks

    Displays the virtual networks you have allocated to the instance.

    Availability Zone

    Select nova, which is the default availability zone.

  8. Click the Create button.
  9. Repeat this process to create additional virtual machines. In this example, you should create a VM-Red1 instance that is associated with the VN-Red VN.
  10. (Optional) Verify connectivity between the green virtual machine and its default gateway, as well as to BMS1 (intra VN). Also verify the green VM can ping workloads in the VN-Red network. This inter-VN traffic must be forward through the LR you created earlier.
  11. From the Workloads > Instances page, connect to the green VM by clicking the console icon for VM-Green1. Note

    You must be connected to the Contrail Command GUI through the fabric management network for this to work. In other words, you need to login to the Command server from the workstation node using the Command server’s fabric management IP, i.e., https://10.1.1.1:9091.

    From VM-Green1, ping VN-Green GW

    From VM-Green1, ping BMS1

    From VM-Green1, ping VM-Red1

    From VM-Green1, ping BMS2