If you are running virtualization software like Proxmox, KVM, or VMWare ESXi on the OneProvider server, you need to order an additional IP address. On one provider IP operates in 2 modes, you need to set IP to virtualization mode to configure the IP address inside a VPS.
Go to Server Details > Manage > IP Manager
Default settings for IP address is “Host Route”, change it to “Virtualization” under Routing Type.
On this page, you can also get the Gateway IP address. All virtual machines should use the same Gateway IP as main server.
For a virtual machine, I used following netplan config
root@vm3:~# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
- on-link: true
Here 22.214.171.124 is the IP address of the Virtual Machine. 126.96.36.199 is the gateway.
After editing file /etc/netplan/00-installer-config.yaml, you can apply the changes with command