İçindekiler
Initial setup, licensing, server setup, IP, and product configuration steps for Proxmox module.
1
1) Install Module
- Upload both
modules/servers/proxmoxModule/andmodules/addons/proxmoxModule/from package. - Activate proxmoxModule addon from WHMCS Addon Modules.
- Enter and save
licenseKey.
2
2) Add Proxmox VE Server to WHMCS
- Go to WHMCS System Settings > Servers.
- Add server and select module
proxmoxModule. - Enter host, username, password, realm, and port.
- Validate connection with Test Connection.
3
3) Add IP or Enable IPManager Integration
- Add IPs from module IP management or enable integration if IPManager exists.
- Verify dedicated/assigned IP data on services.
- Test IP assignment during provisioning.
4
5) Enable Operating System ConfigOption
- Add product config option in format
operatingsystem|xxx. - Each option must follow
vmTemplateName|OS Name. - Example:
tpl-ubuntu-22|Ubuntu 22.04,tpl-win-2022|Windows Server 2022.
5
5) Add VMID and Node CustomFields per Product
- Create VMID and Node custom fields on product.
- Ensure names match module configuration mapping.
- Validate VMID/Node handling on test service.
6
7) Create Config First, Then Assign to Product
- Create a configuration in addon panel Configs section first.
- Define limits and VM behavior in this config.
- Open Products page and assign that config to the product.
- Run a test provision flow after saving mapping.
7
Template Preparation (Windows / Linux) and Cloud-Init Conversion
- Windows template: Installing QEMU Agent is sufficient.
- Linux template: After QEMU Agent, run:
apt update
apt install cloud-init -y
rm -f /etc/cloud/cloud-init.disabled
nano /etc/cloud/cloud.cfg.d/99_pve.cfg
# write:
datasource_list: [ NoCloud, ConfigDrive ]
chown root:root /etc/cloud/cloud.cfg.d/*
chmod 644 /etc/cloud/cloud.cfg.d/*
systemctl enable cloud-init
systemctl enable cloud-config
systemctl enable cloud-final
truncate -s 0 /etc/machine-id
rm -f /var/lib/dbus/machine-id
ln -s /etc/machine-id /var/lib/dbus/machine-id
cloud-init cleanAfter these steps, add Cloud-Init Drive from Proxmox and convert VM to template.
Türkçe