How to create an image in OpenStack from CLI?

0 votes

Hi Guys,

I am new in OpenStack. I want to create one image in OpenStack from CLI. Can anyone help me to do this task?

Jul 6 in OpenStack by akhtar
• 25,030 points
87 views

1 answer to this question.

0 votes

Hi@akhtar,

You have to first download one preinstalled image in your system. You can go through the below-given link.

https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.qcow2

Now you have to log in to your OpenStack cloud and run the below command. It will automatically create an image in OpenStack.

$ source keystonerc_demo
[root@openstack ~(keystone_demo)]#  glance image-create --file Fedora-Cloud-Base-32-1.6.x86_64.qcow2 --disk-format qcow2 --container-format bare --name fed64
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 9ba41708fdc7d21a829e3836242f56d6     |
| container_format | bare                                 |
| created_at       | 2020-07-06T07:29:57Z                 |
| disk_format      | qcow2                                |
| id               | 5c40dedf-57eb-4e68-9ee7-1bb7ffcb105a |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | fed64                                |
| owner            | c75cffdeb390468fa099948aa43a99b2     |
| protected        | False                                |
| size             | 302841856                            |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2020-07-06T07:30:00Z                 |
| virtual_size     | None                                 |
| visibility       | shared                               |
+------------------+--------------------------------------+

I hope this will help you.

answered Jul 6 by MD
• 56,480 points

Related Questions In OpenStack

0 votes
1 answer

How to create an instance in OpenStack?

Hi@akhtar, When we try to launch an instance ...READ MORE

answered Mar 17 in OpenStack by anonymous
• 56,480 points
143 views
0 votes
1 answer

How to login with demo account in OpenStack from CLI?

Hi@akhtar, Packstack program will generate to file when ...READ MORE

answered Jul 3 in OpenStack by MD
• 56,480 points
67 views
0 votes
1 answer

How to launch one instance in OpenStack from CLI?

Hi@akhtar, You need to login to your OpenStack ...READ MORE

answered Jul 5 in OpenStack by MD
• 56,480 points
70 views
0 votes
1 answer

How to delete image in OpenStack?

Hi@akhtar, There are two ways to delete an ...READ MORE

answered Mar 16 in OpenStack by MD
• 56,480 points
180 views
0 votes
1 answer

How do I install OpenStack in RHEL 7/CentOS 7?

Hi@akhtar, Follow the below steps to install OpenStack. IP ...READ MORE

answered Mar 13 in OpenStack by MD
• 56,480 points
587 views
0 votes
1 answer

Is OpenStack provides all types of Storage services that AWS provides?

Hi@akhtar, Yes, OpenStack provides all the storage services ...READ MORE

answered Mar 13 in OpenStack by MD
• 56,480 points
57 views
0 votes
1 answer

How to get OpenStack software for installation?

Hi@akhtar, There are two ways to get OpenStack ...READ MORE

answered Mar 13 in OpenStack by MD
• 56,480 points
60 views
0 votes
1 answer

Why do we need static IP for installing OpenStack?

Hi@akhtar, We know we get IP from DHCP ...READ MORE

answered Mar 13 in OpenStack by akhtar
• 25,030 points
78 views
0 votes
1 answer

How to create an image in OpenStack?

Hi@akhtar, Actually this is the fun in OpenStack. ...READ MORE

answered Mar 16 in OpenStack by MD
• 56,480 points
361 views
0 votes
1 answer

How to update an image properties in OpenStack?

Hi@akhtar, You can update your image properties. Follow ...READ MORE

answered Mar 16 in OpenStack by MD
• 56,480 points
67 views