cloudsoft / jclouds-vcloud-director

0 stars 9 forks source link

Setup hard drive size from brooklyn.property #15

Closed tbouron closed 7 years ago

tbouron commented 9 years ago

Currently, jclouds-vcloud-director does not seem to support the hard drive size initialisation.

As an example, here is how I can setup a 250Go hard drive for AWS inside my brooklyn.properties:

brooklyn.location.named.<my-location>.templateOptions={mapNewVolumeToDeviceName: ["/dev/sda", 250, true]}

Could it be possible to add something similar to be consistent across platforms?

andreaturli commented 9 years ago

Thanks @tbouron!

I think it should be possible at least according to this blog post

bostko commented 7 years ago

Now templateOptions have disk property. You can set disk: 250 to set the hard disk. Notice that if VM uses fast provisioning it won't work. Also consider using https://github.com/cloudsoft/brooklyn-blockstore . Its job is to add disks rather than modifying existing ones.