For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/bare-metal-cloud/dedicated-servers/connecting-vm-internet-using-proxmox-ve.md.
  • English

Connecting a VM to the Internet Using Proxmox VE

View as Markdown

Learn how to connect a Proxmox VM to the Internet. Proxmox VE (Virtual Environment) is a Debian-based open-source server that allows system administrators to deploy and manage VMs (virtual machines) and containers.

Warning

NOTE: High Grade, Scale, and ADVANCE Gen 3 servers can only support 32 vMACs per server.

 

Requirements

 

Instructions

Creating a Virtual MAC for an Additional IP via the OVHcloud Control Panel

In this section, we will be generating a vMAC (virtual MAC) address to be used by the NIC (Network Interface Card) that Proxmox creates for a VM.

From the OVHcloud Control Panel, select Bare Metal Cloud in the top navigation bar. In the left-hand menu, under Network, click IP.

Network - Connecting VM internet using Proxmox ve - step 1

Choose the Additional IP you wish to configure to your VM and click the more options ... button to the right of it. Then, select the Add a virtual MAC option from the drop-down menu.

Network - Connecting VM internet using Proxmox ve - step 2

In the pop-up menu, set the Type to ovh and enter the name of your virtual machine.

Lastly, click Confirm to initiate the creation of the vMAC address.

Network - Connecting VM internet using Proxmox ve - step 3

Info

Please allow up to three minutes for the vMAC to populate in the OVHcloud Control Panel.

 

Adding a Virtual MAC to the NIC of a VM in Proxmox VE

In this step, we will be pairing the vMAC address, which we generated in the previous section, to the interface that Proxmox has assigned to a VM.

Danger

WARNING: The following instructions apply to a previously created VM with an OS already installed. If you have not created a VM, please review the options on the Qemu/KVM Virtual Machine page by Proxmox, create a VM, and install an OS.

To complete this step, the VM must be powered off.

In Proxmox, navigate to the Hardware section of the VM that you would like to connect to the Internet.

Network - Connecting VM internet using Proxmox ve - step 4

From here, click the Network Device option and click the Edit button.

Network - Connecting VM internet using Proxmox ve - step 5

In the MAC address: field, enter the vMAC address that was created in the previous section and click OK.

Network - Connecting VM internet using Proxmox ve - step 6

Start your VM as you are now ready to configure the network interface.

In the next step, we will be configuring network settings within the OS of our VM. These steps can be different depending on the OS you are using.

Tip

Select the tab for the OS of your choice to view the instructions.

Debian 10/11
Ubuntu 24.04
Ubuntu 22.04
Ubuntu 18.04
CentOS 7
Windows Server 2019

Configuring Network Settings in a Debian 10/11 VM

In this step, we will be configuring our interface settings. To do this, you must first open your interface configuration file. Do so in a text editor of your choice using the following command:

sudo vi /etc/network/interfaces

Edit the interfaces file to make it appear as follows:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens192
iface ens192 inet static
address 192.0.2.1
netmask 255.255.255.255
gateway 203.0.113.254
dns-nameservers 208.67.222.222 208.67.220.220

In this file, replace the following pieces of information as instructed:

  1. If you don't know the name of your interface, you can find it using the following command:
    ip a
  1. Next to address, replace "192.0.2.1" with the additional IP to which you have added the vMAC in the OVHcloud Control Panel.
  1. Next to gateway, replace the "203.0.113.254" with the IPv4 Gateway of your server, found in the OVHcloud Control Panel. (See more here.)
  1. The DNS name servers listed are from OpenDNS. Feel free to use other name servers if you choose.

Now you will need to bring your NIC online. To do so, enter the following command:

sudo ip link set ens192 up

Finally, restart your networking service using the following command:

sudo systemctl restart networking

To test that the VM is fully connected to the Internet, ping example.com. If you get a response, you are good to go. If you do not, restart your VM and attempt the ping again.

 

Go further

Browse all the Dedicated Servers guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Dedicated Servers on the OVHcloud US website.