creating custom image

asked 2020-04-09 02:34:16 -0600

happy75 gravatar image

HI Openstack experts, I have setup a cloud with the minimal deployment. In terms of creating a custom image, can someone point me in the right direction? I understand that you can download the images from the following website and then create an instance from the image: http://cloud.centos.org/centos/7/images/

But then I presume it means that you can't customize your OS for the instance (e.g. partition size and packages installed etc), is that right?

If I want a custom image, do i do the following? - download the centos 7 base distribution ISO from https://wiki.centos.org/Download - launch the instance with the source pointing to the ISO downloaded in the above step

or do i need to use virtualization software such as virtualbox, create the virtual machine booting from the above ISO file and go through the installation file and then upload the VDI file onto the openstack dashboard and launch the instance from the VDI file?

What is the usual procedure for creating custom image (VM)?

thanks in advance for your help!

edit retag flag offensive close merge delete

Comments

Both are valid options. I usually launch an ISO within openstack, install the OS to a volume and upload that volume to glance. Of course you can also create your image independently of openstack and then upload it to glance, it’s up to you.

eblock gravatar imageeblock ( 2020-04-09 03:19:04 -0600 )edit

can I please clarify, how do you "install the OS to a volume"?

happy75 gravatar imagehappy75 ( 2020-04-09 03:26:19 -0600 )edit

There’s a guide for that: https://docs.openstack.org/nova/rocky...

Basically, it’s launching an instance from ISO (upload an ISO file to glance), attaching a volume and then choose the volume as installation target.

eblock gravatar imageeblock ( 2020-04-09 04:02:31 -0600 )edit

thanks for the clarification!

happy75 gravatar imagehappy75 ( 2020-04-10 23:50:15 -0600 )edit