Unable to build centos 8.2 qcow2
Hello All, I need to build centos 8.2 image using disk-image-builder. But by setting DIB_RELEASE with 8, it by default uses centos8.1 as base cloud image. How can I use centos 8.2 image? Also I tried setting DIB_CLOUD_IMAGES having my local path to centos 8.2 qcow2 but it appends centos8.1 name at the defined path. i.e /path/to/my/dir/centos8.2/CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2 Please suggest how may I build centos 8.2 qcow2. Be safe Akshay DISCLAIMER: This electronic message and all of its contents, contains information which is privileged, confidential or otherwise protected from disclosure. The information contained in this electronic mail transmission is intended for use only by the individual or entity to which it is addressed. If you are not the intended recipient or may have received this electronic mail transmission in error, please notify the sender immediately and delete / destroy all copies of this electronic mail transmission without disclosing, copying, distributing, forwarding, printing or retaining any part of it. Hughes Systique accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.
On Mon, Nov 9, 2020, at 1:06 AM, Akshay 346 wrote:
Hello All,
I need to build centos 8.2 image using disk-image-builder.
But by setting DIB_RELEASE with 8, it by default uses centos8.1 as base cloud image. How can I use centos 8.2 image?
Also I tried setting DIB_CLOUD_IMAGES having my local path to centos 8.2 qcow2 but it appends centos8.1 name at the defined path.
i.e /path/to/my/dir/centos8.2/CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2
Please suggest how may I build centos 8.2 qcow2.
Looking at the dib code [0] that does the image selection the other variables at play are $DIB_FLAVOR and $ARCH. If I set DIB_RELEASE=8, DIB_FLAVOR=GenericCloud, and ARCH=x86_64 then running `curl -s https://cloud.centos.org/centos/${DIB_RELEASE}/${ARCH}/images/ | grep -o "CentOS-.[^>]*${DIB_FLAVOR}-.[^>]*.qcow2" | sort -r | head -1` produces "CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2". I suspect that means if I were to run a build it would be based on that image. Can you double check you aren't setting DIB_FLAVOR to another value that may not support 8.2 yet or perhaps another ARCH? Also, if you can share logs from the build via a paste service that would be helpful in debugging. One other thing to consider is that you can use the centos-minimal element instead which will build an image from scratch using yum/dnf.
Be safe
Akshay
[0] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_...
participants (2)
-
Akshay 346
-
Clark Boylan