This shows you the differences between two versions of the page.
openstack:create_image_cli [2021/05/08 16:32] admin created |
openstack:create_image_cli [2021/05/10 00:35] (current) admin |
||
---|---|---|---|
Line 20: | Line 20: | ||
<code bash> | <code bash> | ||
openstack image create --disk-format qcow2 --container-format bare --public --file /var/lib/libvirt/images/centos7-oscontroller-pavel.qcow2 CentOS7 | openstack image create --disk-format qcow2 --container-format bare --public --file /var/lib/libvirt/images/centos7-oscontroller-pavel.qcow2 CentOS7 | ||
+ | </code> | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | glance image-create --disk-format qcow2 | ||
+ | --container-format bare | ||
+ | --file ~/images/my-qcow2-img.img | ||
+ | --visibility public | ||
+ | --name myimage | ||
+ | --property pf9_description='best image ever' | ||
+ | --property pf9_virtual_size=41126400 | ||
</code> | </code> |