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, 2020 in OpenStack by akhtar
• 38,230 points
1,665 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, 2020 by MD
• 95,440 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, 2020 in OpenStack by anonymous
• 95,440 points
2,189 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, 2020 in OpenStack by MD
• 95,440 points
736 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, 2020 in OpenStack by MD
• 95,440 points
855 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, 2020 in OpenStack by MD
• 95,440 points
3,563 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, 2020 in OpenStack by MD
• 95,440 points
2,332 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, 2020 in OpenStack by MD
• 95,440 points
423 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, 2020 in OpenStack by MD
• 95,440 points
611 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, 2020 in OpenStack by akhtar
• 38,230 points
697 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, 2020 in OpenStack by MD
• 95,440 points
2,649 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, 2020 in OpenStack by MD
• 95,440 points
918 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP