Skip to content

Commit 4b0daf7

Browse files
authored
Merge pull request #86813 from jhradilek/CNV-45388-new-commands
CNV-45388: Add new virtctl commands
2 parents 977c62e + ba6d15f commit 4b0daf7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

modules/virt-virtctl-commands.adoc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ You can use `virtctl create` commands to create manifests for virtual machines,
7373
|`virtctl create vm --name <vm_name>`
7474
|Create a VM manifest, specifying a name for the VM.
7575

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+
7688
|`virtctl create vm --instancetype <instancetype_name>`
7789
|Create a VM manifest that uses an existing cluster-wide instance type.
7890

@@ -201,7 +213,7 @@ Optional:
201213
* `--keep-vme` retains the `VirtualMachineExport` CR after download. The default behavior is to delete the `VirtualMachineExport` CR after download.
202214
* `--insecure` enables an insecure HTTP connection.
203215

204-
|`virtctl vmexport download <vmexport_name> --<vm\|snapshot\|pvc>=<object_name> --output=<output_file> --volume=<volume_name>`
216+
|`virtctl vmexport download <vmexport_name> --vm\|snapshot\|pvc=<object_name> --output=<output_file> --volume=<volume_name>`
205217
|Create a `VirtualMachineExport` CR and then download the volume defined in the CR.
206218

207219
|`virtctl vmexport download export --manifest`
@@ -323,5 +335,8 @@ You use the `virtctl image-upload` commands to upload a VM image to a data volum
323335

324336
|`virtctl image-upload dv <datavolume_name> --size=<datavolume_size> --image-path=</path/to/image>`
325337
|Upload a VM image to a new data volume of a specified requested size.
338+
339+
|`virtctl image-upload dv <datavolume_name> --datasource --size=<datavolume_size> --image-path=</path/to/image>`
340+
|Upload a VM image to a new data volume and create an associated `DataSource` object for it.
326341
|===
327342

0 commit comments

Comments
 (0)