:_mod-docs-content-type: ASSEMBLY
[id="virt-edit-vms"]
= Edit the configuration of a virtual machine
include::_attributes/common-attributes.adoc[]
:context: virt-edit-vms

toc::[]

[role="_abstract"]
You can update virtual machine (VM) configuration details like CPU, memory, and networking by using the CLI or the {product-title} web console. In the web console, you can modify settings on the *VirtualMachine details* page or by editing the YAML file directly.


ifndef::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
To edit a VM to configure disk sharing by using virtual disks or LUN, see "Configuring shared volumes for virtual machines".
endif::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]

include::modules/virt-change-vm-instance-type.adoc[leveloffset=+1]

include::modules/virt-hot-plugging-memory.adoc[leveloffset=+1]

include::modules/virt-hot-plugging-cpu.adoc[leveloffset=+1]

include::modules/virt-editing-vm-cli.adoc[leveloffset=+1]

include::modules/virt-add-disk-to-vm.adoc[leveloffset=+1]

include::modules/virt-storage-wizard-fields-web.adoc[leveloffset=+2]

include::modules/virt-mounting-windows-driver-disk-on-vm.adoc[leveloffset=+1]

include::modules/virt-adding-secret-configmap-service-account-to-vm.adoc[leveloffset=+1]

include::modules/virt-updating-multiple-vms.adoc[leveloffset=+1]

include::modules/virt-performing-actions-on-multiple-virtual-machines.adoc[leveloffset=+2]

include::modules/virt-configure-multiple-iothreads.adoc[leveloffset=+1]

[role="_additional-resources"]
[id="additional-resources_{context}"]
== Additional resources
ifndef::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
* xref:../../virt/managing_vms/virtual_disks/virt-configuring-shared-volumes-for-vms.adoc#virt-configuring-shared-volumes-for-vms[Configuring shared volumes for virtual machines]
endif::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
* xref:../../nodes/pods/nodes-pods-configmaps.adoc#nodes-pods-configmap-overview_builds-configmaps[Understanding config maps]
* xref:../../nodes/pods/nodes-pods-secrets.adoc#nodes-pods-secrets-about[Providing sensitive data to pods]
* xref:../../authentication/understanding-and-creating-service-accounts.adoc#service-accounts-overview[Understanding and creating service accounts]
