Configuring vRack for Public Cloud

View as Markdown

Learn how to activate a vRack, create a private network, and add Public Cloud instances to your private network using the OVHcloud Control Panel, API, or CLI.

Objective

The OVHcloud vRack is a private network solution that enables our customers to route traffic between OVHcloud dedicated servers as well as other OVHcloud services. At the same time, it allows you to add Public Cloud instances to your private network to create an infrastructure of physical and virtual resources.

This guide explains how to configure Public Cloud instances within your vRack.

Requirements


OVHcloud Control Panel Access

  • Direct link:
  • Navigation path: Public Cloud > Select your project

Interfaces

Creating a vRack or adding an instance into the network can be done using the OVHcloud Control Panel, the OVHcloud APIv6, the OpenStack API, the Horizon interface, the OVHcloud CLI or Terraform.

Choose the interface or method that best suits your technical profile and needs. For each option, the guide instructions below describe the necessary steps.

The sections below describe the available actions for each interface/method.

OVHcloud Control Panel

The is a fully visual interface, ideally suited for managing multiple VLANs. You can also customise the private IP range, which by default is in 10.1.0.0/16.

The VLAN is deployed to the selected Region. You can also activate or deactivate gateways, enable DHCP distributions, etc.

You can also manage billing for your services in the OVHcloud Control Panel.

Horizon

The Horizon interface (independent from OVHcloud) is the original implementation of the OpenStack dashboard, which provides a web user interface to OpenStack services, including Nova, Swift, Keystone, etc.

This interface lets you manage almost all OpenStack actions. Use it if you need to manage more than 2 VLANs, add private network interfaces to your instances, manage custom images, etc.

See the Introducing Horizon guide to familiarise yourself with Horizon.

Info

Horizon functions zone-specific, therefore you need to remember to choose your logical (geographic) work zone at the top left of your interface (GRA5, SBG3, BHS1, etc.).

OVHcloud APIv6

Every action available in your OVHcloud Control Panel can also be performed via the OVHcloud APIv6. It even offers more possibilities than the graphical interface.

The API interface is less visual than the OVHcloud Control Panel but will allow you to perform a large number of actions. You can manage and customise your VLAN, add interfaces to your instances, or create highly customised servers.

You can access it from our web page but also use it to create your PHP or Python scripts.

This way, you can freely automate basic tasks with scripts, optimise your own functions and much more.

Some API calls require specific input — retrieve the necessary information beforehand.

See the First steps with the OVHcloud API guide to get started with the OVHcloud APIv6.

OpenStack API

Public Cloud services can be administrated using Linux or Windows command lines after downloading and installing OpenStack tools.

This method requires a good knowledge of Linux or Windows to take advantage of it, but it allows you to leverage all the power of OpenStack.

Depending on the layer you want to manage, you will need to use the Nova (compute), Neutron (network), Glance (image) or Swift (Object Storage) client. The OpenStack client, the latest addition, lets you manage almost all OpenStack layers directly.

With the OpenStack API, you can also easily automate this management through your scripts.

For more information about the OpenStack API, see:

You can then use the OpenStack APIs as needed:

  • Nova (compute)
  • Glance (image)
  • Cinder (image)
  • Neutron (network)
Info

In some cases, the OpenStack APIs are easier; in others, use Nova, Neutron, etc. directly.

Moreover, some features may be missing from the OpenStack API depending on the version of your client and operating system. This guide presents the simplest and most intuitive options. See the official OpenStack documentation to learn more.

OpenStack CLI

You can manage your OVHcloud Public Cloud services and vRacks directly from your Linux or Windows terminal using the OpenStack CLI.

This interface allows you to manage all OpenStack layers:

  • Nova: instances (compute)
  • Neutron: networks
  • Glance: images
  • Cinder: volumes

The CLI centralizes these features and can be integrated into your scripts to automate your tasks.

Before you begin, see:

Info

The OpenStack CLI is useful for managing your vRack, but some functions may vary depending on the version of the client or operating system. Please refer to the official OpenStack documentation.

