Client Exec Setup
From The FluidVM Wiki
Contents |
Clientexec Setup
It is possible to create user accounts and virtual machines via Clientexec automatically with FluidVM.
Important
In your management server, open the file - "/usr/lib/fluidvmproxy/fluidvm_middleware.py" and set USAGE_MODE = 'clientexec'
Setting up FluidVM in Clientexec
After logging into Clientexec as admin
1) First create a desired server( Compute Node as in FluidVM ) say "OpenVZ ComputeNode".
2) While creating the Server select the plugin hypervm.
Give HyperVM API url as some thing like : http://cp.yourdomain:8888/webcommand.php (As mentioned in the help [?] )
Give username, password, email and VMtype (openvz or xen)
Leave the fields VM Name Custom Field,VM Password Custom Field,Number Of Ips Custom Field,Hostname Custom Field,Ostemplate Custom Field as blank for now. We need to create these custom fields before we configure them here.
Also select the options you want like Create,Delete,Suspend,Unsuspend

3) Create a new package type say FluidVM.
4) Create corresponding VPS packages say uk basic/us basic etc. Please do select the appropriate Servers for each package been created (in our example "OpenVZ Compute Node"). Also in the hypervm plugin section give the Resource Plan name which you have created in FluidVM Panel.

5) Now go to the Custom User fields
6) In the "Select Custom Field Type' " option select Package fields type
7) Create Custom fields for VM Name ,VM Password ,Number Of IPs,Hostname and OS Template For VM Name, VM Password and Hostname, select type = textfield and turn on isRequired and Include in Signup options.
In the Exclude from these package types list , select all package types ( like shared web hosting) except the new package type we created (FluidVM in our case).
For Number of IPs and OS Template make the type = drop down . And in drop down you can add the options from FluidVM (Template Names). The options should be comma separated. (say for Number of IPs 1,2,3 in the Options field)

8) Configure these names (Custom field names you created ) in the Server Plug-in Custom fields section which we left blank in step 2.
9) Also click on the Add to SignUp page button to add the created package type to the Sign-up page
Client Area
This is how client area looks like.

Activating a Package

Supported Operations

