<commit_before>// Module included in the following assemblies:
//
// * virt/virtual_machines/virt-edit-vms.adoc
// * virt/vm_templates/virt-editing-vm-template.adoc

// Establishing conditionals so content can be re-used for editing VMs
// and VM templates.

ifeval::["{context}" == "virt-edit-vms"]
:virt-vm:
:object: virtual machine
:object-gui: Virtual Machines
:object-vm-overview: Virtual Machine Overview
endif::[]

ifeval::["{context}" == "virt-editing-vm-template"]
:virt-vm-template:
:object: virtual machine template
:object-gui: Templates
:object-vm-overview: VM Template Details
endif::[]

[id="virt-vm-add-disk_{context}"]

= Adding a virtual disk to a {object}

Use this procedure to add a virtual disk to a {object}.

.Procedure

. Click *Workloads* -> *Virtualization* from the side menu.

. Click the *{object-gui}* tab.

. Select a {object} to open the *{object-vm-overview}* screen.

. Click the *Disks* tab.

. In the *Add Disk* window, specify the *Source*, *Name*, *Size*, *Type*, *Interface*, and *Storage Class*.

.. Optional: In the *Advanced* list, specify the *Volume Mode* and *Access Mode* for the virtual disk. If you do not specify these parameters, the system uses the default values from the `kubevirt-storage-class-defaults` config map.

. Click *Add*.

ifdef::virt-vm[]
[NOTE]
====
If the {object} is running, the new disk is in the *pending restart* state and will not be attached until you restart the {object}.

The *Pending Changes* banner at the top of the page displays a list of all changes that will be applied when the {object} restarts.
====
endif::virt-vm[]

// Unsetting all conditionals used in module

ifeval::["{context}" == "virt-edit-vms"]
:virt-vm!:
:object!:
:object-gui!:
:object-vm-overview!:
endif::[]

ifeval::["{context}" == "virt-editing-vm-template"]
:virt-vm-template!:
:object!:
:object-gui!:
:object-vm-overview!:
endif::[]
<commit_msg>CNV 11325 Adding info about preallocation disk parameter<commit_after>// Module included in the following assemblies:
//
// * virt/virtual_machines/virt-edit-vms.adoc
// * virt/vm_templates/virt-editing-vm-template.adoc

// Establishing conditionals so content can be re-used for editing VMs
// and VM templates.

ifeval::["{context}" == "virt-edit-vms"]
:virt-vm:
:object: virtual machine
:object-gui: Virtual Machines
:object-vm-overview: Virtual Machine Overview
endif::[]

ifeval::["{context}" == "virt-editing-vm-template"]
:virt-vm-template:
:object: virtual machine template
:object-gui: Templates
:object-vm-overview: VM Template Details
endif::[]

[id="virt-vm-add-disk_{context}"]

= Adding a virtual disk to a {object}

Use this procedure to add a virtual disk to a {object}.

.Procedure

. Click *Workloads* -> *Virtualization* from the side menu.

. Click the *{object-gui}* tab.

. Select a {object} to open the *{object-vm-overview}* screen.

. Click the *Disks* tab.

. In the *Add Disk* window, specify the *Source*, *Name*, *Size*, *Type*, *Interface*, and *Storage Class*.

.. Advanced: You can enable preallocation if you use a blank disk source and require maximum write performance when creating data volumes. To do so, select the *Enable preallocation* checkbox.

.. Optional: In the *Advanced* list, specify the *Volume Mode* and *Access Mode* for the virtual disk. If you do not specify these parameters, the system uses the default values from the `kubevirt-storage-class-defaults` config map.

. Click *Add*.

ifdef::virt-vm[]
[NOTE]
====
If the {object} is running, the new disk is in the *pending restart* state and will not be attached until you restart the {object}.

The *Pending Changes* banner at the top of the page displays a list of all changes that will be applied when the {object} restarts.
====
endif::virt-vm[]

// Unsetting all conditionals used in module

ifeval::["{context}" == "virt-edit-vms"]
:virt-vm!:
:object!:
:object-gui!:
:object-vm-overview!:
endif::[]

ifeval::["{context}" == "virt-editing-vm-template"]
:virt-vm-template!:
:object!:
:object-gui!:
:object-vm-overview!:
endif::[]

{'fraction_non_alphanumeric': 0.14466187763190488, 'fraction_numerical': 0.0012385434728758979, 'mean_word_length': 4.523939808481532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6322798', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1269, 'n_words': 466}