CLI-使用磁盘参数时出错 [英] CLI - Error when disk parameter is in use

查看:39
本文介绍了CLI-使用磁盘参数时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在创建softlayer vs时遇到问题,我尝试从公共映像创建vs,但是如果我使用--disk选项,则会出现错误.

So i have a problem with softlayer vs creation, i try to create a vs from public image, but if i use --disk option i got an error.

命令:

vs create -H g0 -D example.org -c 1 -m 2048 -d ams01 --image 3c289880-2f63-48d3-906d-aaa9a822a6d0 --billing=monthly --vlan-public 1313131 --vlan-private 313131 --disk 25 --test 

错误:

SoftLayerAPIError(SoftLayer_Exception_InvalidValue): Invalid value provided for 'blockDevices'. Block devices may not be provided when using an image template.

如果我不使用--disk选项,它将很好地创建实例.

If i don't use --disk option it creates the instance fine.

推荐答案

由于错误表明如果您要指定图像模板,则无法设置磁盘大小.它会自动设置为与映像模板相同的磁盘大小.

As the error indicates if you are specifying an image template you cannot set the disk size. It is automatically set to the same disk size as the image template.

使用图像模板时可能无法提供块设备"

" Block devices may not be provided when using an image template"

这篇关于CLI-使用磁盘参数时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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