- Print
- DarkLight
Overview
This document is designed to guide you through the process of creating and managing virtual networks in CloudLabs global settings. You can either create a new virtual network or add an existing virtual network to CloudLabs and use it to set up advanced networking for your lab. You need to peer the CloudLabs-managed virtual network with your virtual network to complete the advanced networking setup. If you set up an advanced network for a lab, the lab virtual machine will be deployed on the virtual network selected when you created the lab. This guide provides detailed instructions on how to:
Create a virtual network using CloudLabs.
Add an existing virtual network from Azure to CloudLabs.
Peer the CloudLabs-managed virtual network with your network.
To perform any action under global-level settings, you would need access to the CloudLabs portal with global admin permission. Refer to CloudLabs Identity and Access Management for more details.
Create a Virtual Network using CloudLabs
Login to https://portal.cloudlabs.ai/.
Navigate to Manage VM Labs (1) > Settings (2) > Virtual Networks (3). Under Virtual Networks, click on Create Virtual Network (4).
In the new window, provide the following values:
Name: Name of the CloudLabs virtual network.
Select a region where you want your CloudLabs virtual network to be hosted. Note that only the regions enabled at the global lab-level settings will be visible here. Note that the data transfer cost for global virtual network peering (connecting virtual networks across Azure regions) is higher than virtual network peering within the same region. So, we recommend you create the lab’s network in the same region as the existing virtual network.
Address Space: Provide an address space to be used for the virtual network. Please make sure that the address space does not overlap with the address range of your existing virtual network. Note that Azure assigns private IP addresses to the resources within that VNet from the specified address space. To understand more about how Azure assigns the private IP, refer to the Allocation method. Plan the address range in such a way that you have enough IP addresses for all VM deployments.
Once you have provided all the required values, click on Create.
Now this will create an Azure Virtual Network with the provided address range in the selected region of Azure. Once the virtual network is created, you will see the virtual network details: virtual network name, region, address space, subnet name, and subnet prefix.
Note
When creating a Virtual Network, selecting 'Use your own subscription' will create the VNET within your subscription. This VNET can then be utilized during labs. In addition, be aware that you cannot create a Virtual Network with the same name if it already exists in the same Tenant.
Add an Existing Virtual Network from Azure to CloudLabs
You can also add an existing virtual network in the CloudLabs Managed subscription to the CloudLabs portal by following the steps below:
Login to https://portal.cloudlabs.ai/.
Navigate to Manage VM Labs (1) > Settings (2) > Virtual Networks (3). Under Virtual Networks, click on Add Existing Network (4).
You will see all the existing virtual networks with all the details: virtual network name, resource group name, region, and subnet name. Select the required virtual network from the list by clicking on the checkbox corresponding to the virtual network and then clicking on Add.
Once the virtual network is added to CloudLabs, it will show up under the virtual network list.
Peer the CloudLabs Managed Virtual Network with your Network
Once the virtual network is created/added to CloudLabs, you must peer the virtual network with your existing virtual network in your subscription to complete the advanced networking setup. Follow the steps below to complete the peering:
Login to https://portal.cloudlabs.ai/.
Navigate to Manage VM Labs > Settings > Virtual Networks. Click on the Request Peering option under the Action corresponding to the virtual network that you want to peer.
This will draft an email for you to address the CloudLabs support team, requesting that they provide you with network contributor access on the CloudLabs-managed virtual network you have selected. In the email draft, you can add the user Azure account ID(s) and send it to the CloudLabs support team. You will be provided with the required access to the network and informed as early as possible. You will find the resource ID of the CloudLabs-managed virtual network, which will be required for peering.
Once you receive the required access to the CloudLabs managed virtual networks, you need to make the peering connection between the CloudLabs managed network and your network as well. Refer to creating peering connection for instructions on how to perform peering in Azure.
If you want to remove a virtual network from CloudLabs, under the virtual network section, click on the Remove Virtual Network option under the Action corresponding to the virtual network that you want to remove.
Next Steps
In this article, you have learned how to enable and manage advanced networking.
You can now start creating labs. For detailed steps, refer to the Create Labs article.