Terraform

Terraform can also be used to manage OVHcloud infrastructures.

You need to select the correct Terraform provider and resource. Find more information in our guide on using Terraform with OVHcloud.

Instructions

Step 1: Activating and managing a vRack

Warning

The vRack is managed at the OVHcloud infrastructure level, which means that you can only administer it in your OVHcloud Control Panel and the OVHcloud APIv6.

Via the OVHcloud Control Panel
Via the OVHcloud APIv6
Info

This does not apply to newly created projects which are now automatically delivered with a vRack. To view the vRack once the project has been created, go to the Network section and click on vRack private network to view the vRack(s).

If you have an older project without a vRack, you need to order one. The vRack itself is free and delivered within a few minutes.

In the left-hand menu, click Add a service (shopping cart icon). Use the filter at the top of the page or scroll down to find the service vRack.

You will be redirected to another page to validate the order, it will take a few minutes for the vRack to be setup in your account.

Once active, find it in your Control Panel under the Network section > vRack private network, labelled "pn-xxxxxx".

Click on your vRack, then select the project you want to add to the vRack from the list of eligible services and click the Add button.

To continue configuring your vRack from the OVHcloud Control Panel, go to Step 2: Create a private network in the vRack, under the Via the OVHcloud Control Panel tab.

Step 2: Creating a private network in the vRack

Create a private network with a VLAN (virtual local area network) so that connected instances can communicate with each other.

With the Public Cloud service, you can create up to 4 000 VLANs within one vRack. This means that you can use each private IP address up to 4 000 times. Thus, for example, 192.168.0.10 of VLAN 2 is different from IP 192.168.0.10 of VLAN 42.

This is useful to segment your vRack across multiple virtual networks.

From the OVHcloud Control Panel and OVHcloud APIv6, you can customise all settings: deployment mode and region, VLAN name and ID, private IP address range (e.g. 10.0.0.0/16), DHCP, and gateway.

Info

On dedicated servers, you are using VLAN 0 by default. The OpenStack infrastructure requires to specify your VLAN ID directly at the infrastructure level.

Unlike dedicated servers, there is no need to tag a VLAN directly on a Public Cloud instance.

To learn more about this topic, please refer to the guide "Creating multiple vLANs in a vRack".

Warning

vRack is managed at the OVHcloud infrastructure level, meaning you can only administrate it in the OVHcloud Control Panel and the OVHcloud APIv6.

Because OpenStack is not located at the same level, you will not be able to customise VLANs through the Horizon interface or OpenStack APIs.

Via the OVHcloud Control Panel
Via the OVHcloud APIv6
Via Terraform
Via the OpenStack CLI
Via the ovhcloud CLI

Once your vRack is set up, create a private network.

In the Public Cloud tab, click on Private Network in the left-hand menu under Network.

Click on the button Add Private Network. The following page allows you to customise multiple settings.

Select a deployment mode and the region where you want to create the private network.

The next step presents several options:

Private network creation options including VLAN ID and DHCP settings

In the Private Network Name field, set a name for your private network.

Layer 2 network option

If you tick the Set VLAN ID box, you will be able to manually choose a VLAN ID number between 0 and 4 000.

If you do not tick the box, the system will assign a random VLAN ID number to your private network.

If you want to be able to communicate with dedicated servers in this VLAN, please consult the guide: Creating multiple vLANs in a vRack.

DHCP address distribution options

The default DHCP range is 10.1.0.0/16. You can use a different private range of your choice, or disable DHCP for this private network.

Network Gateway Options

  • Announce the first address of a given CIDR as the default gateway (DHCP option 3): When this option is enabled, the DHCP server advertises the first address in the CIDR as the default gateway to machines connected to the network.
  • Assign a Gateway and connect to the private network: Select this option if you intend to create instances with a private network only. For more information, please consult the following guides: Creating a private network with Gateway and Creating and connecting to your first Public Cloud instance.
