3.2.4. VM manifest creation commands


You can use the following virtctl create commands to create manifests for virtual machines, instance types, and preferences.

Expand
表3.3 VM manifest creation commands
CommandDescription
virtctl create vm

Create a VirtualMachine (VM) manifest.

virtctl create vm --name <vm_name>

Create a VM manifest, specifying a name for the VM.

virtctl create vm --user <user_name> --ssh-key|password-file=<value>

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.

virtctl create vm --access-cred type:password,src:<secret>

Create a VM manifest with a user and password combination injected from the selected secret.

virtctl create vm --access-cred type:ssh,src:<secret>,user:<user_name>

Create a VM manifest with an SSH public key injected from the selected secret.

virtctl create vm --volume-sysprep src:<config_map>

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.

virtctl create vm --instancetype <instancetype_name>

Create a VM manifest that uses an existing cluster-wide instance type.

virtctl create vm --instancetype=virtualmachineinstancetype/<instancetype_name>

Create a VM manifest that uses an existing namespaced instance type.

virtctl create instancetype --cpu <cpu_value> --memory <memory_value> --name <instancetype_name>

Create a manifest for a cluster-wide instance type.

virtctl create instancetype --cpu <cpu_value> --memory <memory_value> --name <instancetype_name> --namespace <namespace_value>

Create a manifest for a namespaced instance type.

virtctl create preference --name <preference_name>

Create a manifest for a cluster-wide VM preference, specifying a name for the preference.

virtctl create preference --namespace <namespace_value>

Create a manifest for a namespaced VM preference.

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る