You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-virtctl-commands.adoc
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,18 @@ You can use `virtctl create` commands to create manifests for virtual machines,
73
73
|`virtctl create vm --name <vm_name>`
74
74
|Create a VM manifest, specifying a name for the VM.
75
75
76
+
|`virtctl create vm --user <user_name> --ssh-key\|password-file=<value>`
77
+
|Create a VM manifest with a cloud-init configuration to create the selected user and either add an SSH public key from the supplied string, or a password from a file.
78
+
79
+
|`virtctl create vm --access-cred type:password,src:<secret>`
80
+
|Create a VM manifest with a user and password combination injected from the selected secret.
81
+
82
+
|`virtctl create vm --access-cred type:ssh,src:<secret>,user:<user_name>`
83
+
|Create a VM manifest with an SSH public key injected from the selected secret.
84
+
85
+
|`virtctl create vm --volume-sysprep src:<config_map>`
86
+
|Create a VM manifest, specifying a config map to use as the sysprep volume. The config map must contain a valid answer file named `unattend.xml` or `autounattend.xml`.
87
+
76
88
|`virtctl create vm --instancetype <instancetype_name>`
77
89
|Create a VM manifest that uses an existing cluster-wide instance type.
78
90
@@ -201,7 +213,7 @@ Optional:
201
213
* `--keep-vme` retains the `VirtualMachineExport` CR after download. The default behavior is to delete the `VirtualMachineExport` CR after download.
202
214
* `--insecure` enables an insecure HTTP connection.
0 commit comments