evroc compute virtualmachine create

Create a virtual machine

evroc compute virtualmachine create <virtualmachine_id> [flags]

Examples


    # Create a small general-purpose VM in zone a with a custom security group and which uses the default subnet for zone a
    evroc compute vm create myvm \
  --running=true \
  --compute-profile-ref=a1a.s \
  --security-group=my-custom-sg \
  --disk=mybootdisk \
  --boot-from=true \
	--subnet=default-se-sto-a \
	--zone=a
    

Options

      --boot-from bools               Whether this Disk should be booted from. This must be specified for every disk. (default [])
      --cloud-init-user-data string   CloudInit user data passed to the VM. This is either a base64 string or multi-line string.
      --compute-profile-ref string    The name of a ComputeProfile resource, which defines the number of vCPUs, memory and the processor architecture that this VM will use. e.g. 'test.xs' or 'a1a.l'. It generally has the form <series>.<size> where series is one of, but not limited to 'a1a', 'c1a', or 'm1a' and size is one of 'xs', 's', 'm', 'l', 'xl', or '2xl'. Run evroc compute computeprofile list for the authoritative list of supported profiles. --vm-virtual-resources-ref is accepted as a backwards-compatible alias for this flag.
      --disk strings                  Name of Disk to attach to VM. Multiple disks can be added by using the disk flag multiple times.
  -h, --help                          help for create
      --placement-group string        Name of the placement group to use for this VM
      --public-ip string              Public IP to assign to this VM
      --running                       Determines whether the VM should be running or not (default true)
      --security-group strings        Name of the security group to use for this VM. Can be supplied multiple times for multiple security groups.
      --ssh-authorized-key strings    Public key to provision into the VM as an authorized key on first boot. Can be supplied multiple times to add multiple keys.
      --stack-type string             Stack type for the VM (dual-stack, ipv6-only, ipv4-only)
      --subnet string                 Name of the subnet to attach this VM to
      --zone string                   Zone

Options inherited from parent commands

      --config string   Path to the evroc config file (default "~/.evroc/config.yaml")

SEE ALSO