pcloud compute instances create
Create a VM Instance
Synopsis
Create a VM Instance
Most of the flags have default values, but you must enter the VM name to be created, and mandatory image and network names.
You can list the images of your Cloud by running:
pcloud compute images list
You can list the available networks by running
pcloud compute networks list
You can list the system types available to your cloud by running
pcloud compute clouds syspools
Creating a new VM instance can take a few minutes to fully complete. You can look at the state of the VM by running
pcloud compute instances describe
pcloud compute instances create <InstanceName> --image <ImageName> --network <NetworkName[:IPAddress]> [flags]
Options
-a, --affinityPolicy string Affinity policy for replicants being created (must be one of {"affinity", "anti-affinity", "none"}) (default "none")
-c, --cores float Number of cores to allocate to the VM Instance (default 2)
-h, --help help for create
-i, --image string Image to allocate to the VM Instance (note that 'ImageID' or 'ImageName' can be used) (required)
-k, --keypair string SSHKeyPair Name
-l, --license strings Software Licenses (several --license allowed, must be one of "IbmiCSS", "IbmiDBQ", "IbmiPHA", "IbmiRDS")
-m, --memory float Memory size (in GB) to allocate to the VM Instance (default 4)
-s, --namingScheme string Replicants naming scheme (must be one of {"prefix", "suffix"}) (default "suffix")
-n, --network strings Networks to assign to the VM Instance, (values must follow the <NetworkName[:IPAddress]> form, note that 'NetworkID' can be provided instead of 'NetworkName', 'IPAddress' is optional, several --network allowed) (required)
-P, --pinPolicy string VM pinning policy (must be one of {"none", "soft", "hard"}) (default "none")
-g, --placementGroup string Placement group for VM.
-t, --proctype string Dedicated, Shared or Capped Processing Type (must be one of {"dedicated", "shared", "capped"}) (default "dedicated")
-d, --rdsUsers int Number of IbmiRDS license users (Required if "IbmiRDS" license is specified)
-r, --replicants float Number of replicants (default 1)
-T, --storagetype string Storage type for VMInstance deployment (required only if image is a "stock" image - default value set).
Storage type depends on the region of your cloud and can only be set from a short list of available values.
You can list the available storage types and the default storage type for your cloud by running the "pcloud compute clouds describe" command.
-S, --systype string System type. See note above. (default "s922")
-u, --userdata string Cloud-init user defined data file (optional, if necessary data are uuencoded before being sent)
-v, --volume strings Volumes to assign to the VM Instance (several --volume allowed, note that 'VolumeID' or 'VolumeName' can be used)
Options inherited from parent commands
-F, --format string Available formats: 'table', 'yaml', 'json', 'csv'.
Default is command specific.
Can be used with describe and list subcommands.
-D, --log.dir string Override Log file directory
-L, --log.file string Override Log file name
-V, --verbosity string Override Log verbosity
SEE ALSO
- pcloud compute instances - VM Instances management commands