创建和识别vGPU设备 [英] Creating and recognition of a vGPU device

查看:68
本文介绍了创建和识别vGPU设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用vGPU创建VSI.我在POST上传递JSON负载中的哪个字段以创建vGPU VSI?在获取指示VSI是vGPU设备的get消息中,我要查询JSON有效负载中的哪个字段?

I am trying to create a VSI with vGPU. What field in the JSON payload do I pass in on the POST to create a vGPU VSI? What field in the JSON payload do I interrogate on a get that indicates the VSI is a vGPU device?

推荐答案

您可以使用此rest api通过SoftLayer_Virtual_Guest服务的createObject方法使用GPU创建新的VSI.

You can use this rest api to create a new VSI with GPU using the method createObject of the SoftLayer_Virtual_Guest service.

方法:开机自检

https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/createObject

身体:杰森

{
    "parameters": [
        {
            "hostname": "test",
            "domain": "test.local",
            "datacenter": {
                "name": "dal13"
                },
            "hourlyBillingFlag": "true",
            "operatingSystemReferenceCode": "CENTOS_7_64",
            "networkComponents": [
                     {
                         "maxSpeed": 1000
                     }
                  ],
            "privateNetworkOnlyFlag": "true",
            "supplementalCreateObjectOptions": {
                         "flavorKeyName": "AC1_8X60X25"
           }
        }
    ]
}

您必须在属性"flavorKeyName"中添加GPU值.

You have to add the GPU value in the attribute "flavorKeyName".

要获取"flavorKeyName",您可以使用上面的rest api.

To get the "flavorKeyName" you can use the rest api that is above.

"AC1_8X60X25"

"AC1_8X60X25"

这意味着(8个2.0 GHz内核,60 GB RAM,25 GB(SAN)第一磁盘)

it means (8 x 2.0 GHz Cores, 60 GB RAM , 25 GB (SAN) FIRST DISK)

这篇关于创建和识别vGPU设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