glance image-create
command provides a large set
of options for working with your image. For example, the
min-disk
option is useful for images that require root
disks of a certain size (for example, large Windows images). To view
these options, do:location
option is important to note. It does not
copy the entire image into the Image service, but references an original
location where the image can be found. Upon launching an instance of
that image, the Image service accesses the image from the location
specified.copy-from
option copies the image from the
location specified into the /var/lib/glance/images
directory. The same thing is done when using the STDIN redirection with
<, as shown in the example.compute_extension:flavormanage
in
/etc/nova/policy.json
on the nova-api
server).
To get the list of available flavors on your system, run:nova flavor-create
command allows authorized users
to create new flavors. Additional flavor manipulation commands can be
shown with the command: nova.conf
option
allow_same_net_traffic
(which defaults to
allow_same_net_traffic
is set to allow_same_net_traffic
by
configuring their default security group to allow all traffic from their
subnet.quota_security_group_rules
, and the number of allowed
security groups per project is controlled by the
quota_security_groups
quota.nova
secgroup-add-group-rule <secgroup> <source-group>
<ip-proto> <from-port> <to-port>
. An example
usage is shown here:nova show
on the faulted instance:nova show
does not sufficiently explain the
failure, searching for the instance UUID in the
nova-compute.log
on the compute node it was scheduled on or
the nova-scheduler.log
on your scheduler hosts is a good
place to start looking for lower-level problems.nova show
as an admin user will show the
compute node the instance was scheduled on as hostId
. If
the instance failed during scheduling, this field is blank.--key_name mykey
to your command line. For
example:--meta
option with a key-value pair, where you
can make up the string for both the key and the value. For example,
you could add a description and also the creator of the server:user-data
key is a special key in the metadata
service that holds a file that cloud-aware applications within the
guest instance can access. For example, cloudinit is an open
source package from Ubuntu, but available in most distributions, that
handles early initialization of a cloud instance that makes use of
this user data.--user-data
<user-data-file>
. For example:--file
<dst-path=src-path>
option. You may store up to five
files.--security-groups
with a comma-separated list of security
groups.<dev-name>=<id>:<type>:<size(GB)>:
<delete-on-terminate>
,
where:/dev/dev_name
/dev/vdc
. It is not a snapshot, does not specify a size, and
will not be deleted when the instance is terminated:/dev/vda
:sync
writes dirty buffers (buffered blocks
that have been modified but not written yet to the disk block) to
disk.sync
is not enough to ensure that the
file system is consistent. We recommend that you use the
fsfreeze
tool, which halts new access to the file system,
and create a stable image on disk that is suitable for snapshotting.
The fsfreeze
tool supports several file systems,
including ext3, ext4, and XFS. If your virtual machine instance is
running on Ubuntu, install the util-linux package to get