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/connect-vm-internet-using-vmware-esxi.md.
  • English

How to connect a VM to the internet using VMware ESXi

View as Markdown
Warning

NOTE: If you are using a Scale or HG server, please refer to the following guide instead: How to Configure the Network on VMware ESXi with SCALE and HG Servers.

 

Requirements


OVHcloud Control Panel Access


 

Instructions

Adding a virtual MAC to an Additional IP

Find the Additional IP you wish to configure for your VM, click the more options ... button next to it, and choose the Add a virtual MAC option from the drop-down menu.

IP additional more options add

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

Warning

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

IP add vmac

 

Adding the virtual MAC to the VM in ESXi

In the ESXi Host Client, locate your VM in the Virtual Machines menu, select it, and ⏻ Power off.

Right-click the VM and select the Edit settings option from the drop-down menu.

VM more options

In the VM's settings, expand the Network Adapter 1 drop-down.

Change the MAC Address to Manual and enter the vMAC created in the previous step.

VM v mac manual

Tip

You can now ▶ Power on your VM!

 

Configuring network settings

The steps to configure the network on your virtual machine depend on the operating system you are using; select yours below.

Debian 11
Ubuntu 22.04+ / Debian 12+
AlmaLinux & Rocky Linux (8/9)
Windows Server
Info

If you don't know the name of your interface, you can find it using the following command:

$ ip add

First, open your interface configuration file 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:

  • address: Replace 192.0.2.1 with the Additional IP from the first step of this guide.

  • gateway: Replace 203.0.113.254 with your Dedicated Server's gateway.

    Info

    You need the first three octets of your Dedicated Server's IP address with a final octet of "254". For example, if your Dedicated Server's IP was 1.2.3.4, you would use 1.2.3.254 as your gateway.

  • dns-nameservers: 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.