Skip to content

Commit 6c9a652

Browse files
committed
F OpenNebula/one#6737: Added serial attribute for disks in VM
1 parent 1d7006f commit 6c9a652

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

source/intro_release_notes/release_notes/whats_new.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Ecosystem
4343
KVM
4444
================================================================================
4545

46-
- Feature 1
46+
- Add support for the ``SERIAL`` disk attribute. This allows specifying a ``SERIAL`` value in :ref:`Image <img_template>` and :ref:`VM Templates <template>`, including support for automatic generation (SERIAL="auto").
4747
- Feature 2
4848

4949

source/management_and_operations/references/img_template.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ The following attributes can be defined in the template:
5959
+--------------------------+--------------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
6060
| ``VCENTER_IMPORTED\*`` | \- | Optional | ``YES`` | vCenter: This attribute is set to ``YES`` automatically when an IMAGE has been imported e.g an imported template. If set to YES, OpenNebula won't remove from vCenter this image when the image is deleted from OpenNebula. |
6161
+--------------------------+--------------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
62-
62+
| ``SERIAL`` | Optional | \- | ``auto``, any string. | If present, a serial number will be added to virtual hard drive. If set to "auto", the serial number will be generated automatically. (<vm_id>-<disk_id>) If set to a specific value, that value will be used as the serial number. |
63+
+--------------------------+--------------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
6364

6465
.. warning:: Be careful when ``PATH`` points to a compressed bz2 image, since although it will work, OpenNebula will not calculate its size correctly.
6566

source/management_and_operations/references/template.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ Persistent and Clone Disks
380380
| ``OPENNEBULA_MANAGED`` | If set to yes, in vCenter this DISK represents a virtual disk that was | \- | O (can be inherited from Datastore) | \- |
381381
| | imported when a template was imported. | | | |
382382
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+-------------------------------------+------------------------------------+
383+
| ``SERIAL`` | If present, a serial number will be added to virtual hard drive. | O | \- | \- |
384+
| | If set to "auto", the serial number will be generated automatically. (<vm_id>-<disk_id>) | | | |
385+
| | If set to a specific value, that value will be used as the serial number. | | | |
386+
+---------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+-------------------------------------+------------------------------------+
383387

384388
.. _template_volatile_disks_section:
385389

@@ -434,6 +438,10 @@ Volatile DISKS
434438
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+-----------+
435439
| ``VCENTER_DISK_TYPE`` | Possible values (careful with the case): thin, thick, .... More information `in the VMware documentation <https://code.vmware.com/doc/preview?id=4206/doc/vim.VirtualDiskManager.VirtualDiskType.html>`__. | \- | O |
436440
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+-----------+
441+
| ``SERIAL`` | If present, a serial number will be added to virtual hard drive. | O | \- |
442+
| | If set to "auto", the serial number will be generated automatically. (<vm_id>-<disk_id>) | | |
443+
| | If set to a specific value, that value will be used as the serial number. | | |
444+
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------+-----------+
437445

438446
.. _template_disks_device_mapping:
439447

0 commit comments

Comments
 (0)