problem with internet connection in fresh created VPS's

Posted November 2, 2019 3.4k views

Hi guys.
in my last server, I used virtualizor ~v3.0 and there is a little problem.
when I create a new VPS the network configuration like IP and Gateway didn’t set automatically and I have to set them with VNC to fix the VPS network problem.
now I working on a project to create/manage VPS’s on my servers using virtualizor API and I looking for a way to set IP and GateWay on new VPS’s but this new VPS’s haven’t any internet connection except VNC, I try to get IP and GateWay in VPS first boot from my projects API and set them in network configuration but I don’t know how to do it in this situation.
I used virtualizor in VDS and centos 6 in my custom VPS template

please help me to fix this problem

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @MrMD

When you provision the the server with the API do you specify the IP address of the server? The admin API documentation:

I will also suggest you to check the IP Pool page:

The IP Pool is a collection of IPs which can be used to create VMs.
You should create an IP Pool so that there are no connectivity issues within a VM you create.
You can define the Netmask, Gateways for the IPs, Name Servers, etc. This guide shows you how to add an IP Pool to your node.

Looking forward to your reply.