Warning

If the second option is greyed out, it means the region selected does not support it. For more information, please refer to our regions availability page.

Once done, click on Configure your private network to start the process.

Info

Creating the private network may take several minutes.

Step 3: Integrating an instance into vRack

There are two possible scenarios:

  • The instance to be integrated does not exist yet.
  • An existing instance needs to be added to the vRack.
In case of a new instance
Via the OVHcloud Control Panel
Via the OVHcloud APIv6
Via the OpenStack CLI
Via the ovhcloud CLI
Via Terraform

For help, see Creating an instance in the OVHcloud Control Panel. When creating an instance, choose a network mode in Step 5, then a private network.

Warning

You will be able to connect your instance to only one vRack from the OVHcloud Control Panel.

To add multiple interfaces, you will need to go through the OpenStack or Horizon APIs.

In case of an existing instance

The OVHcloud Control Panel lets you attach an instance to one or more private networks but does not offer advanced network interface configuration. To customise further, use the OVHcloud APIv6, the OpenStack APIs, or Horizon.

Add a new network interface to your server alongside the existing one.

For example, if you have a public interface eth0, you will add the interface eth1.

Warning

The configuration of this new interface is rarely automatic. You will therefore need to set a static IP or configure DHCP, depending on your infrastructure.

Via the OVHcloud Control Panel
Via the OVHcloud APIv6
Via Horizon
Via the OpenStack CLI

In your Public Cloud project, click on Instances in the left-hand navigation bar and then on to the right of the instance. Select Instance details.

This will open the instance dashboard. Click on the button in the box "Networks", next to "Private networks", and select Attach a network.

In the popup window that appears, select the private network(s) to attach to your instance and click Confirm.

Removing a network interface

Warning

Detaching a network interface is permanent.

However, it is important to note that if you detach the "Ext-Net" interface (public IP), this address will be released and put back into circulation. It is not possible to just reassign it.
This action is only required if you wish to isolate your server in the vRack (private network), or if you wish to remove it from one or more VLANs.

To detach an interface, first identify the Neutron port. Use the following commands:

neutron port-list
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                                         |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------------------+
| 12345678-abcd-ef01-2345-678910abcdef |      | fa:xx:xx:xx:xx:xx | {"subnet_id": "01234567-8901-abscdef12345678910abcd", "ip_address": "192.168.0.x"}                |
| 09876543-210a-bcde-f098-76543210abcd |      | fa:yy:yy:yy:yy:yy | {"subnet_id": "65432109-abcd-ef09-8765-43210abcdef1", "ip_address": "2001:41d0:xxx:xxxx::xxxx"}   |
|                                      |      |                   | {"subnet_id": "abcdef12-3456-7890-abcd-ef1234567890", "ip_address": "YY.YY.YY.YY"}                |
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------------------+

or

openstack port list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------------+
| ID                                   | Name | MAC Address       | Fixed IP Addresses                                                                        |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------------+
| 12345678-abcd-ef01-2345-678910abcdef |      | fa:xx:xx:xx:xx:xx | ip_address='192.168.0.xx', subnet_id='301234567-8901-abscdef12345678910abcd'              |
| 09876543-210a-bcde-f098-76543210abcd |      | fa:yy:yy:yy:yy:yy | ip_address='2001:41d0:xxx:xxxx::xxxx', subnet_id='65432109-abcd-ef09-8765-43210abcdef1'   |
|                                      |      |                   | ip_address='YY.YY.YY.YY', subnet_id='abcdef12-3456-7890-abcd-ef1234567890'                |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------------+

Once you have identified the port, run:

nova interface-detach <ID_instance> <port_id>

Example:

nova interface-detach 12345678-90ab-cdef-xxxx-xxxxxxxxxxxx 12345678-abcd-ef01-2345-678910abcdef

Go further

Creating multiple vLANs in a vRack

For training or technical assistance, contact your sales representative or request a quote from our Professional Services team.

Join our community of users.

Was this page helpful?