FluxBilling

Virtualizor Billing Setup Guide: Automate VPS Provisioning

Connect Virtualizor to FluxBilling with the free plugin: create an API key pair, map plans to products, and automate provision, suspend and terminate. Lite starts at €4.95 a month, with a 14-day refund.

Mario MarinMario Marin11 min read

If you already run Virtualizor as your VPS control panel, billing is a separate job: products, invoices, payments, and what happens to a virtual server when an invoice is paid, overdue or cancelled. This guide sets that up with FluxBilling’s free Virtualizor plugin and the Admin API Virtualizor documents for external billing tools.

Virtualizor publishes official provisioning modules for WHMCS, Blesta, HostBill and ClientExec, and its Admin API is also meant for custom billing and cloud portals (see Virtualizor API & Automation). FluxBilling is one of those options: a hosting billing, DCIM and provisioning platform that talks to your existing Virtualizor installation. Your Virtualizor licence stays as it is, and the plugin is free on every FluxBilling tier, with no per-node fee for servers you sell through it.

You do not always need a separate billing system. FluxBilling's Virtualizor plugin page notes that if you only sell Virtualizor resources, Virtualizor's own cloud billing may be enough. A separate system earns its place when you also sell dedicated servers, web hosting, domains or game servers, or want one client area and one invoice. FluxBilling's marketplace also includes free plugins for Proxmox VE, VirtFusion, SolusVM 2, Pterodactyl and cPanel/WHM. There is no LibreNMS or Tenantos plugin.

The FluxBilling steps follow the official Virtualizor Integration Setup Guide (plugin version 5.5). Virtualizor API steps come from Virtualizor's documentation, linked below.

What you need before you start

From the FluxBilling setup guide: a working Virtualizor installation whose admin panel is reachable on port 4085; at least one plan (CPU, RAM, disk, bandwidth and virtualisation type); at least one server group — recent Virtualizor versions call these Hypervisor Groups / Regions — with an online server that supports that plan's type (in FluxBilling, each group is a location); an IP pool attached to those servers with free IPv4 addresses; and the OS templates you want to sell, already downloaded in Virtualizor. The plugin assigns IPv4 from Virtualizor's pools, not from FluxBilling IPAM, and it does not assign IPv6.

Virtualizor documents Admin API calls on ports 4085 and 4084. FluxBilling expects the admin URL with port 4085, for example https://panel.example.com:4085, and network access from your FluxBilling panel to that port. For VNC, it also needs to reach the VNC address and port Virtualizor reports for each VPS. Plugin problems go to contact@fluxbilling.app or fluxbilling.app/contact; questions about Virtualizor itself go to Virtualizor support.

Step 1: Create a Virtualizor API key pair

The plugin signs every request with a Virtualizor admin API key and API password. Virtualizor documents two ways to get them.

A dedicated key pair (recommended by FluxBilling). In the Virtualizor admin panel, open API Credentials and choose Create API Pair. Virtualizor's Create API Pair guide describes the form:

  1. If you are logged in as root admin, choose who will own the pair: yourself, or a specific sub-administrator. Sub-administrators do not see this field; their own account is used.
  2. Optionally restrict the pair by IP Address. Virtualizor accepts a comma-separated list of IPv4/IPv6 addresses or CIDR subnets; leave it blank for unrestricted access. FluxBilling suggests entering the public IP your FluxBilling panel connects from, or leaving it empty if you are not sure.
  3. Optionally enable request logging, which records calls made with this pair in Virtualizor's API Logs.
  4. Check the permission boxes for every action the pair may perform. Virtualizor requires at least one action. FluxBilling lists the Admin API actions the plugin calls: plans, server groups, OS templates, users, servers, IP pools, addvs, vs, managevps, vnc, rebuild and editvs. If you are not sure which checkboxes cover those, the FluxBilling guide says to allow all actions.
  5. Click Generate API Pair. Virtualizor confirms that the pair was created, but it does not show the new key and password in that popup. Open List API Credentials and copy both values. Virtualizor describes them as 32-character tokens.

