Is the size of image impact rhe size of instance ?

asked 2019-05-07 09:54:56 -0500

najeh gravatar image

If i launch an openstack instance with a normal image and an image with snapshot(has more size than a normal image) Is the size of snapshot has an impact on the size of vm ?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2019-05-07 10:12:52 -0500

The instance size is determined by its flavor, not the image. In case the image is too large for the chosen flavor, the instance doesn't launch and ends up in state ERROR.

edit flag offensive delete link more

answered 2019-05-11 17:55:23 -0500

Hi @najeh, issues like this are normally related to the size of the image being too big for the flavor you are using (set of ram vcpu and disk size) as mentioned by @Bernd .

Normally for public clouds, a set of flavors are provided to customer allow them to create their own VMs with them and you provide a set of image that are no grether than the actual size of the disk. All this having in mind that the image are raw images and not compressed images as (qcow, qcow2 and some VHD or VHDX ).

Or for private clouds were you choose your own set of flavor and create them for each of the VMs configurations you require.

From here, you have some options.

  1. Set private flavors for the project you require to create the new image based on this snapshot.
  2. Create volumes with the size you require, then create the VM based on the volume instead of an image.

openstack volume create --image image-id --type Type-ID --size Size greater than the actual image name

openstack server create --flavor ID --volume VolumeID --key-name KeyName --nic net-id=NetID Name

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-05-07 09:54:56 -0500

Seen: 127 times

Last updated: May 11 '19