Question

problem with internet connection in fresh created VPS's

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @MrMD

When you provision the the server with the API do you specify the IP address of the server? The admin API documentation: https://www.virtualizor.com/docs/admin-api/create-vps/

I will also suggest you to check the IP Pool page: https://www.virtualizor.com/docs/admin/add-ip-pool/

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.

Regards, Alex