1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/virt-creating-vm-yaml-web.adoc

28 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * virt/virtual_machines/virt-create-vms.adoc
[id="virt-creating-vm-yaml-web_{context}"]
= Pasting in a pre-configured YAML file to create a virtual machine
Create a virtual machine by writing or pasting a YAML configuration file. A valid `example` virtual machine configuration is provided by default whenever you open the YAML edit screen.
If your YAML configuration is invalid when you click *Create*, an error message indicates the parameter in which the error occurs. Only one error is shown at a time.
[NOTE]
====
Navigating away from the YAML screen while editing cancels any changes to the configuration you have made.
====
.Procedure
. Click *Workloads* -> *Virtualization* from the side menu.
. Click the *Virtual Machines* tab.
. Click *Create Virtual Machine* and select *New from YAML*.
. Write or paste your virtual machine configuration in the editable window.
.. Alternatively, use the `example` virtual machine provided by default in the YAML screen.
. (Optional) Click *Download* to download the YAML configuration file in its present state.
. Click *Create* to create the virtual machine.
The virtual machine is listed in the *Virtual Machines* tab.