Use the openstack command to replace the glance
Change-Id: I2fb726c03af85b6b5a247bf182ab9e539a5d5506 Implements: blueprint use-openstack-command
This commit is contained in:
parent
75b81a175e
commit
5431442b51
@ -453,7 +453,7 @@ be set to ``uefi`` when the image is created. For example:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ glance image-create --container-format bare --disk-format qcow2 \
|
$ openstack image create --container-format bare --disk-format qcow2 \
|
||||||
--property hw_firmware_type=uefi --file /tmp/cloud-uefi.qcow --name uefi
|
--property hw_firmware_type=uefi --file /tmp/cloud-uefi.qcow --name uefi
|
||||||
|
|
||||||
After that, you can launch instances from this UEFI image.
|
After that, you can launch instances from this UEFI image.
|
||||||
|
@ -4,12 +4,12 @@ Image service property keys
|
|||||||
|
|
||||||
The following keys, together with the components to which they are specific,
|
The following keys, together with the components to which they are specific,
|
||||||
can be used with the property option for both the
|
can be used with the property option for both the
|
||||||
:command:`glance image-update` and :command:`glance image-create` commands.
|
:command:`openstack image set` and :command:`openstack image create` commands.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ glance image-update IMG-UUID --property architecture=x86_64
|
$ openstack image set IMG-UUID --property architecture=x86_64
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ model:
|
|||||||
|
|
||||||
When you use OpenStack with VMware vCenter Server, you need to specify
|
When you use OpenStack with VMware vCenter Server, you need to specify
|
||||||
the ``vmware_disktype`` and ``vmware_adaptertype`` properties with
|
the ``vmware_disktype`` and ``vmware_adaptertype`` properties with
|
||||||
:command:`glance image-create`.
|
:command:`openstack image create`.
|
||||||
Also, we recommend that you set the ``hypervisor_type="vmware"`` property.
|
Also, we recommend that you set the ``hypervisor_type="vmware"`` property.
|
||||||
For more information, see `Images with VMware vSphere
|
For more information, see `Images with VMware vSphere
|
||||||
<http://docs.openstack.org/newton/config-reference/compute/hypervisor-vmware.html#images-with-vmware-vsphere>`_
|
<http://docs.openstack.org/newton/config-reference/compute/hypervisor-vmware.html#images-with-vmware-vsphere>`_
|
||||||
|
@ -385,11 +385,11 @@ on Hyper-V can be found here:
|
|||||||
http://technet.microsoft.com/en-us/library/cc772480.aspx
|
http://technet.microsoft.com/en-us/library/cc772480.aspx
|
||||||
|
|
||||||
Once you have successfully created a virtual machine, you can then upload
|
Once you have successfully created a virtual machine, you can then upload
|
||||||
the image to glance using the native glance-client:
|
the image to glance using the openstack-client:
|
||||||
|
|
||||||
.. code-block:: powershell
|
.. code-block:: powershell
|
||||||
|
|
||||||
PS C:\> glance image-create --name "VM_IMAGE_NAME" --is-public False
|
PS C:\> openstack image create --name "VM_IMAGE_NAME" --public \
|
||||||
--container-format bare --disk-format vhd
|
--container-format bare --disk-format vhd
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
@ -230,9 +230,9 @@ this by doing a quick image upload:
|
|||||||
|
|
||||||
. /root/openrc
|
. /root/openrc
|
||||||
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
|
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
|
||||||
glance image-create --name='cirros image' --is-public=true
|
openstack image create --name='cirros image' --public \
|
||||||
--container-format=bare --disk-format=qcow2 < cirros-0.3.4-x8
|
--container-format=bare --disk-format=qcow2 \
|
||||||
6_64-disk.img
|
--file cirros-0.3.4-x86_64-disk.img
|
||||||
|
|
||||||
By taking this script and rolling it into an alert for your monitoring
|
By taking this script and rolling it into an alert for your monitoring
|
||||||
system (such as Nagios), you now have an automated way of ensuring that
|
system (such as Nagios), you now have an automated way of ensuring that
|
||||||
|
Loading…
Reference in New Issue
Block a user