The default key on Server Info. Virtualizor's Server Info page shows the selected server's Key and Key Pass, and FluxBilling says you can use that pair instead. A dedicated pair is still better: you can restrict it and replace it without rotating the server's default key. If you rotate keys, Virtualizor's Reset API Keys guide is clear that old credentials stop working immediately and that any billing integration using them must be updated.

Step 2: Install the plugin and connect it

In the FluxBilling admin panel, open Settings (the gear icon), then Integrations → Marketplace, and stay on the Browse tab. Open the Virtualizor card and click Get for Free. FluxBilling confirms with Plugin "Virtualizor" installed and ready to use. The plugin is switched on immediately and appears under Settings → Integrations → Plugins as Virtualizor Provider, marked Active. It installs on every FluxBilling tier.

Then click Configure on that card and save the three required fields: Virtualizor Panel URL (the admin address with port 4085, without /index.php, for example https://panel.example.com:4085; a self-signed certificate on that port is accepted), API Key and API Password. Optional SSH and fallback network fields are only for automatic Windows guest setup; leave them empty if you do not sell Windows. The setup guide covers that path, including the QEMU guest agent requirement.

The API key and password are stored encrypted. There is no connection-test button: when the Plan list in the product editor fills with your Virtualizor plans, FluxBilling can reach Virtualizor and the key pair works. If a required field is missing or the URL is not valid, FluxBilling still saves the form but reports that the plugin is not configured until you fix the named field.

Step 3: Create a category and map each plan to a product

In FluxBilling, the category decides how its products are delivered. Open Products, switch to the Categories tab and click Add Category. When asked what the category sells, choose Plugins — not VPS, which is FluxBilling's own KVM module. Enter a name, under How paid orders are fulfilled click Virtualizor Provider, set Availability to Unlisted while you test or Live to show it on the order page, and click Create Category.

Then create one FluxBilling product per Virtualizor plan you want to sell. Click Add Product, choose the category, and enter the name and description customers will see. On Configuration, pick the Virtualizor Plan (CPU, RAM, disk, bandwidth and virtualisation type come from the plan), the Available Locations (server groups) and Available OS Images (only templates that match the plan's type are listed). The customer can choose OS and location at checkout, or you can turn those options off and use the first item in each list. An optional Hostname Template generates the hostname from the service number (vps-{{id}}.example.com); leave it empty to let the customer enter one. Auto-generate Password either generates the root password or asks the customer for it. On Pricing, set the price — prices, cycles, taxes and add-ons live in FluxBilling, and you can add a location surcharge — then click Create Product.

Customers can only move between products you link on the product's Upgrade Paths tab. When a paid upgrade or downgrade goes through, the plugin sends the new plan to Virtualizor; if Virtualizor refuses, the upgrade is marked as failed and the service keeps its current product. Try this on a test VPS first.

To sell extra IPv4 addresses (up to four in total), create an option whose slug is additional_ips — Virtualizor Provider, add one choice per total address count (1 to 4), leave IPAM allocation unset, and attach it to each Virtualizor product. A different slug is ignored. If the server's pool has too few free addresses, the build stops and no VPS is created. After the VPS exists, changing the add-on updates the price only; add or remove addresses in Virtualizor yourself.

Automation: order, suspend and terminate

The invoice drives the VPS. The rules live under Settings → Billing → Automation:

  • Auto Provisioning builds the VPS when the first invoice is paid. When it is off, the paid service waits as Pending until staff provision it.
  • Auto Suspension with Suspension Grace: an invoice still unpaid that many days after its due date suspends the VPS in Virtualizor. Paying the overdue invoice unsuspends it automatically, once no earlier renewal invoice for that service is still unpaid. A suspension for abuse is not lifted by payment.
  • Auto Termination with Termination Grace: a VPS still suspended for non-payment that many days later is terminated.

Terminating a service deletes the VPS in Virtualizor, with its disks. That happens when auto termination runs, when a customer's cancellation takes effect, or when staff terminate the service. It cannot be undone. Check the Termination Grace before you go live.

When Auto Provisioning is on and an invoice is paid, the plugin finds or creates a Virtualizor user with the customer's email address (ignoring case); picks the online server in the chosen location that supports the plan's type and has the most free disk space as Virtualizor reports it; takes the required free IPv4 addresses from that server's pool; creates the VPS; then saves the VPS ID and main IP on the service and marks it Active. With the default email templates, the customer gets a ready email with the IP address and root password. FluxBilling does not rely on callbacks from Virtualizor, so you do not need callback URLs.

Test the path before you sell it

Place an order for each product before you sell it, from a test client account on your own FluxBilling tenant, against your own Virtualizor panel. That is the check the official setup guide describes, and the only way to confirm the key pair, plans, locations, templates and IP pools work together.

On the order form, location, operating system, hostname and root password follow the product settings above. A customer-set password must have at least 8 characters and at least three of: uppercase letter, lowercase letter, number, symbol. Hostnames may contain letters, numbers, hyphens and dots, and each part between the dots must start and end with a letter or number.

If a build fails, the service stays Pending and the error appears in the Automations menu, with a retry button. FluxBilling retries up to two more times; after that, use Retry Provisioning, then Resend Welcome (a retry does not email the customer). Usual causes are an unreachable panel or key-pair problem, no online server of the right type in the chosen group, and not enough free IPv4 addresses.

To look around FluxBilling first, open the public live demo. It opens the admin and client panels with sample data and no signup, which is useful for seeing invoices, services and the client area — not a substitute for a test order on your own tenant.

In the client area, the customer gets start, stop and restart, a VNC console in a FluxBilling window, reinstall, reset password, server information, and CPU, RAM, disk and bandwidth use as Virtualizor reports it (refreshed every 30 seconds). Those controls are hidden while the service is suspended. Staff see the same actions, plus the VPS ID and stored root password.

The plugin does not offer backups or snapshots. Reinstall offers every active OS template in Virtualizor, not only the ones on the product, and does not filter by virtualisation type. VNC works only when Virtualizor returns a VNC port (reported for KVM, and enabled for that VPS) and your FluxBilling panel can reach it. IPv4 comes from Virtualizor's pools only, and each FluxBilling panel connects to one Virtualizor installation.

Frequently asked questions

Is this a Virtualizor billing module? It is FluxBilling's free Virtualizor plugin, which uses Virtualizor's Admin API. Virtualizor also ships official modules for WHMCS and other billing panels. FluxBilling is an alternative billing and provisioning layer in front of the same API, not a replacement for Virtualizor itself.

Does the plugin cost extra? No. It is free on every FluxBilling tier. Plans are priced by the clients you bill, not by the virtual servers on your Virtualizor nodes, and there is no node charge for servers sold through this plugin. Lite starts at €4.95 per month for 10 clients.

What if I already use WHMCS with Virtualizor? Virtualizor's docs treat WHMCS as one of the billing systems that consume an API key pair, and they remind you to update that key in WHMCS if you reset it. FluxBilling ships a WHMCS importer on every tier, but a cutover is a project of its own. Do not point two billing systems at the same Virtualizor plans and expect both to provision the same orders.

Try the setup on your own panel

Pick a FluxBilling tier — Lite starts at €4.95 a month — and connect your Virtualizor panel with the free plugin. If it is not the right fit, open a ticket within 14 days and the subscription is refunded. You can also look around first on the live demo, then follow the Virtualizor setup guide when you are ready to place a test order.

Virtualizor is a trademark of Softaculous Ltd. FluxBilling is not affiliated with Softaculous; the name is used only to say which software the plugin connects to.

Tagged
virtualizor billingvirtualizor whmcs alternativevirtualizor api keyvirtualizor automationsell vps virtualizorvirtualizor billing module
Written by
Mario Marin
Mario Marin
View all posts →