Use the nova boot
--swap
parameter to attach a swap disk on
boot or the nova boot
--ephemeral
parameter to attach an
ephemeral disk on boot. When you terminate the instance, both
disks are deleted.
Boot an instance with a 512 MB swap disk and 2 GB ephemeral disk:
$ nova boot --flavorFLAVOR
--imageIMAGE_ID
--swap 512 --ephemeral size=2NAME
Note | |
---|---|
The flavor defines the maximum swap and ephemeral disk size. You cannot exceed these maximum values. |