Client Exec Setup

From The FluidVM Wiki

Jump to: navigation, search

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


server.png

Figure: Selecting Server


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.


packages.png

Figure: Creating Packages


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)


custom_fields.png

Figure: Creating Custom Fields


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.


clientarea.png

Figure: Client Area


Activating a Package

activate.png

Figure: Package Activation

Supported Operations

operations.png

Figure: Supported Operations
Personal tools