Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Can not create VPS with param from http://virtualizor.com/admin-api/#create-vps



Threaded Mode | Print  

 Can not create VPS with param from http://virtualizor.com/admin-api/#create-vps (2 Replies, Read 2855 times)
haulpdt520
Group: Member
Post Group: Newbie
Posts: 2
Status:
Dear Support,

I can not create with params from link
http://virtualizor.com/admin-api/#create-vps

What about params I need set when create VPS on Storage on Server Node. Not localhost.

I receiving that message many time.
"error":{"0":"The SWAP size specified cannot be greater than or equal to the total disk space specified","invalid_os":"The OS you submitted is invalid"}

I think I can not chosen right server node then OS I create not support on default server. Default server is localhost just support KVM, and I create OpenVZ on another node.

Thank
IP: --   

Can not create VPS with param from http://virtualizor.com/admin-api/#create-vps
24x7CSM
Group: Member
Post Group: Newbie
Posts: 6
Status:
The slave server on which you are looking to host the VPS must  have Openvz and must be configured in virtualizor accordingly. Also check the size of swap in VPS template that you have configured.

-----------------------
24x7CloudServerManagement||Cpanel Server Management Services
9th Year Of Services || Hosting Infrastructure Management
IP: --   

Can not create VPS with param from http://virtualizor.com/admin-api/#create-vps
haulpdt520
Group: Member
Post Group: Newbie
Posts: 2
Status:
I can create OpenVZ VPS on slave server with template ID (plid) and osid on GUI of Virtualizor.
I have sniffer params when it post to Server and copy that params but it not successful.

I think I have a problem with chosen Server when create with API.

But I haved tried node_select, serid, this is my param. What's my wrong ?
Thanks

        params = {
            "addvps": 1,
            "node_select": 1,
            "serid": 1,
            "stid": 22,  # Storage ID on which the VPS is to be created. (Not needed if using Primary storage)
            "virt": "openvz",
            "uid": 16,
            "user_email": "",
            "user_pass": "",
            "plid": 28,
            "osid": 363,
            "hostname": "haulpd7.com",
            "rootpass": "hau123!@#",
            "space": [{"size": 80, "st_uuid": "uuid of storage on node"}],
            "storages": ["uuid of storage on node"],
            "ram": 4096,
            "burst": 4096,
            "bandwidth": 0,
            "network_speed": 12800,
            "msg": "",
            "priority": 4,
            "cpu": 2000,
            "cores": 4,
            "cpu_percent": 0.00,
            "swapram": 0,
            "vnc": 0,
            "ips": ["IP Address"],
            "cpunit": "",
            "uid": 16,
            "size[]": 80,
            "ploop": "1",
            "dns": ["8.8.8.8"],
            "dns": ["8.8.4.4"],
            "control_panel": "0",
            "recipe": "0",
            "show_tuntap": "on",
            "tuntap": "1",
            "ppp": "0",
            "fuse": "0",
            "ipip": "0",
            "ipgre": "0",
            "nfs": "0",
            "quotaugidlimit": "1",
            "iolimit": "0",
            "iopslimit": "500",
            "osreinstall_limit": "0",
            "admin_managed": "0",
            "bpid": "34",  # backup plan id
        }

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 25, 2024, 1:03 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.034