:_mod-docs-content-type: ASSEMBLY
[id="virt-creating-vms-from-cli"]
= Creating virtual machines by using the CLI
include::_attributes/common-attributes.adoc[]
:context: virt-creating-vms-cli

toc::[]

[role="_abstract"]
You can create virtual machines (VMs) from the command line by editing or creating a `VirtualMachine` manifest. You can simplify VM configuration by using an instance type in your VM manifest.

[NOTE]
====
You can also create VMs from instance types by using the {product-title} web console.
====

include::modules/virt-creating-vm-cli.adoc[leveloffset=+1]
include::modules/virt-uploading-image-virtctl.adoc[leveloffset=+1]
include::modules/virt-supported-custom-video-devices.adoc[leveloffset=+2]

[role="_additional-resources"]
[id="additional-resources_{context}"]
== Additional resources
ifndef::openshift-dedicated[]
* xref:../../virt/managing_vms/ssh/virt-accessing-vm-ssh.adoc#virt-accessing-vm-ssh[SSH access for virtual machines]
endif::openshift-dedicated[]
* xref:../../virt/creating_vm/virt-creating-vms-from-instance-types.adoc#virt-creating-vms-from-instance-types[Creating virtual machines from instance types]
