openstack server createCreate a server.
Usage
openstack server create --flavor <flavor> (--image <image> | --volume <volume>) \
--network <network> [--key-name <key>] [--security-group <group>] <name>
Options
| Option | Description |
|---|---|
--flavor <flavor> | Flavor name or ID. Required. |
--image <image> | Boot from an image. |
--volume <volume> | Boot from an existing volume. |
--boot-from-volume <GB> | Create a volume from the image and boot from it. |
--network <network> | Attach a NIC on a network. Repeatable. |
--port <port> | Attach an existing port. |
--key-name <key> | Inject an SSH public key. |
--security-group <group> | Attach a security group. Repeatable. |
--user-data <file> | cloud-init user data. |
--availability-zone <zone> | Place the server in a zone. |
--wait | Wait for the build to finish. |
Example
openstack server create \
--flavor <flavor-id> \
--volume <boot-volume-id> \
--network <network-id> \
--key-name mykey \
--security-group default \
--wait \
vm1
note
Public flavors on Vietnix Cloud have disk 0, so boot from an nvmer3 volume. If the default volume type has no quota, create the volume with --type nvmer3 first and use --volume.