1

我在玩 OpenStack API。有没有办法改变图像所需的最小内存?我最初创建了一个具有 4GB RAM 的映像,但现在我需要启动该映像只有 2GB RAM。由于 Linux 支持更改可用 RAM 的数量(重启后),我假设必须有一种方法来减少 OpenStack 映像所需的最小 RAM。

注意:当我尝试启动具有 2GB 风格的映像时,我收到以下消息:

Error: Unable to launch instance: Instance type's memory is too small 
for requested image. (HTTP 400)
4

1 回答 1

3

是的,你可以有一个 API。

# First list all images to note down the uuid of image you want to change
glance index

# Check how to use the image update function
glance help image-update
# or if you dont know which function to use just run
glance help

# The following command will change minimum ram to 2000MB and minimum disk to 1GB
glance image-update <<uuid or name of image>> --min-ram 2000 --min-disk 1
于 2013-05-08T02:46:53.857 回答