Jump toUpdate content
How to configure IPv6 virtual machines on Proxmox and ESXi on Elastic Metal
When you install your server with a virtualization solution like VMware vSphere Hypervisor (ESXi) or Proxmox, you can create multiple virtual machines on the physical server and configure them to use flexible IPv6 addresses.
Below are some examples for the configuration of the network interfaces on different distributions inside a virtual machine:
The IPv6 gateway for your machines is learned by RA. You do not need to specify it in your configuration.
Since the release of version 18.04 (Bionic Beaver) Ubuntu has switched to Netplan for the configuration of network interfaces. For older releases of the distribution, refer to the configuration for Debian.
- Log into your virtual machine and open the network configuration file
/etc/netplan/01-netcfg.yamlin a text editor of your choice, for example
sudo nano /etc/netplan/01-netcfg.yaml
- Create a network configuation as follows. Remember to replace
FLEXIBLE_IPv6with your failover IP address:
# This is the network config written by 'subiquity'
addresses: [ "2001:bc8:408:400::6" ]
- Save the file and exit the text editor.
- Apply the new configuration:
sudo netplan apply
Log into the virtual machine and edit the file
/etc/network/interfaces/with a text editor of your choice, for example,
Configure the network interface as follows. Remember to replace
fail.over.ip.addresswith your failover IP address:
iface ens18 inet6 static
Save the file and exit the text editor.
Set the DNS server information by editing the file
Set the DNS resolver by adding the following lines to the file. Then save it and exit the text editor:
These DNS resolvers are operated by Scaleway. You can also set your preferred alternative DNS resolvers in the file.
Activate the network on your virtual machine by running the following code:
- Log into the virtual machine and edit the file
/etc/sysconfig/network-scripts/ifcfg-eth0with a text editor of your choice, for example,
- Configure the network interface as follows. Remember to replace
fail.over.ip.addresswith your failover IP address and
virtual:mac:addresswith the virtual MAC of the VM:
- Save the file and close the text editor.
- Run the following command to bring the network interface up: