vm-create
Usage
Description
Options
--name name |
The name of the VM to create. |
--cpu number | The number of virtual CPUs to assign to the VM. |
--memory memory | The amount of memory, in megabytes, to assign to the VM. |
--boot-type interface | The boot interface for the VM, either bios (the default) or uefi. |
--cdrom cd-name | The CD-ROM from which you initially boot the VM. You cannot specify this option with --kickstart or --remote-file-path. |
--kickstart template | The kickstart template to use when booting the VM. You cannot specify this option with --cdrom or -- remote-file-path. |
--remote-file-path path | A remote ISO repository to use when booting the VM. You cannot specify this option with --cdrom or --kickstart. |
--remote-type type |
The type of remote ISO repository specified in the --remote-file-path option. Valid options are samba or nfs. |
--remote-username username | The user account to specify for access to the remote ISO repository specified in the --remote-file-path option. Required for samba repositories. |
--remote-password password | The user password to specify for access to the remote ISO repository specified in the --remote-file-path option. Required for samba repositories. |
--availability level | The availability level, high availability (ha |
--interfaces networks, MAC address | The list of networks to attach to the VM. Specify a network only once. The attached network must not be private. Optionally, specify the MAC address after the network name. |
--disabled-interfaces networks, MAC address | A list of networks to attach to the VM, but which should not be enabled. Specify a network only once. The attached network must not be private. Optionally, specify the MAC address after the network name. |
--storage-group group | The storage group to use to carve VM volumes from. If you do not specify this value, the storage group with the most free space is automatically selected. |
--volumes volumes |
List of volumes to attach to this VM. A volume is made up of five components, separated by commas:
|
--wait -w |
Wait for the command to complete. |
Examples
--remote-file-path 134.111.24.224:/developer/windows_7.iso \
--remote-type nfs --availability ha --interfaces network0 \
--volumes 1024
--remote-file-path //134.111.31.228/Users/TEST/windows.iso \
--remote-type samba --remote-username TEST \
--remote-password abc123 --availability ha \
--interfaces network0 --volumes 1024
--cdrom linux.iso --availability ha \
--interfaces network0 --volumes 1024
--cdrom linux.iso --availability ft \
--interfaces network0 --volumes 1024 \
--storage-group Pool-0001
--cdrom linux.iso --availability ha \
--interfaces network0 --volumes 1024,Pool-0001,vm001_vol0
--cdrom linux.iso --availability ft \
--interfaces network0 network1 \
--volumes 10GB,Pool-0001 50GB,Pool-0002
--boot-type bios --kickstart template:o81 \
--availability ha --interfaces network0 --volumes 10GB
--cdrom CentOS-7.7-x86_64-minimal.iso \
--availability ha --interfaces network0 \
--volumes 20GB,Pool-0001,vm001_volu_boot,qcow2 1024,Pool-0002,\
vm001_volu_data,qcow2,4096
--cdrom linux.iso --availability ha \
--interfaces network0,00:04:fc:40:60:55 --volumes 1024